[alsa-devel] Custom IOCTL call
I am writing custom IOCTL calls for my card. I have made hwdep interface and set ioctl ops call for it. But, now the question is which device I need to open in my user space app to talk to correct ioctl? I have tried /dev/snd/controlC0 and /dev/snd/pcmC0D0p Both of theses returned invalid IOCTL. Cheers Ogi
On 11/12/10 08:42, Radivoje Jovanovic wrote:
I am writing custom IOCTL calls for my card. I have made hwdep interface and set ioctl ops call for it. But, now the question is which device I need to open in my user space app to talk to correct ioctl?
/dev/snd/hwC0D0
I have tried /dev/snd/controlC0 and /dev/snd/pcmC0D0p
Radivoje Jovanovic wrote:
I am writing custom IOCTL calls for my card. I have made hwdep interface and set ioctl ops call for it. But, now the question is which device I need to open in my user space app to talk to correct ioctl?
You should use snd_hwdep_open(... "hw:0" ) and snd_hwdep_ioctl().
Regards, Clemens
participants (3)
-
Clemens Ladisch
-
Eliot Blennerhassett
-
Radivoje Jovanovic