Lines Matching refs:kcontrol

300 static int snd_audigy2nx_led_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)  in snd_audigy2nx_led_get()  argument
302 ucontrol->value.integer.value[0] = kcontrol->private_value >> 8; in snd_audigy2nx_led_get()
336 static int snd_audigy2nx_led_put(struct snd_kcontrol *kcontrol, in snd_audigy2nx_led_put() argument
339 struct usb_mixer_elem_list *list = snd_kcontrol_chip(kcontrol); in snd_audigy2nx_led_put()
341 int index = kcontrol->private_value & 0xff; in snd_audigy2nx_led_put()
343 int old_value = kcontrol->private_value >> 8; in snd_audigy2nx_led_put()
350 kcontrol->private_value = (value << 8) | index; in snd_audigy2nx_led_put()
460 static int snd_emu0204_ch_switch_info(struct snd_kcontrol *kcontrol, in snd_emu0204_ch_switch_info() argument
468 static int snd_emu0204_ch_switch_get(struct snd_kcontrol *kcontrol, in snd_emu0204_ch_switch_get() argument
471 ucontrol->value.enumerated.item[0] = kcontrol->private_value; in snd_emu0204_ch_switch_get()
496 static int snd_emu0204_ch_switch_put(struct snd_kcontrol *kcontrol, in snd_emu0204_ch_switch_put() argument
499 struct usb_mixer_elem_list *list = snd_kcontrol_chip(kcontrol); in snd_emu0204_ch_switch_put()
507 if (value == kcontrol->private_value) in snd_emu0204_ch_switch_put()
510 kcontrol->private_value = value; in snd_emu0204_ch_switch_put()
539 static int snd_xonar_u1_switch_get(struct snd_kcontrol *kcontrol, in snd_xonar_u1_switch_get() argument
542 ucontrol->value.integer.value[0] = !!(kcontrol->private_value & 0x02); in snd_xonar_u1_switch_get()
563 static int snd_xonar_u1_switch_put(struct snd_kcontrol *kcontrol, in snd_xonar_u1_switch_put() argument
566 struct usb_mixer_elem_list *list = snd_kcontrol_chip(kcontrol); in snd_xonar_u1_switch_put()
570 old_status = kcontrol->private_value; in snd_xonar_u1_switch_put()
578 kcontrol->private_value = new_status; in snd_xonar_u1_switch_put()
700 static int snd_mbox1_switch_info(struct snd_kcontrol *kcontrol, in snd_mbox1_switch_info() argument
760 static int snd_nativeinstruments_control_get(struct snd_kcontrol *kcontrol, in snd_nativeinstruments_control_get() argument
763 ucontrol->value.integer.value[0] = kcontrol->private_value >> 24; in snd_nativeinstruments_control_get()
784 static int snd_nativeinstruments_control_put(struct snd_kcontrol *kcontrol, in snd_nativeinstruments_control_put() argument
787 struct usb_mixer_elem_list *list = snd_kcontrol_chip(kcontrol); in snd_nativeinstruments_control_put()
788 u8 oldval = (kcontrol->private_value >> 24) & 0xff; in snd_nativeinstruments_control_put()
795 kcontrol->private_value &= ~(0xff << 24); in snd_nativeinstruments_control_put()
796 kcontrol->private_value |= (unsigned int)newval << 24; in snd_nativeinstruments_control_put()
887 static int snd_ftu_eff_switch_info(struct snd_kcontrol *kcontrol, in snd_ftu_eff_switch_info() argument
1492 static int snd_microii_spdif_info(struct snd_kcontrol *kcontrol, in snd_microii_spdif_info() argument
1500 static int snd_microii_spdif_default_get(struct snd_kcontrol *kcontrol, in snd_microii_spdif_default_get() argument
1503 struct usb_mixer_elem_list *list = snd_kcontrol_chip(kcontrol); in snd_microii_spdif_default_get()
1516 ucontrol->value.iec958.status[0] = kcontrol->private_value & 0xff; in snd_microii_spdif_default_get()
1517 ucontrol->value.iec958.status[1] = (kcontrol->private_value >> 8) & 0xff; in snd_microii_spdif_default_get()
1591 static int snd_microii_spdif_default_put(struct snd_kcontrol *kcontrol, in snd_microii_spdif_default_put() argument
1594 struct usb_mixer_elem_list *list = snd_kcontrol_chip(kcontrol); in snd_microii_spdif_default_put()
1598 pval = pval_old = kcontrol->private_value; in snd_microii_spdif_default_put()
1613 kcontrol->private_value = pval; in snd_microii_spdif_default_put()
1618 static int snd_microii_spdif_mask_get(struct snd_kcontrol *kcontrol, in snd_microii_spdif_mask_get() argument
1629 static int snd_microii_spdif_switch_get(struct snd_kcontrol *kcontrol, in snd_microii_spdif_switch_get() argument
1632 ucontrol->value.integer.value[0] = !(kcontrol->private_value & 0x02); in snd_microii_spdif_switch_get()
1660 static int snd_microii_spdif_switch_put(struct snd_kcontrol *kcontrol, in snd_microii_spdif_switch_put() argument
1663 struct usb_mixer_elem_list *list = snd_kcontrol_chip(kcontrol); in snd_microii_spdif_switch_put()
1671 kcontrol->private_value = reg; in snd_microii_spdif_switch_put()