Lines Matching refs:ucontrol
123 static int wm_dac_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_dac_vol_get() argument
133 ucontrol->value.integer.value[i] = val; in wm_dac_vol_get()
139 static int wm_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_dac_vol_put() argument
147 nval = ucontrol->value.integer.value[i]; in wm_dac_vol_put()
178 static int wm_adc_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_vol_get() argument
188 ucontrol->value.integer.value[i] = val; in wm_adc_vol_get()
194 static int wm_adc_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_vol_put() argument
202 nvol = ucontrol->value.integer.value[i]; in wm_adc_vol_put()
220 static int wm_adc_mux_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_mux_get() argument
226 ucontrol->value.integer.value[0] = (wm_get(ice, WM_ADC_MUX) & (1 << bit)) ? 1 : 0; in wm_adc_mux_get()
231 static int wm_adc_mux_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_mux_put() argument
240 if (ucontrol->value.integer.value[0]) in wm_adc_mux_put()
257 static int wm_bypass_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_bypass_get() argument
262 ucontrol->value.integer.value[0] = (wm_get(ice, WM_OUT_MUX) & 0x04) ? 1 : 0; in wm_bypass_get()
267 static int wm_bypass_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_bypass_put() argument
275 if (ucontrol->value.integer.value[0]) in wm_bypass_put()
292 static int wm_chswap_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_chswap_get() argument
297 ucontrol->value.integer.value[0] = (wm_get(ice, WM_DAC_CTRL1) & 0xf0) != 0x90; in wm_chswap_get()
302 static int wm_chswap_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_chswap_put() argument
311 if (ucontrol->value.integer.value[0]) in wm_chswap_put()
423 static int cs_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in cs_source_get() argument
428 ucontrol->value.enumerated.item[0] = ice->gpio.saved[0]; in cs_source_get()
433 static int cs_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in cs_source_put() argument
440 if (ucontrol->value.enumerated.item[0] != ice->gpio.saved[0]) { in cs_source_put()
441 ice->gpio.saved[0] = ucontrol->value.enumerated.item[0] & 3; in cs_source_put()
463 static int pontis_gpio_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in pontis_gpio_mask_get() argument
468 ucontrol->value.integer.value[0] = (~ice->gpio.write_mask & 0xffff) | 0x00f0; in pontis_gpio_mask_get()
473 static int pontis_gpio_mask_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in pontis_gpio_mask_put() argument
480 val = (~ucontrol->value.integer.value[0] & 0xffff) | 0x00f0; in pontis_gpio_mask_put()
487 static int pontis_gpio_dir_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in pontis_gpio_dir_get() argument
492 ucontrol->value.integer.value[0] = ice->gpio.direction & 0xff0f; in pontis_gpio_dir_get()
497 static int pontis_gpio_dir_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in pontis_gpio_dir_put() argument
504 val = ucontrol->value.integer.value[0] & 0xff0f; in pontis_gpio_dir_put()
511 static int pontis_gpio_data_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in pontis_gpio_data_get() argument
517 ucontrol->value.integer.value[0] = snd_ice1712_gpio_read(ice) & 0xffff; in pontis_gpio_data_get()
522 static int pontis_gpio_data_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in pontis_gpio_data_put() argument
531 nval = ucontrol->value.integer.value[0] & 0xffff; in pontis_gpio_data_put()