Lines Matching refs:ucontrol

109 static int wm_dac_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)  in wm_dac_vol_get()  argument
119 ucontrol->value.integer.value[i] = val; in wm_dac_vol_get()
125 static int wm_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_dac_vol_put() argument
133 nval = ucontrol->value.integer.value[i]; in wm_dac_vol_put()
164 static int wm_adc_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_vol_get() argument
174 ucontrol->value.integer.value[i] = val; in wm_adc_vol_get()
180 static int wm_adc_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_vol_put() argument
188 nvol = ucontrol->value.integer.value[i]; in wm_adc_vol_put()
206 static int wm_adc_mux_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_mux_get() argument
212 ucontrol->value.integer.value[0] = (wm_get(ice, WM_ADC_MUX) & (1 << bit)) ? 1 : 0; in wm_adc_mux_get()
217 static int wm_adc_mux_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_mux_put() argument
226 if (ucontrol->value.integer.value[0]) in wm_adc_mux_put()
243 static int wm_bypass_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_bypass_get() argument
248 ucontrol->value.integer.value[0] = (wm_get(ice, WM_OUT_MUX) & 0x04) ? 1 : 0; in wm_bypass_get()
253 static int wm_bypass_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_bypass_put() argument
261 if (ucontrol->value.integer.value[0]) in wm_bypass_put()
278 static int wm_chswap_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_chswap_get() argument
283 ucontrol->value.integer.value[0] = (wm_get(ice, WM_DAC_CTRL1) & 0xf0) != 0x90; in wm_chswap_get()
288 static int wm_chswap_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_chswap_put() argument
297 if (ucontrol->value.integer.value[0]) in wm_chswap_put()
409 static int cs_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in cs_source_get() argument
414 ucontrol->value.enumerated.item[0] = ice->gpio.saved[0]; in cs_source_get()
419 static int cs_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in cs_source_put() argument
426 if (ucontrol->value.enumerated.item[0] != ice->gpio.saved[0]) { in cs_source_put()
427 ice->gpio.saved[0] = ucontrol->value.enumerated.item[0] & 3; in cs_source_put()
449 static int pontis_gpio_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in pontis_gpio_mask_get() argument
454 ucontrol->value.integer.value[0] = (~ice->gpio.write_mask & 0xffff) | 0x00f0; in pontis_gpio_mask_get()
459 static int pontis_gpio_mask_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in pontis_gpio_mask_put() argument
466 val = (~ucontrol->value.integer.value[0] & 0xffff) | 0x00f0; in pontis_gpio_mask_put()
473 static int pontis_gpio_dir_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in pontis_gpio_dir_get() argument
478 ucontrol->value.integer.value[0] = ice->gpio.direction & 0xff0f; in pontis_gpio_dir_get()
483 static int pontis_gpio_dir_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in pontis_gpio_dir_put() argument
490 val = ucontrol->value.integer.value[0] & 0xff0f; in pontis_gpio_dir_put()
497 static int pontis_gpio_data_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in pontis_gpio_data_get() argument
503 ucontrol->value.integer.value[0] = snd_ice1712_gpio_read(ice) & 0xffff; in pontis_gpio_data_get()
508 static int pontis_gpio_data_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in pontis_gpio_data_put() argument
517 nval = ucontrol->value.integer.value[0] & 0xffff; in pontis_gpio_data_put()