/Linux-v5.15/sound/aoa/codecs/ |
D | tas.c | 234 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 …]
|
D | onyx.c | 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() [all …]
|
/Linux-v5.15/sound/drivers/vx/ |
D | vx_mixer.c | 410 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-v5.15/sound/pci/ca0106/ |
D | ca0106_mixer.c | 147 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-v5.15/sound/soc/ |
D | soc-ops.c | 60 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() 237 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_volsw() argument 261 ucontrol->value.integer.value[0] = val - min; in snd_soc_get_volsw() 263 ucontrol->value.integer.value[0] = in snd_soc_get_volsw() 264 max - ucontrol->value.integer.value[0]; in snd_soc_get_volsw() 276 ucontrol->value.integer.value[1] = val - min; in snd_soc_get_volsw() [all …]
|
/Linux-v5.15/sound/usb/6fire/ |
D | control.c | 186 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-v5.15/sound/pci/ice1712/ |
D | wtm.c | 114 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 …]
|
D | pontis.c | 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() [all …]
|
D | aureon.c | 198 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 …]
|
D | prodigy192.c | 94 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 …]
|
D | phase.c | 286 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() 298 struct snd_ctl_elem_value *ucontrol) in wm_pcm_mute_put() argument 306 nval = (oval & ~0x10) | (ucontrol->value.integer.value[0] ? 0 : 0x10); in wm_pcm_mute_put() 329 struct snd_ctl_elem_value *ucontrol) in wm_master_vol_get() argument 335 ucontrol->value.integer.value[i] = spec->master[i] & in wm_master_vol_get() 341 struct snd_ctl_elem_value *ucontrol) in wm_master_vol_put() argument 349 unsigned int vol = ucontrol->value.integer.value[ch]; in wm_master_vol_put() 476 struct snd_ctl_elem_value *ucontrol) in wm_vol_get() argument 485 ucontrol->value.integer.value[i] = in wm_vol_get() [all …]
|
D | maya44.c | 171 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() 186 struct snd_ctl_elem_value *ucontrol) in maya_vol_put() argument 190 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; in maya_vol_put() 198 val = ucontrol->value.integer.value[ch]; in maya_vol_put() 232 struct snd_ctl_elem_value *ucontrol) in maya_sw_get() argument 236 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; in maya_sw_get() 239 ucontrol->value.integer.value[0] = (wm->switch_bits >> idx) & 1; in maya_sw_get() [all …]
|
/Linux-v5.15/sound/pci/emu10k1/ |
D | emumixer.c | 40 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_spdif_get() argument 43 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_spdif_get() 50 ucontrol->value.iec958.status[0] = (emu->spdif_bits[idx] >> 0) & 0xff; in snd_emu10k1_spdif_get() 51 ucontrol->value.iec958.status[1] = (emu->spdif_bits[idx] >> 8) & 0xff; in snd_emu10k1_spdif_get() 52 ucontrol->value.iec958.status[2] = (emu->spdif_bits[idx] >> 16) & 0xff; in snd_emu10k1_spdif_get() 53 ucontrol->value.iec958.status[3] = (emu->spdif_bits[idx] >> 24) & 0xff; in snd_emu10k1_spdif_get() 59 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_spdif_get_mask() argument 61 ucontrol->value.iec958.status[0] = 0xff; in snd_emu10k1_spdif_get_mask() 62 ucontrol->value.iec958.status[1] = 0xff; in snd_emu10k1_spdif_get_mask() 63 ucontrol->value.iec958.status[2] = 0xff; in snd_emu10k1_spdif_get_mask() [all …]
|
/Linux-v5.15/sound/pci/pcxhr/ |
D | pcxhr_mixer.c | 110 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-v5.15/sound/pci/mixart/ |
D | mixart_mixer.c | 344 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-v5.15/sound/soc/img/ |
D | img-spdif-in.c | 280 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->value.iec958.status[2] = (reg >> 16) & 0xff; in img_spdif_in_get_status() [all …]
|
/Linux-v5.15/sound/pcmcia/vx/ |
D | vxp_mixer.c | 30 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-v5.15/sound/ppc/ |
D | daca.c | 83 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 …]
|
/Linux-v5.15/sound/isa/sb/ |
D | sb_mixer.c | 56 …atic 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 …atic 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 …atic 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 …atic 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->value.integer.value[1] & mask) << right_shift; in snd_sbmixer_put_double() [all …]
|
/Linux-v5.15/sound/drivers/pcsp/ |
D | pcsp_mixer.c | 25 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-v5.15/sound/soc/ti/ |
D | n810.c | 121 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 …]
|
/Linux-v5.15/sound/soc/codecs/ |
D | rt715-sdca.c | 131 struct snd_ctl_elem_value *ucontrol) in rt715_sdca_set_amp_gain_put() argument 141 if (ucontrol->value.integer.value[i] != rt715->kctl_2ch_orig[i]) { in rt715_sdca_set_amp_gain_put() 148 rt715->kctl_2ch_orig[i] = ucontrol->value.integer.value[i]; in rt715_sdca_set_amp_gain_put() 150 rt715_sdca_vol_gain(ucontrol->value.integer.value[i], mc->max, in rt715_sdca_set_amp_gain_put() 164 struct snd_ctl_elem_value *ucontrol) in rt715_sdca_set_amp_gain_4ch_put() argument 176 if (ucontrol->value.integer.value[i] != rt715->kctl_4ch_orig[i]) { in rt715_sdca_set_amp_gain_4ch_put() 183 rt715->kctl_4ch_orig[i] = ucontrol->value.integer.value[i]; in rt715_sdca_set_amp_gain_4ch_put() 185 rt715_sdca_vol_gain(ucontrol->value.integer.value[i], p->max, in rt715_sdca_set_amp_gain_4ch_put() 200 struct snd_ctl_elem_value *ucontrol) in rt715_sdca_set_amp_gain_8ch_put() argument 212 if (ucontrol->value.integer.value[i] != rt715->kctl_8ch_orig[i]) { in rt715_sdca_set_amp_gain_8ch_put() [all …]
|
D | wm8958-dsp2.c | 454 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 …]
|
/Linux-v5.15/sound/soc/atmel/ |
D | tse850-pcm5142.c | 61 struct snd_ctl_elem_value *ucontrol) in tse850_get_mux1() argument 67 ucontrol->value.enumerated.item[0] = tse850->loop1_cache; in tse850_get_mux1() 73 struct snd_ctl_elem_value *ucontrol) in tse850_put_mux1() argument 79 unsigned int val = ucontrol->value.enumerated.item[0]; in tse850_put_mux1() 87 return snd_soc_dapm_put_enum_double(kctrl, ucontrol); in tse850_put_mux1() 91 struct snd_ctl_elem_value *ucontrol) in tse850_get_mux2() argument 97 ucontrol->value.enumerated.item[0] = tse850->loop2_cache; in tse850_get_mux2() 103 struct snd_ctl_elem_value *ucontrol) in tse850_put_mux2() argument 109 unsigned int val = ucontrol->value.enumerated.item[0]; in tse850_put_mux2() 117 return snd_soc_dapm_put_enum_double(kctrl, ucontrol); in tse850_put_mux2() [all …]
|
/Linux-v5.15/sound/i2c/ |
D | tea6330t.c | 82 struct snd_ctl_elem_value *ucontrol) in snd_tea6330t_get_master_volume() argument 87 ucontrol->value.integer.value[0] = tea->mleft - 0x14; in snd_tea6330t_get_master_volume() 88 ucontrol->value.integer.value[1] = tea->mright - 0x14; in snd_tea6330t_get_master_volume() 94 struct snd_ctl_elem_value *ucontrol) in snd_tea6330t_put_master_volume() argument 101 val1 = (ucontrol->value.integer.value[0] % 44) + 0x14; in snd_tea6330t_put_master_volume() 102 val2 = (ucontrol->value.integer.value[1] % 44) + 0x14; in snd_tea6330t_put_master_volume() 134 struct snd_ctl_elem_value *ucontrol) in snd_tea6330t_get_master_switch() argument 139 ucontrol->value.integer.value[0] = tea->regs[TEA6330T_SADDR_VOLUME_LEFT] == 0 ? 0 : 1; in snd_tea6330t_get_master_switch() 140 ucontrol->value.integer.value[1] = tea->regs[TEA6330T_SADDR_VOLUME_RIGHT] == 0 ? 0 : 1; in snd_tea6330t_get_master_switch() 146 struct snd_ctl_elem_value *ucontrol) in snd_tea6330t_put_master_switch() argument [all …]
|