This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Audio Example in LinuxPSP on OMAP3530

Other Parts Discussed in Thread: OMAP3530

Hi,

I'm using OMAP3530 and OMAP35x-PSP-SDK_02.01.02.09. I wonder how could I use the audio examples(minimal_capture.c and minimal_playback.c )?

I have successfully installed ALSA lib and compiled both the C files, and when I run it on the board, both the files could run successfully and print "snd_pcm_readi successful" or ""snd_pcm_writei successful".  Since it read the captured buffer from MIC and write it to a buffer , so I modified minimal_capture.c to write it to a file ,and let minimal_playback.c to read from the same file and just play it.But I can't hear anything.The driver was OK because I could record and play using "arecord" and "aplay"  with the kernel. I would like to know if there are some code just like the video loop program of saMmapLoopback.c .

I also tried to cross - compile alsa-utils-1.0.21 but I failed because the lack of a lib file(lpanelw). The lib file exist in /usr/lib path but it was a X86 lib . I can't find a lib file for arm. So I cross compiled the aplay.c file in the alsa-utils-1.0.21 in command line of arm-none-linux-gnueabi with the alsa-lib lib and include path,  and when I run it on the board it could only play the last 1sec sound I captured with "arecord" in the kernel.

I just want to know how could I build an alsa programming eviroment just like V4L2, and a example program that could record and play would be appreciated.

Thanks!