Home
last modified time | relevance | path

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

1234567891011

/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()
245 struct snd_ctl_elem_value *ucontrol) in tas_snd_vol_put() argument
249 if (ucontrol->value.integer.value[0] < 0 || in tas_snd_vol_put()
250 ucontrol->value.integer.value[0] > 177) in tas_snd_vol_put()
252 if (ucontrol->value.integer.value[1] < 0 || in tas_snd_vol_put()
253 ucontrol->value.integer.value[1] > 177) in tas_snd_vol_put()
257 if (tas->cached_volume_l == ucontrol->value.integer.value[0] in tas_snd_vol_put()
258 && 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
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()
[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/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()
140 struct snd_ctl_elem_value *ucontrol) in stac9460_dac_mute_put() argument
150 new = (~ucontrol->value.integer.value[0] << 7 & 0x80) | in stac9460_dac_mute_put()
158 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in stac9460_dac_mute_put()
164 new = (~ucontrol->value.integer.value[0] << 7 & 0x80) | in stac9460_dac_mute_put()
191 struct snd_ctl_elem_value *ucontrol) in stac9460_dac_vol_get() argument
201 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in stac9460_dac_vol_get()
208 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()
124 static int wm_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_dac_vol_put() argument
132 nval = ucontrol->value.integer.value[i]; in wm_dac_vol_put()
162 static int wm_adc_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_vol_get() argument
172 ucontrol->value.integer.value[i] = val; in wm_adc_vol_get()
177 static int wm_adc_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_vol_put() argument
185 nvol = ucontrol->value.integer.value[i]; in wm_adc_vol_put()
202 static int wm_adc_mux_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_mux_get() argument
208 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()
371 static int aureon_ac97_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_ac97_vol_put() argument
380 nvol = (0x1F - ucontrol->value.integer.value[0]) & 0x001F; in aureon_ac97_vol_put()
382 nvol |= ((0x1F - ucontrol->value.integer.value[1]) << 8) & 0x1F00; in aureon_ac97_vol_put()
[all …]
H A Dmaya44.c171 struct snd_ctl_elem_value *ucontrol) in maya_vol_get() argument
175 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; in maya_vol_get()
179 ucontrol->value.integer.value[0] = wm->volumes[idx][0]; in maya_vol_get()
180 ucontrol->value.integer.value[1] = wm->volumes[idx][1]; in maya_vol_get()
185 struct snd_ctl_elem_value *ucontrol) in maya_vol_put() argument
189 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; in maya_vol_put()
197 val = ucontrol->value.integer.value[ch]; in maya_vol_put()
230 struct snd_ctl_elem_value *ucontrol) in maya_sw_get() argument
234 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; in maya_sw_get()
237 ucontrol->value.integer.value[0] = (wm->switch_bits >> idx) & 1; in maya_sw_get()
[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 return stac9460_dac_mute(ice, idx, ucontrol->value.integer.value[0]); in stac9460_dac_mute_put()
140 static int stac9460_dac_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in stac9460_dac_vol_get() argument
149 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME; in stac9460_dac_vol_get()
151 ucontrol->value.integer.value[0] = 0x7f - vol; in stac9460_dac_vol_get()
156 static int stac9460_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in stac9460_dac_vol_put() argument
[all …]
H A Dphase.c286 struct snd_ctl_elem_value *ucontrol) in wm_pcm_mute_get() argument
291 ucontrol->value.integer.value[0] = (wm_get(ice, WM_MUTE) & 0x10) ? in wm_pcm_mute_get()
297 struct snd_ctl_elem_value *ucontrol) in wm_pcm_mute_put() argument
305 nval = (oval & ~0x10) | (ucontrol->value.integer.value[0] ? 0 : 0x10); in wm_pcm_mute_put()
328 struct snd_ctl_elem_value *ucontrol) in wm_master_vol_get() argument
334 ucontrol->value.integer.value[i] = spec->master[i] & in wm_master_vol_get()
340 struct snd_ctl_elem_value *ucontrol) in wm_master_vol_put() argument
348 unsigned int vol = ucontrol->value.integer.value[ch]; in wm_master_vol_put()
475 struct snd_ctl_elem_value *ucontrol) in wm_vol_get() argument
484 ucontrol->value.integer.value[i] = in wm_vol_get()
[all …]
H A Dprodigy_hifi.c252 struct snd_ctl_elem_value *ucontrol) in ak4396_dac_vol_get() argument
259 ucontrol->value.integer.value[i] = spec->vol[i]; in ak4396_dac_vol_get()
264 static int ak4396_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in ak4396_dac_vol_put() argument
273 if (ucontrol->value.integer.value[i] != spec->vol[i]) { in ak4396_dac_vol_put()
274 spec->vol[i] = ucontrol->value.integer.value[i]; in ak4396_dac_vol_put()
360 struct snd_ctl_elem_value *ucontrol) in wm_dac_vol_get() argument
367 ucontrol->value.integer.value[i] = in wm_dac_vol_get()
372 static int wm_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_dac_vol_put() argument
380 if (ucontrol->value.integer.value[i] != spec->vol[2 + i]) { in wm_dac_vol_put()
383 spec->vol[2 + i] |= ucontrol->value.integer.value[i]; in wm_dac_vol_put()
[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 in mt8186_sgen_rate_set()
173 mt8186_sgen_amplitude_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) mt8186_sgen_amplitude_get() argument
184 mt8186_sgen_amplitude_set(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) mt8186_sgen_amplitude_set() argument
[all...]
/linux/sound/soc/
H A Dsoc-ops.c59 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_enum_double() argument
69 ucontrol->value.enumerated.item[0] = item; in snd_soc_get_enum_double()
73 ucontrol->value.enumerated.item[1] = item; in snd_soc_get_enum_double()
90 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_enum_double() argument
94 unsigned int *item = ucontrol->value.enumerated.item; in snd_soc_put_enum_double()
234 struct snd_ctl_elem_value *ucontrol, in soc_put_volsw() argument
252 ret = soc_mixer_valid_ctl(mc, ucontrol->value.integer.value[0], max); in soc_put_volsw()
256 val1 = ctl_to_reg(mc, ucontrol->value.integer.value[0], in soc_put_volsw()
260 ret = soc_mixer_valid_ctl(mc, ucontrol->value.integer.value[1], max); in soc_put_volsw()
265 val1 |= ctl_to_reg(mc, ucontrol->value.integer.value[1], mask, mc->rshift, max); in soc_put_volsw()
[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->value.integer.value[0]; in daca_put_volume()
[all …]
H A Dawacs.c134 struct snd_ctl_elem_value *ucontrol) in snd_pmac_awacs_get_volume() argument
149 ucontrol->value.integer.value[0] = vol[0]; in snd_pmac_awacs_get_volume()
150 ucontrol->value.integer.value[1] = vol[1]; in snd_pmac_awacs_get_volume()
155 struct snd_ctl_elem_value *ucontrol) in snd_pmac_awacs_put_volume() argument
164 vol[0] = ucontrol->value.integer.value[0]; in snd_pmac_awacs_put_volume()
165 vol[1] = ucontrol->value.integer.value[1]; in snd_pmac_awacs_put_volume()
196 struct snd_ctl_elem_value *ucontrol) in snd_pmac_awacs_get_switch() argument
208 ucontrol->value.integer.value[0] = val; in snd_pmac_awacs_get_switch()
213 struct snd_ctl_elem_value *ucontrol) in snd_pmac_awacs_put_switch() argument
224 if (ucontrol->value.integer.value[0] != invert) in snd_pmac_awacs_put_switch()
[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 in wm8958_mbc_put()
544 wm8958_put_vss_enum(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) wm8958_put_vss_enum() argument
566 wm8958_get_vss_enum(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) wm8958_get_vss_enum() argument
577 wm8958_put_vss_hpf_enum(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) wm8958_put_vss_hpf_enum() argument
599 wm8958_get_vss_hpf_enum(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) wm8958_get_vss_hpf_enum() argument
620 wm8958_vss_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) wm8958_vss_get() argument
632 wm8958_vss_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) wm8958_vss_put() argument
681 wm8958_hpf_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) wm8958_hpf_get() argument
696 wm8958_hpf_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) wm8958_hpf_put() argument
744 wm8958_put_enh_eq_enum(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) wm8958_put_enh_eq_enum() argument
766 wm8958_get_enh_eq_enum(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) wm8958_get_enh_eq_enum() argument
787 wm8958_enh_eq_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) wm8958_enh_eq_get() argument
799 wm8958_enh_eq_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) wm8958_enh_eq_put() argument
[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 in rt715_sdca_set_amp_gain_8ch_put()
237 rt715_sdca_set_amp_gain_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) rt715_sdca_set_amp_gain_get() argument
260 rt715_sdca_set_amp_gain_4ch_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) rt715_sdca_set_amp_gain_4ch_get() argument
285 rt715_sdca_set_amp_gain_8ch_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) rt715_sdca_set_amp_gain_8ch_get() argument
323 rt715_sdca_get_volsw(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) rt715_sdca_get_volsw() argument
349 rt715_sdca_put_volsw(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) rt715_sdca_put_volsw() argument
503 rt715_sdca_mux_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) rt715_sdca_mux_get() argument
539 rt715_sdca_mux_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) rt715_sdca_mux_put() argument
[all...]
H A Dmax9759.c43 struct snd_ctl_elem_value *ucontrol) in speaker_gain_control_get() argument
48 ucontrol->value.integer.value[0] = priv->gain; in speaker_gain_control_get()
62 struct snd_ctl_elem_value *ucontrol) in speaker_gain_control_put() argument
67 if (ucontrol->value.integer.value[0] < 0 || in speaker_gain_control_put()
68 ucontrol->value.integer.value[0] > 3) in speaker_gain_control_put()
71 priv->gain = ucontrol->value.integer.value[0]; in speaker_gain_control_put()
84 struct snd_ctl_elem_value *ucontrol) in speaker_mute_get() argument
89 ucontrol->value.integer.value[0] = !priv->is_mute; in speaker_mute_get()
95 struct snd_ctl_elem_value *ucontrol) in speaker_mute_put() argument
100 priv->is_mute = !ucontrol in speaker_mute_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->value.integer.value[0] = chip->pcspkr; in pcsp_pcspkr_get()
[all …]
/linux/sound/i2c/
H A Dtea6330t.c79 struct snd_ctl_elem_value *ucontrol) in snd_tea6330t_get_master_volume() argument
84 ucontrol->value.integer.value[0] = tea->mleft - 0x14; in snd_tea6330t_get_master_volume()
85 ucontrol->value.integer.value[1] = tea->mright - 0x14; in snd_tea6330t_get_master_volume()
91 struct snd_ctl_elem_value *ucontrol) in snd_tea6330t_put_master_volume() argument
98 val1 = (ucontrol->value.integer.value[0] % 44) + 0x14; in snd_tea6330t_put_master_volume()
99 val2 = (ucontrol->value.integer.value[1] % 44) + 0x14; in snd_tea6330t_put_master_volume()
131 struct snd_ctl_elem_value *ucontrol) in snd_tea6330t_get_master_switch() argument
136 ucontrol->value.integer.value[0] = tea->regs[TEA6330T_SADDR_VOLUME_LEFT] == 0 ? 0 : 1; in snd_tea6330t_get_master_switch()
137 ucontrol->value.integer.value[1] = tea->regs[TEA6330T_SADDR_VOLUME_RIGHT] == 0 ? 0 : 1; in snd_tea6330t_get_master_switch()
143 struct snd_ctl_elem_value *ucontrol) in snd_tea6330t_put_master_switch() argument
[all …]
/linux/sound/usb/
H A Dmixer_us16x08.c180 struct snd_ctl_elem_value *ucontrol) in snd_us16x08_route_get() argument
183 int index = ucontrol->id.index; in snd_us16x08_route_get()
186 ucontrol->value.enumerated.item[0] = elem->cache_val[index]; in snd_us16x08_route_get()
192 struct snd_ctl_elem_value *ucontrol) in snd_us16x08_route_put() argument
196 int index = ucontrol->id.index; in snd_us16x08_route_put()
201 val = ucontrol->value.enumerated.item[0]; in snd_us16x08_route_put()
249 struct snd_ctl_elem_value *ucontrol) in snd_us16x08_master_get() argument
252 int index = ucontrol->id.index; in snd_us16x08_master_get()
254 ucontrol->value.integer.value[0] = elem->cache_val[index]; in snd_us16x08_master_get()
260 struct snd_ctl_elem_value *ucontrol) in snd_us16x08_master_put() argument
[all …]
/linux/sound/soc/sof/
H A Dcontrol.c19 struct snd_ctl_elem_value *ucontrol) in snd_sof_volume_get() argument
28 return tplg_ops->control->volume_get(scontrol, ucontrol); in snd_sof_volume_get()
34 struct snd_ctl_elem_value *ucontrol) in snd_sof_volume_put() argument
43 return tplg_ops->control->volume_put(scontrol, ucontrol); in snd_sof_volume_put()
71 struct snd_ctl_elem_value *ucontrol) in snd_sof_switch_get() argument
80 return tplg_ops->control->switch_get(scontrol, ucontrol); in snd_sof_switch_get()
86 struct snd_ctl_elem_value *ucontrol) in snd_sof_switch_put() argument
95 return tplg_ops->control->switch_put(scontrol, ucontrol); in snd_sof_switch_put()
101 struct snd_ctl_elem_value *ucontrol) in snd_sof_enum_get() argument
110 return tplg_ops->control->enum_get(scontrol, ucontrol); in snd_sof_enum_get()
116 snd_sof_enum_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) snd_sof_enum_put() argument
131 snd_sof_bytes_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) snd_sof_bytes_get() argument
146 snd_sof_bytes_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) snd_sof_bytes_put() argument
[all...]
/linux/sound/soc/codecs/aw88395/
H A Daw88395.c105 struct snd_ctl_elem_value *ucontrol) in aw88395_get_fade_in_time() argument
111 ucontrol->value.integer.value[0] = aw_dev->fade_in_time; in aw88395_get_fade_in_time()
117 struct snd_ctl_elem_value *ucontrol) in aw88395_set_fade_in_time() argument
126 time = ucontrol->value.integer.value[0]; in aw88395_set_fade_in_time()
140 struct snd_ctl_elem_value *ucontrol) in aw88395_get_fade_out_time() argument
146 ucontrol->value.integer.value[0] = aw_dev->fade_out_time; in aw88395_get_fade_out_time()
152 struct snd_ctl_elem_value *ucontrol) in aw88395_set_fade_out_time() argument
161 time = ucontrol->value.integer.value[0]; in aw88395_set_fade_out_time()
209 struct snd_ctl_elem_value *ucontrol) in aw88395_profile_get() argument
214 ucontrol in aw88395_profile_get()
220 aw88395_profile_set(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) aw88395_profile_set() argument
246 aw88395_volume_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) aw88395_volume_get() argument
258 aw88395_volume_set(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) aw88395_volume_set() argument
282 aw88395_get_fade_step(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) aw88395_get_fade_step() argument
293 aw88395_set_fade_step(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) aw88395_set_fade_step() argument
314 aw88395_re_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) aw88395_re_get() argument
326 aw88395_re_set(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) aw88395_re_set() argument
[all...]
/linux/drivers/staging/vc04_services/bcm2835-audio/
H A Dbcm2835-ctl.c53 struct snd_ctl_elem_value *ucontrol) in snd_bcm2835_ctl_get() argument
60 ucontrol->value.integer.value[0] = chip->volume; in snd_bcm2835_ctl_get()
62 ucontrol->value.integer.value[0] = chip->mute; in snd_bcm2835_ctl_get()
64 ucontrol->value.integer.value[0] = chip->dest; in snd_bcm2835_ctl_get()
71 struct snd_ctl_elem_value *ucontrol) in snd_bcm2835_ctl_put() argument
87 val = ucontrol->value.integer.value[0]; in snd_bcm2835_ctl_put()
137 struct snd_ctl_elem_value *ucontrol) in snd_bcm2835_spdif_default_get() argument
145 ucontrol->value.iec958.status[i] = in snd_bcm2835_spdif_default_get()
153 struct snd_ctl_elem_value *ucontrol) in snd_bcm2835_spdif_default_put() argument
162 val |= (unsigned int)ucontrol->value.iec958.status[i] << (i * 8); in snd_bcm2835_spdif_default_put()
[all …]
/linux/sound/pci/echoaudio/
H A Dechoaudio.c989 struct snd_ctl_elem_value *ucontrol) in snd_echo_output_gain_get() argument
996 ucontrol->value.integer.value[c] = chip->output_gain[c]; in snd_echo_output_gain_get()
1001 struct snd_ctl_elem_value *ucontrol) in snd_echo_output_gain_put() argument
1010 gain = ucontrol->value.integer.value[c]; in snd_echo_output_gain_put()
1069 struct snd_ctl_elem_value *ucontrol) in snd_echo_input_gain_get() argument
1076 ucontrol->value.integer.value[c] = chip->input_gain[c]; in snd_echo_input_gain_get()
1081 struct snd_ctl_elem_value *ucontrol) in snd_echo_input_gain_put() argument
1090 gain = ucontrol->value.integer.value[c]; in snd_echo_input_gain_put()
1137 struct snd_ctl_elem_value *ucontrol) in snd_echo_output_nominal_get() argument
1144 ucontrol->value.integer.value[c] = chip->nominal_level[c]; in snd_echo_output_nominal_get()
[all …]

1234567891011