• Home
  • Raw
  • Download

Lines Matching refs:hw

60 static int snd_us428ctls_mmap(struct snd_hwdep * hw, struct file *filp, struct vm_area_struct *area)  in snd_us428ctls_mmap()  argument
63 struct usX2Ydev *us428 = hw->private_data; in snd_us428ctls_mmap()
85 area->vm_private_data = hw->private_data; in snd_us428ctls_mmap()
89 static unsigned int snd_us428ctls_poll(struct snd_hwdep *hw, struct file *file, poll_table *wait) in snd_us428ctls_poll() argument
92 struct usX2Ydev *us428 = hw->private_data; in snd_us428ctls_poll()
106 static int snd_usX2Y_hwdep_dsp_status(struct snd_hwdep *hw, in snd_usX2Y_hwdep_dsp_status() argument
114 struct usX2Ydev *us428 = hw->private_data; in snd_usX2Y_hwdep_dsp_status()
197 static int snd_usX2Y_hwdep_dsp_load(struct snd_hwdep *hw, in snd_usX2Y_hwdep_dsp_load() argument
200 struct usX2Ydev *priv = hw->private_data; in snd_usX2Y_hwdep_dsp_load()
233 err = usX2Y_create_alsa_devices(hw->card); in snd_usX2Y_hwdep_dsp_load()
236 snd_card_free(hw->card); in snd_usX2Y_hwdep_dsp_load()
240 snd_printdd("%s: alsa all started\n", hw->name); in snd_usX2Y_hwdep_dsp_load()
249 struct snd_hwdep *hw; in usX2Y_hwdep_new() local
251 if ((err = snd_hwdep_new(card, SND_USX2Y_LOADER_ID, 0, &hw)) < 0) in usX2Y_hwdep_new()
254 hw->iface = SNDRV_HWDEP_IFACE_USX2Y; in usX2Y_hwdep_new()
255 hw->private_data = usX2Y(card); in usX2Y_hwdep_new()
256 hw->ops.dsp_status = snd_usX2Y_hwdep_dsp_status; in usX2Y_hwdep_new()
257 hw->ops.dsp_load = snd_usX2Y_hwdep_dsp_load; in usX2Y_hwdep_new()
258 hw->ops.mmap = snd_us428ctls_mmap; in usX2Y_hwdep_new()
259 hw->ops.poll = snd_us428ctls_poll; in usX2Y_hwdep_new()
260 hw->exclusive = 1; in usX2Y_hwdep_new()
261 sprintf(hw->name, "/dev/bus/usb/%03d/%03d", device->bus->busnum, device->devnum); in usX2Y_hwdep_new()