ALSA User program Help needed
I am writing a driver for one of the USB audio devices and i have been proceeding as per the document "Writing an ALSA driver", published in ALSA homepage.
I am trying to create a user program but i am stuck as i am not able to open the device file.
My call to open in my user application fails:
snd_pcm_open fails with error "ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM /dev/snd/pcmC12D0p "
where the last argument is my device file name(pcmCxDxp).
I have tried passing the second argument as "hw:c,d" but the result is the same :(
I have registered the device and the device files are also generated properly, but when i try to open the device file it fails.
I am not sure where i am going wrong Can anybody throw some light on this.
I have also checked the files generated according to number of USB interfaces and it seems to be fine.
Also other commands like aplay -l etc seems to show my device properly
Also "default" device opens fine.