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