• Home
  • Raw
  • Download

Lines Matching refs:hw

164 static int usb_stream_hwdep_open(struct snd_hwdep *hw, struct file *file)  in usb_stream_hwdep_open()  argument
166 struct us122l *us122l = hw->private_data; in usb_stream_hwdep_open()
168 snd_printdd(KERN_DEBUG "%p %p\n", hw, file); in usb_stream_hwdep_open()
169 if (hw->used >= 2) in usb_stream_hwdep_open()
179 static int usb_stream_hwdep_release(struct snd_hwdep *hw, struct file *file) in usb_stream_hwdep_release() argument
181 struct us122l *us122l = hw->private_data; in usb_stream_hwdep_release()
183 snd_printdd(KERN_DEBUG "%p %p\n", hw, file); in usb_stream_hwdep_release()
196 static int usb_stream_hwdep_mmap(struct snd_hwdep *hw, in usb_stream_hwdep_mmap() argument
200 struct us122l *us122l = hw->private_data; in usb_stream_hwdep_mmap()
233 static unsigned int usb_stream_hwdep_poll(struct snd_hwdep *hw, in usb_stream_hwdep_poll() argument
236 struct us122l *us122l = hw->private_data; in usb_stream_hwdep_poll()
340 static int usb_stream_hwdep_ioctl(struct snd_hwdep *hw, struct file *file, in usb_stream_hwdep_ioctl() argument
344 struct us122l *us122l = hw->private_data; in usb_stream_hwdep_ioctl()
391 snd_power_wait(hw->card, SNDRV_CTL_POWER_D0); in usb_stream_hwdep_ioctl()
423 struct snd_hwdep *hw; in usb_stream_hwdep_new() local
426 err = snd_hwdep_new(card, SND_USB_STREAM_ID, 0, &hw); in usb_stream_hwdep_new()
430 hw->iface = SNDRV_HWDEP_IFACE_USB_STREAM; in usb_stream_hwdep_new()
431 hw->private_data = US122L(card); in usb_stream_hwdep_new()
432 hw->ops.open = usb_stream_hwdep_open; in usb_stream_hwdep_new()
433 hw->ops.release = usb_stream_hwdep_release; in usb_stream_hwdep_new()
434 hw->ops.ioctl = usb_stream_hwdep_ioctl; in usb_stream_hwdep_new()
435 hw->ops.ioctl_compat = usb_stream_hwdep_ioctl; in usb_stream_hwdep_new()
436 hw->ops.mmap = usb_stream_hwdep_mmap; in usb_stream_hwdep_new()
437 hw->ops.poll = usb_stream_hwdep_poll; in usb_stream_hwdep_new()
439 sprintf(hw->name, "/proc/bus/usb/%03d/%03d/hwdeppcm", in usb_stream_hwdep_new()