here I want different audio streams, simultaneously on two hardware playback devices (hw:0,0 and hw:0,1). Currently I am able to listen on them seperately but if I try playing them concurrently sound stops from hw:0,1 and only plays from hw:0,0 (with an Alsa Debug log saying: Resource temporarily unavailable) even when I have changed my default device to hw:0,1. These are actually slave pcms dmixed and later given to plug pulgin in my asound.conf.

When these sinks are created initially alsa gives warnings of Unknown PCM and Unknown parameters but audio renders fine though (thats why ignoring the errors as read on a forum).

So playing something like aplay -D default /tone.wav and aplay -D device1 /tone.wav seperately, works fine but when executed together plays only device1(hw:0,0) whereas my default hw:0,1 keeps blocking which i can check through cat /dev/snd/pcmC0D1p.

Can somebody please guide how to do it, i am trying to do it only with alsa ( not with pulse) ?

Please find the following :

$aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: cs42888audio [cs42888-audio], device 0: HiFi cs42888-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: cs42888audio [cs42888-audio], device 1: HiFi-ASRC-FE (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: imxhdmisoc [imx-hdmi-soc], device 0: i.MX HDMI Audio Tx hdmi-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0

$ cat /proc/asound/devices

0: [ 0]   : control
16: [ 0- 0]: digital audio playback
17: [ 0- 1]: digital audio playback
24: [ 0- 0]: digital audio capture
25: [ 0- 1]: digital audio capture
32: [ 1]   : control
33:        : timer
56: [ 1- 0]: digital audio capture
64: [ 2]   : control
80: [ 2- 0]: digital audio playback

out of which hw:2,0 is unavailable.

0

There are 0 best solutions below