All of lore.kernel.org
 help / color / mirror / Atom feed
* Custom IOCTL call
@ 2010-12-10 19:42 Radivoje Jovanovic
  2010-12-10 23:23 ` Eliot Blennerhassett
  2010-12-13  9:00 ` Clemens Ladisch
  0 siblings, 2 replies; 3+ messages in thread
From: Radivoje Jovanovic @ 2010-12-10 19:42 UTC (permalink / raw)
  To: alsa-devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Custom IOCTL call
  2010-12-10 19:42 Custom IOCTL call Radivoje Jovanovic
@ 2010-12-10 23:23 ` Eliot Blennerhassett
  2010-12-13  9:00 ` Clemens Ladisch
  1 sibling, 0 replies; 3+ messages in thread
From: Eliot Blennerhassett @ 2010-12-10 23:23 UTC (permalink / raw)
  To: Radivoje Jovanovic; +Cc: alsa-devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Custom IOCTL call
  2010-12-10 19:42 Custom IOCTL call Radivoje Jovanovic
  2010-12-10 23:23 ` Eliot Blennerhassett
@ 2010-12-13  9:00 ` Clemens Ladisch
  1 sibling, 0 replies; 3+ messages in thread
From: Clemens Ladisch @ 2010-12-13  9:00 UTC (permalink / raw)
  To: Radivoje Jovanovic; +Cc: alsa-devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-12-13  8:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-10 19:42 Custom IOCTL call Radivoje Jovanovic
2010-12-10 23:23 ` Eliot Blennerhassett
2010-12-13  9:00 ` Clemens Ladisch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.