Lines Matching refs:ctl
94 static int snd_ctl_elem_info_compat(struct snd_ctl_file *ctl, in snd_ctl_elem_info_compat() argument
114 snd_power_lock(ctl->card); in snd_ctl_elem_info_compat()
115 err = snd_power_wait(ctl->card, SNDRV_CTL_POWER_D0); in snd_ctl_elem_info_compat()
117 err = snd_ctl_elem_info(ctl, data); in snd_ctl_elem_info_compat()
118 snd_power_unlock(ctl->card); in snd_ctl_elem_info_compat()
400 struct snd_ctl_file *ctl; in snd_ctl_ioctl_compat() local
405 ctl = file->private_data; in snd_ctl_ioctl_compat()
406 if (snd_BUG_ON(!ctl || !ctl->card)) in snd_ctl_ioctl_compat()
423 return snd_ctl_elem_list_compat(ctl->card, argp); in snd_ctl_ioctl_compat()
425 return snd_ctl_elem_info_compat(ctl, argp); in snd_ctl_ioctl_compat()
427 return snd_ctl_elem_read_user_compat(ctl->card, argp); in snd_ctl_ioctl_compat()
429 return snd_ctl_elem_write_user_compat(ctl, argp); in snd_ctl_ioctl_compat()
431 return snd_ctl_elem_add_compat(ctl, argp, 0); in snd_ctl_ioctl_compat()
433 return snd_ctl_elem_add_compat(ctl, argp, 1); in snd_ctl_ioctl_compat()
439 err = p->fioctl(ctl->card, ctl, cmd, arg); in snd_ctl_ioctl_compat()