Lines Matching refs:ucontrol

924 …atic int snd_sonicvibes_get_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)  in snd_sonicvibes_get_mux()  argument
929ucontrol->value.enumerated.item[0] = ((snd_sonicvibes_in1(sonic, SV_IREG_LEFT_ADC) & SV_RECSRC_OUT… in snd_sonicvibes_get_mux()
930ucontrol->value.enumerated.item[1] = ((snd_sonicvibes_in1(sonic, SV_IREG_RIGHT_ADC) & SV_RECSRC_OU… in snd_sonicvibes_get_mux()
935 …atic int snd_sonicvibes_put_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_sonicvibes_put_mux() argument
941 if (ucontrol->value.enumerated.item[0] >= 7 || in snd_sonicvibes_put_mux()
942 ucontrol->value.enumerated.item[1] >= 7) in snd_sonicvibes_put_mux()
944 left = (ucontrol->value.enumerated.item[0] + 1) << 5; in snd_sonicvibes_put_mux()
945 right = (ucontrol->value.enumerated.item[1] + 1) << 5; in snd_sonicvibes_put_mux()
975 …c int snd_sonicvibes_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_sonicvibes_get_single() argument
984 ucontrol->value.integer.value[0] = (snd_sonicvibes_in1(sonic, reg)>> shift) & mask; in snd_sonicvibes_get_single()
987 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_sonicvibes_get_single()
991 …c int snd_sonicvibes_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_sonicvibes_put_single() argument
1001 val = (ucontrol->value.integer.value[0] & mask); in snd_sonicvibes_put_single()
1031 …c int snd_sonicvibes_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_sonicvibes_get_double() argument
1042 ucontrol->value.integer.value[0] = (snd_sonicvibes_in1(sonic, left_reg) >> shift_left) & mask; in snd_sonicvibes_get_double()
1043 ucontrol->value.integer.value[1] = (snd_sonicvibes_in1(sonic, right_reg) >> shift_right) & mask; in snd_sonicvibes_get_double()
1046 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_sonicvibes_get_double()
1047 ucontrol->value.integer.value[1] = mask - ucontrol->value.integer.value[1]; in snd_sonicvibes_get_double()
1052 …c int snd_sonicvibes_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_sonicvibes_put_double() argument
1064 val1 = ucontrol->value.integer.value[0] & mask; in snd_sonicvibes_put_double()
1065 val2 = ucontrol->value.integer.value[1] & mask; in snd_sonicvibes_put_double()