• Home
  • Raw
  • Download

Lines Matching refs:ucontrol

56 …atic int snd_sbmixer_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)  in snd_sbmixer_get_single()  argument
68 ucontrol->value.integer.value[0] = val; in snd_sbmixer_get_single()
72 …atic int snd_sbmixer_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_sbmixer_put_single() argument
82 val = (ucontrol->value.integer.value[0] & mask) << shift; in snd_sbmixer_put_single()
108 …atic int snd_sbmixer_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_sbmixer_get_double() argument
123 ucontrol->value.integer.value[0] = left; in snd_sbmixer_get_double()
124 ucontrol->value.integer.value[1] = right; in snd_sbmixer_get_double()
128 …atic int snd_sbmixer_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_sbmixer_put_double() argument
140 left = (ucontrol->value.integer.value[0] & mask) << left_shift; in snd_sbmixer_put_double()
141 right = (ucontrol->value.integer.value[1] & mask) << right_shift; in snd_sbmixer_put_double()
177 …tic int snd_dt019x_input_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_dt019x_input_sw_get() argument
188 ucontrol->value.enumerated.item[0] = 0; in snd_dt019x_input_sw_get()
191 ucontrol->value.enumerated.item[0] = 1; in snd_dt019x_input_sw_get()
194 ucontrol->value.enumerated.item[0] = 2; in snd_dt019x_input_sw_get()
197 ucontrol->value.enumerated.item[0] = 4; in snd_dt019x_input_sw_get()
207 ucontrol->value.enumerated.item[0] = 4; in snd_dt019x_input_sw_get()
213 …tic int snd_dt019x_input_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_dt019x_input_sw_put() argument
220 if (ucontrol->value.enumerated.item[0] > 4) in snd_dt019x_input_sw_put()
222 switch (ucontrol->value.enumerated.item[0]) { in snd_dt019x_input_sw_put()
265 struct snd_ctl_elem_value *ucontrol) in snd_als4k_mono_capture_route_get() argument
278 ucontrol->value.enumerated.item[0] = oval; in snd_als4k_mono_capture_route_get()
283 struct snd_ctl_elem_value *ucontrol) in snd_als4k_mono_capture_route_put() argument
290 if (ucontrol->value.enumerated.item[0] > 2) in snd_als4k_mono_capture_route_put()
296 | (ucontrol->value.enumerated.item[0] << 6); in snd_als4k_mono_capture_route_put()
318 static int snd_sb8mixer_get_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_sb8mixer_get_mux() argument
329 ucontrol->value.enumerated.item[0] = 1; in snd_sb8mixer_get_mux()
332 ucontrol->value.enumerated.item[0] = 2; in snd_sb8mixer_get_mux()
335 ucontrol->value.enumerated.item[0] = 0; in snd_sb8mixer_get_mux()
341 static int snd_sb8mixer_put_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_sb8mixer_put_mux() argument
348 if (ucontrol->value.enumerated.item[0] > 2) in snd_sb8mixer_put_mux()
350 switch (ucontrol->value.enumerated.item[0]) { in snd_sb8mixer_put_mux()
384 … int snd_sb16mixer_get_input_sw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_sb16mixer_get_input_sw() argument
398 ucontrol->value.integer.value[0] = (val1 >> left_shift) & 0x01; in snd_sb16mixer_get_input_sw()
399 ucontrol->value.integer.value[1] = (val2 >> left_shift) & 0x01; in snd_sb16mixer_get_input_sw()
400 ucontrol->value.integer.value[2] = (val1 >> right_shift) & 0x01; in snd_sb16mixer_get_input_sw()
401 ucontrol->value.integer.value[3] = (val2 >> right_shift) & 0x01; in snd_sb16mixer_get_input_sw()
405 … int snd_sb16mixer_put_input_sw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_sb16mixer_put_input_sw() argument
421 val1 |= (ucontrol->value.integer.value[0] & 1) << left_shift; in snd_sb16mixer_put_input_sw()
422 val2 |= (ucontrol->value.integer.value[1] & 1) << left_shift; in snd_sb16mixer_put_input_sw()
423 val1 |= (ucontrol->value.integer.value[2] & 1) << right_shift; in snd_sb16mixer_put_input_sw()
424 val2 |= (ucontrol->value.integer.value[3] & 1) << right_shift; in snd_sb16mixer_put_input_sw()