Alsa PCM device


I try to get the
examples to get work on my beagleboard xM Rev. C.
I compiled the lab06d_audio_c6run example with C6Run but when i
execute it on the beagle i always get a:

root@beagleboard:/media/sda2/lab06d_audio_c6run# ./audioThru_arm
Debug: pcm_handle before snd_pcm_open = -1092773456
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM omap3beagle
Error: Error opening PCM device omap3beagle
Error: Audio_input_setup failed in audio_thread_fxn

Debug: Starting audio thread cleanup to return resources to system
Debug: Audio thread cleanup complete. Exiting audio_thread_fxn
Debug: Audio thread exited with FAILURE status

After i checked the Devices

root@beagleboard:/media/sda2/lab06d_audio_c6run# arecord -L
    Discard all samples (playback) or generate zero samples (capture)
    Default Audio Device
root@beagleboard:/media/sda2/lab06d_audio_c6run# arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: omap3beagle [omap3beagle], device 0: TWL4030 twl4030-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

and i tried to change the

//* ALSA devices **
#define IN_SOUND_DEVICE "TWL4030"
#define OUT_SOUND_DEVICE "TWL4030"

in audio_thread.c to various possibilities (TWL4030, omap3beagle all
with and without :0,0 … )
My research in the internet did not help me neither so i hope to get
some help here

Thanks a lot

Further investigation on the
brought the solution
plughw:0,0 which is given in the example works fine ...