[alsa-devel] fsl_ssi: Cannot do simultaneous capture and playback

Fabio Estevam festevam at gmail.com
Mon Sep 23 04:05:03 CEST 2013


I am trying to do simultaneous capture and playback on mx6 wandboard
and I noticed that it only works if I run 'aplay first'.

Here is the sequence that works:

1) aplay file.wav

2) Run 'alsamixer' and select line-in in the capture tab

3) Connect audio via line-in input

4) arecord -f cd -c 2 | aplay -f cd

Then I am able to hear the playback.

However, if I do not do step 1, and try to do the arecord/aplay directly I get:

$ arecord -f cd  | aplay -f cd
imx-sgtl5000 sound.13: set sample size in capture stream first
fsl-ssi-dai 2028000.ssi: ASoC: can't open interface 2028000.ssi: -11
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_
open) unable to open slave
aplay: main:660: audio open error: Device or resource busy
Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

I will try to debug this, but if anyone has any suggestions, please let me know.


Fabio Estevam

More information about the Alsa-devel mailing list