Lines Matching refs:hwdep
3 * motu-hwdep.c - a part of driver for MOTU FireWire series
27 static long hwdep_read(struct snd_hwdep *hwdep, char __user *buf, long count,
30 struct snd_motu *motu = hwdep->private_data;
99 static __poll_t hwdep_poll(struct snd_hwdep *hwdep, struct file *file,
102 struct snd_motu *motu = hwdep->private_data;
172 static int hwdep_release(struct snd_hwdep *hwdep, struct file *file)
174 struct snd_motu *motu = hwdep->private_data;
184 static int hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file,
187 struct snd_motu *motu = hwdep->private_data;
267 static int hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file,
270 return hwdep_ioctl(hwdep, file, cmd,
286 struct snd_hwdep *hwdep;
289 err = snd_hwdep_new(motu->card, motu->card->driver, 0, &hwdep);
293 strcpy(hwdep->name, "MOTU");
294 hwdep->iface = SNDRV_HWDEP_IFACE_FW_MOTU;
295 hwdep->ops = ops;
296 hwdep->private_data = motu;
297 hwdep->exclusive = true;
299 motu->hwdep = hwdep;