We build an app, you will find source and compiled version for WP67xx in attachment audioPlaybackRec.zip
We tested this app for Mangoh Red and seems work, but on Mango Green it not work, when we start it we see the MCLK (SYSTEM_CLK) at 19.2MHz, the BCLK (1.4MHz) and the LRCLK (48KHz).
We check it clocks on CN601 and on IOT#1, switching from Expander#3 GPO10, andh cheking that clocks disappear on IOT#1 but remain on CN601 as expected (detail on gpio settings on gpioexpander.txt).
In all case, we don’t see any data on PCM_IN/PCM_OUT (we check with oscilloscope).
We suspect that in the branch for WP76xx there is a different setting for qdsp6v2 (see dmesg.txt).
We would like to check as first step if audio work on mangoh green with WP76xx, then on our board, is possible for you to check that our app work on mangoh green with WP67xx?
File commands.txt contain command that we use for execute playback.
Hi
I have found that after a power on , play a wav file once ,using at commands. For example
“AT!AVAUDIO=1,1,/home/root/0-to-9.wav” . After that I can play audio files.
You can use "microcom -s 115200 -X /dev/ttyAT " for at commands
Hi @natanb ,
I followed the method you stated it works fine but
Can you please tell me why is it necessary to pass this AT “AT!AVAUDIO=1,1,/home/root/example.wav” command in order to enable the audio play using “aplay” ?
If i try to play it directly (without AT!AVAUDIO=1,1,/home/root/example.wav) using aplay i have following error aplay: Playing ‘example.wav’:Signed 16 bit Little Endian buffer_bytes = (1024,1024) omin=0 omax=0 int=1 empty=0 period_bytes = (128,128) omin=0 omax=0 int=1 empty=0 cannot prepare channel: errno =-22 Aplay:Failed in pcm_prepare
Hi @Akshaysk
I don’t have a good answer yet. It seems to me that “AT!AVAUDIO” command initiates a hw on the board.
after once using - AT!AVAUDIO=1,1,/home/root/example.wav
on mine board I don’t have an error=-22. I don’t hear any thing
aplay get_ready_for_picture.wav
aplay: Playing ‘get_ready_for_picture.wav’:Signed 16 bit Little Endian
buffer_bytes = (1024,1024) omin=0 omax=0 int=1 empty=0
period_bytes = (128,128) omin=0 omax=0 int=1 empty=0
Aplay: Done playing