Lines Matching refs:ucontrol
768 static int snd_es1688_get_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_es1688_get_mux() argument
771 ucontrol->value.enumerated.item[0] = snd_es1688_mixer_read(chip, ES1688_REC_DEV) & 7; in snd_es1688_get_mux()
775 static int snd_es1688_put_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_es1688_put_mux() argument
782 if (ucontrol->value.enumerated.item[0] > 8) in snd_es1688_put_mux()
786 nval = (ucontrol->value.enumerated.item[0] & 7) | (oval & ~15); in snd_es1688_put_mux()
811 static int snd_es1688_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_es1688_get_single() argument
821 ucontrol->value.integer.value[0] = (snd_es1688_mixer_read(chip, reg) >> shift) & mask; in snd_es1688_get_single()
824 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_es1688_get_single()
828 static int snd_es1688_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_es1688_put_single() argument
839 nval = (ucontrol->value.integer.value[0] & mask); in snd_es1688_put_single()
870 static int snd_es1688_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_es1688_get_double() argument
895 ucontrol->value.integer.value[0] = (left >> shift_left) & mask; in snd_es1688_get_double()
896 ucontrol->value.integer.value[1] = (right >> shift_right) & mask; in snd_es1688_get_double()
898 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_es1688_get_double()
899 ucontrol->value.integer.value[1] = mask - ucontrol->value.integer.value[1]; in snd_es1688_get_double()
904 static int snd_es1688_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_es1688_put_double() argument
917 val1 = ucontrol->value.integer.value[0] & mask; in snd_es1688_put_double()
918 val2 = ucontrol->value.integer.value[1] & mask; in snd_es1688_put_double()