Hi All,
As shown above AM335x McASP0 is interfaced with AIC34. Here we successfully created two node pcmC0D0p and pcmC0D1p. We are able to play a song one at a time by opening respective node(pcmC0D0p for Ch1 and pcmC0D1p for Ch2). Here we would like to play two songs simultaneously by opening the corresponding node.
When we tried to play Two song using aplay.
aplay -Dhw:0,0 song1.wav &
First song succesfully played.
aplay -Dhw:0,1 song2.wav &
When tried to play second song while first song is playing, we are getting the error as below.
[ 5663.517494] davinci_pcm: Failed to get dma channels
[ 5663.522652] asoc: can't open platform davinci-pcm-audio
aplay: main:622: audio open error: Device or resource busy
Here we understand that the EDMA channel 8 which is used by McASP0 AXEVT0 event is busy in serving node 1. We think we need to modify the driver so that it plays two songs successfully at the same time. Please suggest how to proceed further.
Regards,
Vishwas HC