Home
last modified time | relevance | path

Searched refs:ucontrol (Results 1 – 25 of 378) sorted by relevance

12345678910>>...16

/linux/sound/aoa/codecs/
H A Dtas.c234 struct snd_ctl_elem_value *ucontrol) in tas_snd_vol_get() argument
239 ucontrol->value.integer.value[0] = tas->cached_volume_l; in tas_snd_vol_get()
240 ucontrol->value.integer.value[1] = tas->cached_volume_r; in tas_snd_vol_get()
246 struct snd_ctl_elem_value *ucontrol) in tas_snd_vol_put() argument
250 if (ucontrol->value.integer.value[0] < 0 || in tas_snd_vol_put()
251 ucontrol->value.integer.value[0] > 177) in tas_snd_vol_put()
253 if (ucontrol->value.integer.value[1] < 0 || in tas_snd_vol_put()
254 ucontrol->value.integer.value[1] > 177) in tas_snd_vol_put()
258 if (tas->cached_volume_l == ucontrol->value.integer.value[0] in tas_snd_vol_put()
259 && tas->cached_volume_r == ucontrol->value.integer.value[1]) { in tas_snd_vol_put()
[all …]
H A Donyx.c120 struct snd_ctl_elem_value *ucontrol) in onyx_snd_vol_get() argument
130 ucontrol->value.integer.value[0] = l + VOLUME_RANGE_SHIFT; in onyx_snd_vol_get()
131 ucontrol->value.integer.value[1] = r + VOLUME_RANGE_SHIFT; in onyx_snd_vol_get()
137 struct snd_ctl_elem_value *ucontrol) in onyx_snd_vol_put() argument
142 if (ucontrol->value.integer.value[0] < -128 + VOLUME_RANGE_SHIFT || in onyx_snd_vol_put()
143 ucontrol->value.integer.value[0] > -1 + VOLUME_RANGE_SHIFT) in onyx_snd_vol_put()
145 if (ucontrol->value.integer.value[1] < -128 + VOLUME_RANGE_SHIFT || in onyx_snd_vol_put()
146 ucontrol->value.integer.value[1] > -1 + VOLUME_RANGE_SHIFT) in onyx_snd_vol_put()
153 if (l + VOLUME_RANGE_SHIFT == ucontrol->value.integer.value[0] && in onyx_snd_vol_put()
154 r + VOLUME_RANGE_SHIFT == ucontrol->value.integer.value[1]) { in onyx_snd_vol_put()
[all …]
/linux/sound/drivers/vx/
H A Dvx_mixer.c410 static int vx_output_level_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_output_level_get() argument
415 ucontrol->value.integer.value[0] = chip->output_level[codec][0]; in vx_output_level_get()
416 ucontrol->value.integer.value[1] = chip->output_level[codec][1]; in vx_output_level_get()
421 static int vx_output_level_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_output_level_put() argument
428 val[0] = ucontrol->value.integer.value[0]; in vx_output_level_put()
429 val[1] = ucontrol->value.integer.value[1]; in vx_output_level_put()
475 static int vx_audio_src_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_audio_src_get() argument
478 ucontrol->value.enumerated.item[0] = chip->audio_source_target; in vx_audio_src_get()
482 static int vx_audio_src_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_audio_src_put() argument
487 if (ucontrol->value.enumerated.item[0] > 2) in vx_audio_src_put()
[all …]
/linux/sound/pci/ca0106/
H A Dca0106_mixer.c147 struct snd_ctl_elem_value *ucontrol) in snd_ca0106_shared_spdif_get() argument
151 ucontrol->value.integer.value[0] = emu->spdif_enable; in snd_ca0106_shared_spdif_get()
156 struct snd_ctl_elem_value *ucontrol) in snd_ca0106_shared_spdif_put() argument
162 val = !!ucontrol->value.integer.value[0]; in snd_ca0106_shared_spdif_put()
182 struct snd_ctl_elem_value *ucontrol) in snd_ca0106_capture_source_get() argument
186 ucontrol->value.enumerated.item[0] = emu->capture_source; in snd_ca0106_capture_source_get()
191 struct snd_ctl_elem_value *ucontrol) in snd_ca0106_capture_source_put() argument
197 val = ucontrol->value.enumerated.item[0] ; in snd_ca0106_capture_source_put()
219 struct snd_ctl_elem_value *ucontrol) in snd_ca0106_i2c_capture_source_get() argument
223 ucontrol->value.enumerated.item[0] = emu->i2c_capture_source; in snd_ca0106_i2c_capture_source_get()
[all …]
/linux/sound/soc/
H A Dsoc-ops.c60 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_enum_double() argument
70 ucontrol->value.enumerated.item[0] = item; in snd_soc_get_enum_double()
74 ucontrol->value.enumerated.item[1] = item; in snd_soc_get_enum_double()
91 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_enum_double() argument
95 unsigned int *item = ucontrol->value.enumerated.item; in snd_soc_put_enum_double()
255 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_volsw() argument
279 ucontrol->value.integer.value[0] = val - min; in snd_soc_get_volsw()
281 ucontrol->value.integer.value[0] = in snd_soc_get_volsw()
282 max - ucontrol->value.integer.value[0]; in snd_soc_get_volsw()
294 ucontrol->value.integer.value[1] = val - min; in snd_soc_get_volsw()
[all …]
/linux/sound/usb/6fire/
H A Dcontrol.c186 struct snd_ctl_elem_value *ucontrol) in usb6fire_control_output_vol_put() argument
198 if (rt->output_vol[ch] != ucontrol->value.integer.value[0]) { in usb6fire_control_output_vol_put()
199 rt->output_vol[ch] = ucontrol->value.integer.value[0]; in usb6fire_control_output_vol_put()
203 if (rt->output_vol[ch + 1] != ucontrol->value.integer.value[1]) { in usb6fire_control_output_vol_put()
204 rt->output_vol[ch + 1] = ucontrol->value.integer.value[1]; in usb6fire_control_output_vol_put()
216 struct snd_ctl_elem_value *ucontrol) in usb6fire_control_output_vol_get() argument
227 ucontrol->value.integer.value[0] = rt->output_vol[ch]; in usb6fire_control_output_vol_get()
228 ucontrol->value.integer.value[1] = rt->output_vol[ch + 1]; in usb6fire_control_output_vol_get()
233 struct snd_ctl_elem_value *ucontrol) in usb6fire_control_output_mute_put() argument
247 if (ucontrol->value.integer.value[0]) in usb6fire_control_output_mute_put()
[all …]
/linux/sound/pci/ice1712/
H A Dwtm.c114 struct snd_ctl_elem_value *ucontrol) in stac9460_dac_mute_get() argument
127 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in stac9460_dac_mute_get()
134 ucontrol->value.integer.value[0] = (~val >> 7) & 0x1; in stac9460_dac_mute_get()
141 struct snd_ctl_elem_value *ucontrol) in stac9460_dac_mute_put() argument
151 new = (~ucontrol->value.integer.value[0] << 7 & 0x80) | in stac9460_dac_mute_put()
159 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in stac9460_dac_mute_put()
165 new = (~ucontrol->value.integer.value[0] << 7 & 0x80) | in stac9460_dac_mute_put()
192 struct snd_ctl_elem_value *ucontrol) in stac9460_dac_vol_get() argument
202 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in stac9460_dac_vol_get()
209 ucontrol->value.integer.value[0] = 0x7f - vol; in stac9460_dac_vol_get()
[all …]
H A Dpontis.c109 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()
[all …]
H A Daureon.c198 struct snd_ctl_elem_value *ucontrol) in aureon_universe_inmux_get() argument
202 ucontrol->value.enumerated.item[0] = spec->pca9554_out; in aureon_universe_inmux_get()
207 struct snd_ctl_elem_value *ucontrol) in aureon_universe_inmux_put() argument
214 nval = ucontrol->value.enumerated.item[0]; in aureon_universe_inmux_put()
356 static int aureon_ac97_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_ac97_vol_get() argument
364 ucontrol->value.integer.value[0] = 0x1F - (vol & 0x1F); in aureon_ac97_vol_get()
366 ucontrol->value.integer.value[1] = 0x1F - ((vol >> 8) & 0x1F); in aureon_ac97_vol_get()
372 static int aureon_ac97_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_ac97_vol_put() argument
381 nvol = (0x1F - ucontrol->value.integer.value[0]) & 0x001F; in aureon_ac97_vol_put()
383 nvol |= ((0x1F - ucontrol->value.integer.value[1]) << 8) & 0x1F00; in aureon_ac97_vol_put()
[all …]
H A Dprodigy192.c94 static int stac9460_dac_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in stac9460_dac_mute_get() argument
103 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME; in stac9460_dac_mute_get()
105 ucontrol->value.integer.value[0] = (~val >> 7) & 0x1; in stac9460_dac_mute_get()
109 static int stac9460_dac_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in stac9460_dac_mute_put() argument
118 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME; in stac9460_dac_mute_put()
125 change = stac9460_dac_mute(ice, idx, ucontrol->value.integer.value[0]); in stac9460_dac_mute_put()
142 static int stac9460_dac_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in stac9460_dac_vol_get() argument
151 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME; in stac9460_dac_vol_get()
153 ucontrol->value.integer.value[0] = 0x7f - vol; in stac9460_dac_vol_get()
158 static int stac9460_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in stac9460_dac_vol_put() argument
[all …]
/linux/sound/pci/pcxhr/
H A Dpcxhr_mixer.c110 struct snd_ctl_elem_value *ucontrol) in pcxhr_analog_vol_get() argument
115 ucontrol->value.integer.value[0] = chip->analog_playback_volume[0]; in pcxhr_analog_vol_get()
116 ucontrol->value.integer.value[1] = chip->analog_playback_volume[1]; in pcxhr_analog_vol_get()
118 ucontrol->value.integer.value[0] = chip->analog_capture_volume[0]; in pcxhr_analog_vol_get()
119 ucontrol->value.integer.value[1] = chip->analog_capture_volume[1]; in pcxhr_analog_vol_get()
126 struct snd_ctl_elem_value *ucontrol) in pcxhr_analog_vol_put() argument
135 int new_volume = ucontrol->value.integer.value[i]; in pcxhr_analog_vol_put()
191 struct snd_ctl_elem_value *ucontrol) in pcxhr_audio_sw_get() argument
196 ucontrol->value.integer.value[0] = chip->analog_playback_active[0]; in pcxhr_audio_sw_get()
197 ucontrol->value.integer.value[1] = chip->analog_playback_active[1]; in pcxhr_audio_sw_get()
[all …]
/linux/sound/pci/mixart/
H A Dmixart_mixer.c344 static int mixart_analog_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_analog_vol_get() argument
349 ucontrol->value.integer.value[0] = chip->analog_playback_volume[0]; in mixart_analog_vol_get()
350 ucontrol->value.integer.value[1] = chip->analog_playback_volume[1]; in mixart_analog_vol_get()
352 ucontrol->value.integer.value[0] = chip->analog_capture_volume[0]; in mixart_analog_vol_get()
353 ucontrol->value.integer.value[1] = chip->analog_capture_volume[1]; in mixart_analog_vol_get()
359 static int mixart_analog_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_analog_vol_put() argument
368 int new_volume = ucontrol->value.integer.value[i]; in mixart_analog_vol_put()
408 static int mixart_audio_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_audio_sw_get() argument
413 ucontrol->value.integer.value[0] = chip->analog_playback_active[0]; in mixart_audio_sw_get()
414 ucontrol->value.integer.value[1] = chip->analog_playback_active[1]; in mixart_audio_sw_get()
[all …]
/linux/sound/pci/emu10k1/
H A Demumixer.c52 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_spdif_get() argument
55 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_spdif_get()
60 ucontrol->value.iec958.status[0] = (emu->spdif_bits[idx] >> 0) & 0xff; in snd_emu10k1_spdif_get()
61 ucontrol->value.iec958.status[1] = (emu->spdif_bits[idx] >> 8) & 0xff; in snd_emu10k1_spdif_get()
62 ucontrol->value.iec958.status[2] = (emu->spdif_bits[idx] >> 16) & 0xff; in snd_emu10k1_spdif_get()
63 ucontrol->value.iec958.status[3] = (emu->spdif_bits[idx] >> 24) & 0xff; in snd_emu10k1_spdif_get()
68 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_spdif_get_mask() argument
70 ucontrol->value.iec958.status[0] = 0xff; in snd_emu10k1_spdif_get_mask()
71 ucontrol->value.iec958.status[1] = 0xff; in snd_emu10k1_spdif_get_mask()
72 ucontrol->value.iec958.status[2] = 0xff; in snd_emu10k1_spdif_get_mask()
[all …]
/linux/sound/soc/img/
H A Dimg-spdif-in.c280 struct snd_ctl_elem_value *ucontrol) in img_spdif_in_get_status_mask() argument
282 ucontrol->value.iec958.status[0] = 0xff; in img_spdif_in_get_status_mask()
283 ucontrol->value.iec958.status[1] = 0xff; in img_spdif_in_get_status_mask()
284 ucontrol->value.iec958.status[2] = 0xff; in img_spdif_in_get_status_mask()
285 ucontrol->value.iec958.status[3] = 0xff; in img_spdif_in_get_status_mask()
286 ucontrol->value.iec958.status[4] = 0xff; in img_spdif_in_get_status_mask()
292 struct snd_ctl_elem_value *ucontrol) in img_spdif_in_get_status() argument
299 ucontrol->value.iec958.status[0] = reg & 0xff; in img_spdif_in_get_status()
300 ucontrol->value.iec958.status[1] = (reg >> 8) & 0xff; in img_spdif_in_get_status()
301 ucontrol in img_spdif_in_get_status()
322 img_spdif_in_get_multi_freq(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) img_spdif_in_get_multi_freq() argument
346 img_spdif_in_set_multi_freq(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) img_spdif_in_set_multi_freq() argument
436 img_spdif_in_get_trk(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) img_spdif_in_get_trk() argument
447 img_spdif_in_set_trk(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) img_spdif_in_set_trk() argument
494 img_spdif_in_get_lock_acquire(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) img_spdif_in_get_lock_acquire() argument
505 img_spdif_in_set_lock_acquire(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) img_spdif_in_set_lock_acquire() argument
533 img_spdif_in_get_lock_release(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) img_spdif_in_get_lock_release() argument
544 img_spdif_in_set_lock_release(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) img_spdif_in_set_lock_release() argument
[all...]
/linux/sound/soc/mediatek/mt8186/
H A Dmt8186-misc-control.c75 struct snd_ctl_elem_value *ucontrol) in mt8186_sgen_get() argument
81 ucontrol->value.integer.value[0] = afe_priv->sgen_mode; in mt8186_sgen_get()
87 struct snd_ctl_elem_value *ucontrol) in mt8186_sgen_set() argument
96 if (ucontrol->value.enumerated.item[0] >= e->items) in mt8186_sgen_set()
99 mode = ucontrol->value.integer.value[0]; in mt8186_sgen_set()
129 struct snd_ctl_elem_value *ucontrol) in mt8186_sgen_rate_get() argument
135 ucontrol->value.integer.value[0] = afe_priv->sgen_rate; in mt8186_sgen_rate_get()
141 struct snd_ctl_elem_value *ucontrol) in mt8186_sgen_rate_set() argument
149 if (ucontrol->value.enumerated.item[0] >= e->items) in mt8186_sgen_rate_set()
152 rate = ucontrol->value.integer.value[0]; in mt8186_sgen_rate_set()
[all …]
/linux/sound/soc/tegra/
H A Dtegra186_dspk.c29 struct snd_ctl_elem_value *ucontrol) in tegra186_dspk_get_fifo_th() argument
34 ucontrol->value.integer.value[0] = dspk->rx_fifo_th; in tegra186_dspk_get_fifo_th()
40 struct snd_ctl_elem_value *ucontrol) in tegra186_dspk_put_fifo_th() argument
44 int value = ucontrol->value.integer.value[0]; in tegra186_dspk_put_fifo_th()
55 struct snd_ctl_elem_value *ucontrol) in tegra186_dspk_get_osr_val() argument
60 ucontrol->value.enumerated.item[0] = dspk->osr_val; in tegra186_dspk_get_osr_val()
66 struct snd_ctl_elem_value *ucontrol) in tegra186_dspk_put_osr_val() argument
70 unsigned int value = ucontrol->value.enumerated.item[0]; in tegra186_dspk_put_osr_val()
81 struct snd_ctl_elem_value *ucontrol) in tegra186_dspk_get_pol_sel() argument
86 ucontrol in tegra186_dspk_get_pol_sel()
92 tegra186_dspk_put_pol_sel(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra186_dspk_put_pol_sel() argument
107 tegra186_dspk_get_ch_sel(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra186_dspk_get_ch_sel() argument
118 tegra186_dspk_put_ch_sel(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra186_dspk_put_ch_sel() argument
133 tegra186_dspk_get_mono_to_stereo(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra186_dspk_get_mono_to_stereo() argument
144 tegra186_dspk_put_mono_to_stereo(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra186_dspk_put_mono_to_stereo() argument
159 tegra186_dspk_get_stereo_to_mono(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra186_dspk_get_stereo_to_mono() argument
170 tegra186_dspk_put_stereo_to_mono(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra186_dspk_put_stereo_to_mono() argument
[all...]
H A Dtegra210_dmic.c160 struct snd_ctl_elem_value *ucontrol) in tegra210_dmic_get_boost_gain() argument
165 ucontrol->value.integer.value[0] = dmic->boost_gain; in tegra210_dmic_get_boost_gain()
171 struct snd_ctl_elem_value *ucontrol) in tegra210_dmic_put_boost_gain() argument
175 int value = ucontrol->value.integer.value[0]; in tegra210_dmic_put_boost_gain()
186 struct snd_ctl_elem_value *ucontrol) in tegra210_dmic_get_ch_select() argument
191 ucontrol->value.enumerated.item[0] = dmic->ch_select; in tegra210_dmic_get_ch_select()
197 struct snd_ctl_elem_value *ucontrol) in tegra210_dmic_put_ch_select() argument
201 unsigned int value = ucontrol->value.enumerated.item[0]; in tegra210_dmic_put_ch_select()
212 struct snd_ctl_elem_value *ucontrol) in tegra210_dmic_get_mono_to_stereo() argument
217 ucontrol in tegra210_dmic_get_mono_to_stereo()
223 tegra210_dmic_put_mono_to_stereo(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra210_dmic_put_mono_to_stereo() argument
238 tegra210_dmic_get_stereo_to_mono(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra210_dmic_get_stereo_to_mono() argument
249 tegra210_dmic_put_stereo_to_mono(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra210_dmic_put_stereo_to_mono() argument
264 tegra210_dmic_get_osr_val(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra210_dmic_get_osr_val() argument
275 tegra210_dmic_put_osr_val(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra210_dmic_put_osr_val() argument
290 tegra210_dmic_get_pol_sel(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra210_dmic_get_pol_sel() argument
301 tegra210_dmic_put_pol_sel(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra210_dmic_put_pol_sel() argument
[all...]
H A Dtegra210_mvc.c124 struct snd_ctl_elem_value *ucontrol) in tegra210_mvc_get_mute() argument
137 ucontrol->value.integer.value[0] = mute_mask; in tegra210_mvc_get_mute()
140 ucontrol->value.integer.value[0] = in tegra210_mvc_get_mute()
143 ucontrol->value.integer.value[0] = 0; in tegra210_mvc_get_mute()
150 struct snd_ctl_elem_value *ucontrol) in tegra210_mvc_get_master_mute() argument
163 ucontrol->value.integer.value[0] = in tegra210_mvc_get_master_mute()
167 ucontrol->value.integer.value[0] = in tegra210_mvc_get_master_mute()
170 ucontrol->value.integer.value[0] = 0; in tegra210_mvc_get_master_mute()
194 struct snd_ctl_elem_value *ucontrol, in tegra210_mvc_update_mute() argument
199 u32 mute_val = ucontrol in tegra210_mvc_update_mute()
247 tegra210_mvc_put_mute(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra210_mvc_put_mute() argument
253 tegra210_mvc_put_master_mute(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra210_mvc_put_master_mute() argument
259 tegra210_mvc_get_vol(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra210_mvc_get_vol() argument
281 tegra210_mvc_get_master_vol(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra210_mvc_get_master_vol() argument
287 tegra210_mvc_update_vol(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol,bool per_ch_enable) tegra210_mvc_update_vol() argument
343 tegra210_mvc_put_vol(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra210_mvc_put_vol() argument
349 tegra210_mvc_put_master_vol(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra210_mvc_put_master_vol() argument
395 tegra210_mvc_get_curve_type(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra210_mvc_get_curve_type() argument
406 tegra210_mvc_put_curve_type(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra210_mvc_put_curve_type() argument
[all...]
/linux/sound/isa/sb/
H A Dsb_mixer.c56 static 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 static 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 static 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 static 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 in snd_sbmixer_put_double()
177 snd_dt019x_input_sw_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) snd_dt019x_input_sw_get() argument
213 snd_dt019x_input_sw_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) snd_dt019x_input_sw_put() argument
265 snd_als4k_mono_capture_route_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) snd_als4k_mono_capture_route_get() argument
283 snd_als4k_mono_capture_route_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) snd_als4k_mono_capture_route_put() argument
318 snd_sb8mixer_get_mux(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) snd_sb8mixer_get_mux() argument
341 snd_sb8mixer_put_mux(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) snd_sb8mixer_put_mux() argument
384 snd_sb16mixer_get_input_sw(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) snd_sb16mixer_get_input_sw() argument
405 snd_sb16mixer_put_input_sw(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) snd_sb16mixer_put_input_sw() argument
[all...]
/linux/sound/ppc/
H A Ddaca.c83 struct snd_ctl_elem_value *ucontrol) in daca_get_deemphasis() argument
90 ucontrol->value.integer.value[0] = mix->deemphasis ? 1 : 0; in daca_get_deemphasis()
95 struct snd_ctl_elem_value *ucontrol) in daca_put_deemphasis() argument
104 change = mix->deemphasis != ucontrol->value.integer.value[0]; in daca_put_deemphasis()
106 mix->deemphasis = !!ucontrol->value.integer.value[0]; in daca_put_deemphasis()
124 struct snd_ctl_elem_value *ucontrol) in daca_get_volume() argument
131 ucontrol->value.integer.value[0] = mix->left_vol; in daca_get_volume()
132 ucontrol->value.integer.value[1] = mix->right_vol; in daca_get_volume()
137 struct snd_ctl_elem_value *ucontrol) in daca_put_volume() argument
147 vol[0] = ucontrol in daca_put_volume()
165 daca_get_amp(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) daca_get_amp() argument
177 daca_put_amp(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) daca_put_amp() argument
[all...]
/linux/sound/pcmcia/vx/
H A Dvxp_mixer.c30 static int vx_mic_level_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_mic_level_get() argument
34 ucontrol->value.integer.value[0] = chip->mic_level; in vx_mic_level_get()
38 static int vx_mic_level_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_mic_level_put() argument
42 unsigned int val = ucontrol->value.integer.value[0]; in vx_mic_level_put()
47 if (chip->mic_level != ucontrol->value.integer.value[0]) { in vx_mic_level_put()
48 vx_set_mic_level(_chip, ucontrol->value.integer.value[0]); in vx_mic_level_put()
49 chip->mic_level = ucontrol->value.integer.value[0]; in vx_mic_level_put()
75 static int vx_mic_boost_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_mic_boost_get() argument
79 ucontrol->value.integer.value[0] = chip->mic_level; in vx_mic_boost_get()
83 static int vx_mic_boost_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_mic_boost_put() argument
[all …]
/linux/sound/soc/codecs/
H A Dwm8958-dsp2.c454 struct snd_ctl_elem_value *ucontrol) in wm8958_put_mbc_enum() argument
459 int value = ucontrol->value.enumerated.item[0]; in wm8958_put_mbc_enum()
476 struct snd_ctl_elem_value *ucontrol) in wm8958_get_mbc_enum() argument
481 ucontrol->value.enumerated.item[0] = wm8994->mbc_cfg; in wm8958_get_mbc_enum()
497 struct snd_ctl_elem_value *ucontrol) in wm8958_mbc_get() argument
503 ucontrol->value.integer.value[0] = wm8994->mbc_ena[mbc]; in wm8958_mbc_get()
509 struct snd_ctl_elem_value *ucontrol) in wm8958_mbc_put() argument
515 if (wm8994->mbc_ena[mbc] == ucontrol->value.integer.value[0]) in wm8958_mbc_put()
518 if (ucontrol->value.integer.value[0] > 1) in wm8958_mbc_put()
529 wm8994->mbc_ena[mbc] = ucontrol->value.integer.value[0]; in wm8958_mbc_put()
[all …]
H A Drt715-sdca.c132 struct snd_ctl_elem_value *ucontrol) in rt715_sdca_set_amp_gain_put() argument
142 if (ucontrol->value.integer.value[i] != rt715->kctl_2ch_orig[i]) { in rt715_sdca_set_amp_gain_put()
149 rt715->kctl_2ch_orig[i] = ucontrol->value.integer.value[i]; in rt715_sdca_set_amp_gain_put()
151 rt715_sdca_vol_gain(ucontrol->value.integer.value[i], mc->max, in rt715_sdca_set_amp_gain_put()
165 struct snd_ctl_elem_value *ucontrol) in rt715_sdca_set_amp_gain_4ch_put() argument
177 if (ucontrol->value.integer.value[i] != rt715->kctl_4ch_orig[i]) { in rt715_sdca_set_amp_gain_4ch_put()
184 rt715->kctl_4ch_orig[i] = ucontrol->value.integer.value[i]; in rt715_sdca_set_amp_gain_4ch_put()
186 rt715_sdca_vol_gain(ucontrol->value.integer.value[i], p->max, in rt715_sdca_set_amp_gain_4ch_put()
201 struct snd_ctl_elem_value *ucontrol) in rt715_sdca_set_amp_gain_8ch_put() argument
213 if (ucontrol->value.integer.value[i] != rt715->kctl_8ch_orig[i]) { in rt715_sdca_set_amp_gain_8ch_put()
[all …]
/linux/sound/drivers/pcsp/
H A Dpcsp_mixer.c25 struct snd_ctl_elem_value *ucontrol) in pcsp_enable_get() argument
28 ucontrol->value.integer.value[0] = chip->enable; in pcsp_enable_get()
33 struct snd_ctl_elem_value *ucontrol) in pcsp_enable_put() argument
37 int enab = ucontrol->value.integer.value[0]; in pcsp_enable_put()
60 struct snd_ctl_elem_value *ucontrol) in pcsp_treble_get() argument
63 ucontrol->value.enumerated.item[0] = chip->treble; in pcsp_treble_get()
68 struct snd_ctl_elem_value *ucontrol) in pcsp_treble_put() argument
72 int treble = ucontrol->value.enumerated.item[0]; in pcsp_treble_put()
94 struct snd_ctl_elem_value *ucontrol) in pcsp_pcspkr_get() argument
97 ucontrol in pcsp_pcspkr_get()
102 pcsp_pcspkr_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) pcsp_pcspkr_put() argument
[all...]
/linux/sound/soc/ti/
H A Dn810.c121 struct snd_ctl_elem_value *ucontrol) in n810_get_spk() argument
123 ucontrol->value.enumerated.item[0] = n810_spk_func; in n810_get_spk()
129 struct snd_ctl_elem_value *ucontrol) in n810_set_spk() argument
133 if (n810_spk_func == ucontrol->value.enumerated.item[0]) in n810_set_spk()
136 n810_spk_func = ucontrol->value.enumerated.item[0]; in n810_set_spk()
143 struct snd_ctl_elem_value *ucontrol) in n810_get_jack() argument
145 ucontrol->value.enumerated.item[0] = n810_jack_func; in n810_get_jack()
151 struct snd_ctl_elem_value *ucontrol) in n810_set_jack() argument
155 if (n810_jack_func == ucontrol->value.enumerated.item[0]) in n810_set_jack()
158 n810_jack_func = ucontrol->value.enumerated.item[0]; in n810_set_jack()
[all …]

12345678910>>...16