Lines Matching refs:hw
47 static int snd_us428ctls_mmap(struct snd_hwdep *hw, struct file *filp, struct vm_area_struct *area) in snd_us428ctls_mmap() argument
50 struct usx2ydev *us428 = hw->private_data; in snd_us428ctls_mmap()
65 area->vm_private_data = hw->private_data; in snd_us428ctls_mmap()
69 static __poll_t snd_us428ctls_poll(struct snd_hwdep *hw, struct file *file, poll_table *wait) in snd_us428ctls_poll() argument
72 struct usx2ydev *us428 = hw->private_data; in snd_us428ctls_poll()
87 static int snd_usx2y_hwdep_dsp_status(struct snd_hwdep *hw, in snd_usx2y_hwdep_dsp_status() argument
95 struct usx2ydev *us428 = hw->private_data; in snd_usx2y_hwdep_dsp_status()
178 static int snd_usx2y_hwdep_dsp_load(struct snd_hwdep *hw, in snd_usx2y_hwdep_dsp_load() argument
181 struct usx2ydev *priv = hw->private_data; in snd_usx2y_hwdep_dsp_load()
212 err = usx2y_create_alsa_devices(hw->card); in snd_usx2y_hwdep_dsp_load()
218 snd_printdd("%s: alsa all started\n", hw->name); in snd_usx2y_hwdep_dsp_load()
226 struct snd_hwdep *hw; in usx2y_hwdep_new() local
229 err = snd_hwdep_new(card, SND_USX2Y_LOADER_ID, 0, &hw); in usx2y_hwdep_new()
233 hw->iface = SNDRV_HWDEP_IFACE_USX2Y; in usx2y_hwdep_new()
234 hw->private_data = us428; in usx2y_hwdep_new()
235 hw->ops.dsp_status = snd_usx2y_hwdep_dsp_status; in usx2y_hwdep_new()
236 hw->ops.dsp_load = snd_usx2y_hwdep_dsp_load; in usx2y_hwdep_new()
237 hw->ops.mmap = snd_us428ctls_mmap; in usx2y_hwdep_new()
238 hw->ops.poll = snd_us428ctls_poll; in usx2y_hwdep_new()
239 hw->exclusive = 1; in usx2y_hwdep_new()
240 sprintf(hw->name, "/dev/bus/usb/%03d/%03d", device->bus->busnum, device->devnum); in usx2y_hwdep_new()