Hello,
how can I record an audio-signal on OLinuXino A20 using Alsa?
When I want to start "arecord", I get this error:
"
olimex@radarmesser:~$ arecord
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
arecord: main:682: audio open error: Invalid argument
olimex@radarmesser:~$
"
Any idea? Maybe is there missing any driver?
Thanks for your help
I did not try Olimex A20, can you get anyting if you do "arecord -l"
I can do arecord on another Allwinner A20 board by:
arecord -d 10 -f S16_LE -c1 -r44100 -t wav -D hw:0 foobar.wav
Note: you may need to change "-D hw:0" to use a proper device.
Hey xbing6,
I stumbled upon this post after a Google search and wanted to drop an answer if somebody else finds it.
Each board has audio and microphone tested over here. Make sure to select the proper interface in the player you are using. Just for the test try to play an .mp3 or a .wav audio file. Additionally, try aplay or mplayer software. Sample code for recording a test file and listening to it:
arecord -f dat -r 60000 -D hw:0,0 -d 5 test.wav
aplay test.wav
aplay -D hw:0,0 test.wav
How to play MP3 from the microSD card with mplayer:
mplayer -ao alsa:device=hw=0,0 /mnt/mp3name.mp3
Regards,
Lub/OLIMEX