Lines Matching refs:hwdep
11 static long hwdep_read(struct snd_hwdep *hwdep, char __user *buf, in hwdep_read() argument
14 struct snd_dice *dice = hwdep->private_data; in hwdep_read()
54 static __poll_t hwdep_poll(struct snd_hwdep *hwdep, struct file *file, in hwdep_poll() argument
57 struct snd_dice *dice = hwdep->private_data; in hwdep_poll()
127 static int hwdep_release(struct snd_hwdep *hwdep, struct file *file) in hwdep_release() argument
129 struct snd_dice *dice = hwdep->private_data; in hwdep_release()
139 static int hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_ioctl() argument
142 struct snd_dice *dice = hwdep->private_data; in hwdep_ioctl()
157 static int hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_compat_ioctl() argument
160 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl()
176 struct snd_hwdep *hwdep; in snd_dice_create_hwdep() local
179 err = snd_hwdep_new(dice->card, "DICE", 0, &hwdep); in snd_dice_create_hwdep()
182 strcpy(hwdep->name, "DICE"); in snd_dice_create_hwdep()
183 hwdep->iface = SNDRV_HWDEP_IFACE_FW_DICE; in snd_dice_create_hwdep()
184 hwdep->ops = ops; in snd_dice_create_hwdep()
185 hwdep->private_data = dice; in snd_dice_create_hwdep()
186 hwdep->exclusive = true; in snd_dice_create_hwdep()