Lines Matching refs:kctl
335 struct snd_kcontrol *kctl, u32 *state) in snd_s1810c_get_switch_state() argument
340 u32 ctl_idx = (u32) (kctl->private_value & 0xFF); in snd_s1810c_get_switch_state()
362 struct snd_kcontrol *kctl) in snd_s1810c_set_switch_state() argument
366 u32 pval = (u32) kctl->private_value; in snd_s1810c_set_switch_state()
380 snd_s1810c_switch_get(struct snd_kcontrol *kctl, in snd_s1810c_switch_get() argument
383 struct usb_mixer_elem_list *list = snd_kcontrol_chip(kctl); in snd_s1810c_switch_get()
386 u32 pval = (u32) kctl->private_value; in snd_s1810c_switch_get()
392 ret = snd_s1810c_get_switch_state(mixer, kctl, &state); in snd_s1810c_switch_get()
411 snd_s1810c_switch_set(struct snd_kcontrol *kctl, in snd_s1810c_switch_set() argument
414 struct usb_mixer_elem_list *list = snd_kcontrol_chip(kctl); in snd_s1810c_switch_set()
417 u32 pval = (u32) kctl->private_value; in snd_s1810c_switch_set()
424 ret = snd_s1810c_get_switch_state(mixer, kctl, &curval); in snd_s1810c_switch_set()
440 kctl->private_value &= ~(0x1 << 16); in snd_s1810c_switch_set()
441 kctl->private_value |= (unsigned int)(newval & 0x1) << 16; in snd_s1810c_switch_set()
442 ret = snd_s1810c_set_switch_state(mixer, kctl); in snd_s1810c_switch_set()
453 struct snd_kcontrol *kctl; in snd_s1810c_switch_init() local
465 kctl = snd_ctl_new1(new_kctl, elem); in snd_s1810c_switch_init()
466 if (!kctl) { in snd_s1810c_switch_init()
470 kctl->private_free = snd_usb_mixer_elem_free; in snd_s1810c_switch_init()
472 return snd_usb_mixer_add_control(&elem->head, kctl); in snd_s1810c_switch_init()
476 snd_s1810c_line_sw_info(struct snd_kcontrol *kctl, in snd_s1810c_line_sw_info() argument
515 snd_s1810c_ab_sw_info(struct snd_kcontrol *kctl, in snd_s1810c_ab_sw_info() argument