• Home
  • Raw
  • Download

Lines Matching refs:ucontrol

119 	struct snd_ctl_elem_value *ucontrol)  in onyx_snd_vol_get()  argument
129 ucontrol->value.integer.value[0] = l + VOLUME_RANGE_SHIFT; in onyx_snd_vol_get()
130 ucontrol->value.integer.value[1] = r + VOLUME_RANGE_SHIFT; in onyx_snd_vol_get()
136 struct snd_ctl_elem_value *ucontrol) in onyx_snd_vol_put() argument
141 if (ucontrol->value.integer.value[0] < -128 + VOLUME_RANGE_SHIFT || in onyx_snd_vol_put()
142 ucontrol->value.integer.value[0] > -1 + VOLUME_RANGE_SHIFT) in onyx_snd_vol_put()
144 if (ucontrol->value.integer.value[1] < -128 + VOLUME_RANGE_SHIFT || in onyx_snd_vol_put()
145 ucontrol->value.integer.value[1] > -1 + VOLUME_RANGE_SHIFT) in onyx_snd_vol_put()
152 if (l + VOLUME_RANGE_SHIFT == ucontrol->value.integer.value[0] && in onyx_snd_vol_put()
153 r + VOLUME_RANGE_SHIFT == ucontrol->value.integer.value[1]) { in onyx_snd_vol_put()
159 ucontrol->value.integer.value[0] in onyx_snd_vol_put()
162 ucontrol->value.integer.value[1] in onyx_snd_vol_put()
195 struct snd_ctl_elem_value *ucontrol) in onyx_snd_inputgain_get() argument
204 ucontrol->value.integer.value[0] = in onyx_snd_inputgain_get()
211 struct snd_ctl_elem_value *ucontrol) in onyx_snd_inputgain_put() argument
216 if (ucontrol->value.integer.value[0] < 3 + INPUTGAIN_RANGE_SHIFT || in onyx_snd_inputgain_put()
217 ucontrol->value.integer.value[0] > 28 + INPUTGAIN_RANGE_SHIFT) in onyx_snd_inputgain_put()
223 n |= (ucontrol->value.integer.value[0] - INPUTGAIN_RANGE_SHIFT) in onyx_snd_inputgain_put()
249 struct snd_ctl_elem_value *ucontrol) in onyx_snd_capture_source_get() argument
258 ucontrol->value.enumerated.item[0] = !!(v&ONYX_ADC_INPUT_MIC); in onyx_snd_capture_source_get()
277 struct snd_ctl_elem_value *ucontrol) in onyx_snd_capture_source_put() argument
279 if (ucontrol->value.enumerated.item[0] > 1) in onyx_snd_capture_source_put()
282 ucontrol->value.enumerated.item[0]); in onyx_snd_capture_source_put()
309 struct snd_ctl_elem_value *ucontrol) in onyx_snd_mute_get() argument
318 ucontrol->value.integer.value[0] = !(c & ONYX_MUTE_LEFT); in onyx_snd_mute_get()
319 ucontrol->value.integer.value[1] = !(c & ONYX_MUTE_RIGHT); in onyx_snd_mute_get()
325 struct snd_ctl_elem_value *ucontrol) in onyx_snd_mute_put() argument
338 if (!ucontrol->value.integer.value[0]) in onyx_snd_mute_put()
340 if (!ucontrol->value.integer.value[1]) in onyx_snd_mute_put()
366 struct snd_ctl_elem_value *ucontrol) in onyx_snd_single_bit_get() argument
379 ucontrol->value.integer.value[0] = !!(c & mask) ^ polarity; in onyx_snd_single_bit_get()
385 struct snd_ctl_elem_value *ucontrol) in onyx_snd_single_bit_put() argument
405 if (!!ucontrol->value.integer.value[0] ^ polarity) in onyx_snd_single_bit_put()
466 struct snd_ctl_elem_value *ucontrol) in onyx_spdif_mask_get() argument
469 ucontrol->value.iec958.status[0] = 0x3e; in onyx_spdif_mask_get()
470 ucontrol->value.iec958.status[1] = 0xff; in onyx_spdif_mask_get()
472 ucontrol->value.iec958.status[3] = 0x3f; in onyx_spdif_mask_get()
473 ucontrol->value.iec958.status[4] = 0x0f; in onyx_spdif_mask_get()
487 struct snd_ctl_elem_value *ucontrol) in onyx_spdif_get() argument
494 ucontrol->value.iec958.status[0] = v & 0x3e; in onyx_spdif_get()
497 ucontrol->value.iec958.status[1] = v; in onyx_spdif_get()
500 ucontrol->value.iec958.status[3] = v & 0x3f; in onyx_spdif_get()
503 ucontrol->value.iec958.status[4] = v & 0x0f; in onyx_spdif_get()
510 struct snd_ctl_elem_value *ucontrol) in onyx_spdif_put() argument
517 v = (v & ~0x3e) | (ucontrol->value.iec958.status[0] & 0x3e); in onyx_spdif_put()
520 v = ucontrol->value.iec958.status[1]; in onyx_spdif_put()
524 v = (v & ~0x3f) | (ucontrol->value.iec958.status[3] & 0x3f); in onyx_spdif_put()
528 v = (v & ~0x0f) | (ucontrol->value.iec958.status[4] & 0x0f); in onyx_spdif_put()