| /Linux-v4.19/sound/aoa/codecs/ |
| D | tas.c | 236 struct snd_ctl_elem_value *ucontrol) in tas_snd_vol_get() argument 241 ucontrol->value.integer.value[0] = tas->cached_volume_l; in tas_snd_vol_get() 242 ucontrol->value.integer.value[1] = tas->cached_volume_r; in tas_snd_vol_get() 248 struct snd_ctl_elem_value *ucontrol) in tas_snd_vol_put() argument 252 if (ucontrol->value.integer.value[0] < 0 || in tas_snd_vol_put() 253 ucontrol->value.integer.value[0] > 177) in tas_snd_vol_put() 255 if (ucontrol->value.integer.value[1] < 0 || in tas_snd_vol_put() 256 ucontrol->value.integer.value[1] > 177) in tas_snd_vol_put() 260 if (tas->cached_volume_l == ucontrol->value.integer.value[0] in tas_snd_vol_put() 261 && tas->cached_volume_r == ucontrol->value.integer.value[1]) { in tas_snd_vol_put() [all …]
|
| D | onyx.c | 120 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-v4.19/sound/drivers/vx/ |
| D | vx_mixer.c | 423 static int vx_output_level_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_output_level_get() argument 428 ucontrol->value.integer.value[0] = chip->output_level[codec][0]; in vx_output_level_get() 429 ucontrol->value.integer.value[1] = chip->output_level[codec][1]; in vx_output_level_get() 434 static int vx_output_level_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_output_level_put() argument 441 val[0] = ucontrol->value.integer.value[0]; in vx_output_level_put() 442 val[1] = ucontrol->value.integer.value[1]; in vx_output_level_put() 488 static int vx_audio_src_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_audio_src_get() argument 491 ucontrol->value.enumerated.item[0] = chip->audio_source_target; in vx_audio_src_get() 495 static int vx_audio_src_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_audio_src_put() argument 500 if (ucontrol->value.enumerated.item[0] > 2) in vx_audio_src_put() [all …]
|
| /Linux-v4.19/sound/pci/ca0106/ |
| D | ca0106_mixer.c | 161 struct snd_ctl_elem_value *ucontrol) in snd_ca0106_shared_spdif_get() argument 165 ucontrol->value.integer.value[0] = emu->spdif_enable; in snd_ca0106_shared_spdif_get() 170 struct snd_ctl_elem_value *ucontrol) in snd_ca0106_shared_spdif_put() argument 176 val = !!ucontrol->value.integer.value[0]; in snd_ca0106_shared_spdif_put() 196 struct snd_ctl_elem_value *ucontrol) in snd_ca0106_capture_source_get() argument 200 ucontrol->value.enumerated.item[0] = emu->capture_source; in snd_ca0106_capture_source_get() 205 struct snd_ctl_elem_value *ucontrol) in snd_ca0106_capture_source_put() argument 211 val = ucontrol->value.enumerated.item[0] ; in snd_ca0106_capture_source_put() 233 struct snd_ctl_elem_value *ucontrol) in snd_ca0106_i2c_capture_source_get() argument 237 ucontrol->value.enumerated.item[0] = emu->i2c_capture_source; in snd_ca0106_i2c_capture_source_get() [all …]
|
| /Linux-v4.19/sound/soc/ |
| D | soc-ops.c | 60 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_enum_double() argument 73 ucontrol->value.enumerated.item[0] = item; in snd_soc_get_enum_double() 77 ucontrol->value.enumerated.item[1] = item; in snd_soc_get_enum_double() 94 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_enum_double() argument 98 unsigned int *item = ucontrol->value.enumerated.item; in snd_soc_put_enum_double() 243 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_volsw() argument 267 ucontrol->value.integer.value[0] = val - min; in snd_soc_get_volsw() 269 ucontrol->value.integer.value[0] = in snd_soc_get_volsw() 270 max - ucontrol->value.integer.value[0]; in snd_soc_get_volsw() 282 ucontrol->value.integer.value[1] = val - min; in snd_soc_get_volsw() [all …]
|
| /Linux-v4.19/sound/usb/6fire/ |
| D | control.c | 190 struct snd_ctl_elem_value *ucontrol) in usb6fire_control_output_vol_put() argument 202 if (rt->output_vol[ch] != ucontrol->value.integer.value[0]) { in usb6fire_control_output_vol_put() 203 rt->output_vol[ch] = ucontrol->value.integer.value[0]; in usb6fire_control_output_vol_put() 207 if (rt->output_vol[ch + 1] != ucontrol->value.integer.value[1]) { in usb6fire_control_output_vol_put() 208 rt->output_vol[ch + 1] = ucontrol->value.integer.value[1]; in usb6fire_control_output_vol_put() 220 struct snd_ctl_elem_value *ucontrol) in usb6fire_control_output_vol_get() argument 231 ucontrol->value.integer.value[0] = rt->output_vol[ch]; in usb6fire_control_output_vol_get() 232 ucontrol->value.integer.value[1] = rt->output_vol[ch + 1]; in usb6fire_control_output_vol_get() 237 struct snd_ctl_elem_value *ucontrol) in usb6fire_control_output_mute_put() argument 251 if (ucontrol->value.integer.value[0]) in usb6fire_control_output_mute_put() [all …]
|
| /Linux-v4.19/sound/pci/ice1712/ |
| D | wtm.c | 128 struct snd_ctl_elem_value *ucontrol) in stac9460_dac_mute_get() argument 141 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in stac9460_dac_mute_get() 148 ucontrol->value.integer.value[0] = (~val >> 7) & 0x1; in stac9460_dac_mute_get() 155 struct snd_ctl_elem_value *ucontrol) in stac9460_dac_mute_put() argument 165 new = (~ucontrol->value.integer.value[0] << 7 & 0x80) | in stac9460_dac_mute_put() 173 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in stac9460_dac_mute_put() 179 new = (~ucontrol->value.integer.value[0] << 7 & 0x80) | in stac9460_dac_mute_put() 206 struct snd_ctl_elem_value *ucontrol) in stac9460_dac_vol_get() argument 216 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in stac9460_dac_vol_get() 223 ucontrol->value.integer.value[0] = 0x7f - vol; in stac9460_dac_vol_get() [all …]
|
| D | aureon.c | 212 struct snd_ctl_elem_value *ucontrol) in aureon_universe_inmux_get() argument 216 ucontrol->value.enumerated.item[0] = spec->pca9554_out; in aureon_universe_inmux_get() 221 struct snd_ctl_elem_value *ucontrol) in aureon_universe_inmux_put() argument 228 nval = ucontrol->value.enumerated.item[0]; in aureon_universe_inmux_put() 370 static int aureon_ac97_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_ac97_vol_get() argument 378 ucontrol->value.integer.value[0] = 0x1F - (vol & 0x1F); in aureon_ac97_vol_get() 380 ucontrol->value.integer.value[1] = 0x1F - ((vol >> 8) & 0x1F); in aureon_ac97_vol_get() 386 static int aureon_ac97_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_ac97_vol_put() argument 395 nvol = (0x1F - ucontrol->value.integer.value[0]) & 0x001F; in aureon_ac97_vol_put() 397 nvol |= ((0x1F - ucontrol->value.integer.value[1]) << 8) & 0x1F00; in aureon_ac97_vol_put() [all …]
|
| D | pontis.c | 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() [all …]
|
| D | prodigy192.c | 108 static int stac9460_dac_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in stac9460_dac_mute_get() argument 117 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME; in stac9460_dac_mute_get() 119 ucontrol->value.integer.value[0] = (~val >> 7) & 0x1; in stac9460_dac_mute_get() 123 static int stac9460_dac_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in stac9460_dac_mute_put() argument 132 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME; in stac9460_dac_mute_put() 139 change = stac9460_dac_mute(ice, idx, ucontrol->value.integer.value[0]); in stac9460_dac_mute_put() 156 static int stac9460_dac_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in stac9460_dac_vol_get() argument 165 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME; in stac9460_dac_vol_get() 167 ucontrol->value.integer.value[0] = 0x7f - vol; in stac9460_dac_vol_get() 172 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 | 300 struct snd_ctl_elem_value *ucontrol) in wm_pcm_mute_get() argument 305 ucontrol->value.integer.value[0] = (wm_get(ice, WM_MUTE) & 0x10) ? in wm_pcm_mute_get() 312 struct snd_ctl_elem_value *ucontrol) in wm_pcm_mute_put() argument 320 nval = (oval & ~0x10) | (ucontrol->value.integer.value[0] ? 0 : 0x10); in wm_pcm_mute_put() 343 struct snd_ctl_elem_value *ucontrol) in wm_master_vol_get() argument 349 ucontrol->value.integer.value[i] = spec->master[i] & in wm_master_vol_get() 355 struct snd_ctl_elem_value *ucontrol) in wm_master_vol_put() argument 363 unsigned int vol = ucontrol->value.integer.value[ch]; in wm_master_vol_put() 490 struct snd_ctl_elem_value *ucontrol) in wm_vol_get() argument 499 ucontrol->value.integer.value[i] = in wm_vol_get() [all …]
|
| D | maya44.c | 185 struct snd_ctl_elem_value *ucontrol) in maya_vol_get() argument 189 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; in maya_vol_get() 193 ucontrol->value.integer.value[0] = wm->volumes[idx][0]; in maya_vol_get() 194 ucontrol->value.integer.value[1] = wm->volumes[idx][1]; in maya_vol_get() 200 struct snd_ctl_elem_value *ucontrol) in maya_vol_put() argument 204 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; in maya_vol_put() 212 val = ucontrol->value.integer.value[ch]; in maya_vol_put() 246 struct snd_ctl_elem_value *ucontrol) in maya_sw_get() argument 250 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; in maya_sw_get() 253 ucontrol->value.integer.value[0] = (wm->switch_bits >> idx) & 1; in maya_sw_get() [all …]
|
| /Linux-v4.19/sound/pci/emu10k1/ |
| D | emumixer.c | 54 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_spdif_get() argument 57 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_spdif_get() 64 ucontrol->value.iec958.status[0] = (emu->spdif_bits[idx] >> 0) & 0xff; in snd_emu10k1_spdif_get() 65 ucontrol->value.iec958.status[1] = (emu->spdif_bits[idx] >> 8) & 0xff; in snd_emu10k1_spdif_get() 66 ucontrol->value.iec958.status[2] = (emu->spdif_bits[idx] >> 16) & 0xff; in snd_emu10k1_spdif_get() 67 ucontrol->value.iec958.status[3] = (emu->spdif_bits[idx] >> 24) & 0xff; in snd_emu10k1_spdif_get() 73 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_spdif_get_mask() argument 75 ucontrol->value.iec958.status[0] = 0xff; in snd_emu10k1_spdif_get_mask() 76 ucontrol->value.iec958.status[1] = 0xff; in snd_emu10k1_spdif_get_mask() 77 ucontrol->value.iec958.status[2] = 0xff; in snd_emu10k1_spdif_get_mask() [all …]
|
| /Linux-v4.19/sound/pci/mixart/ |
| D | mixart_mixer.c | 357 static int mixart_analog_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_analog_vol_get() argument 362 ucontrol->value.integer.value[0] = chip->analog_playback_volume[0]; in mixart_analog_vol_get() 363 ucontrol->value.integer.value[1] = chip->analog_playback_volume[1]; in mixart_analog_vol_get() 365 ucontrol->value.integer.value[0] = chip->analog_capture_volume[0]; in mixart_analog_vol_get() 366 ucontrol->value.integer.value[1] = chip->analog_capture_volume[1]; in mixart_analog_vol_get() 372 static int mixart_analog_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_analog_vol_put() argument 381 int new_volume = ucontrol->value.integer.value[i]; in mixart_analog_vol_put() 421 static int mixart_audio_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_audio_sw_get() argument 426 ucontrol->value.integer.value[0] = chip->analog_playback_active[0]; in mixart_audio_sw_get() 427 ucontrol->value.integer.value[1] = chip->analog_playback_active[1]; in mixart_audio_sw_get() [all …]
|
| /Linux-v4.19/sound/pci/pcxhr/ |
| D | pcxhr_mixer.c | 123 struct snd_ctl_elem_value *ucontrol) in pcxhr_analog_vol_get() argument 128 ucontrol->value.integer.value[0] = chip->analog_playback_volume[0]; in pcxhr_analog_vol_get() 129 ucontrol->value.integer.value[1] = chip->analog_playback_volume[1]; in pcxhr_analog_vol_get() 131 ucontrol->value.integer.value[0] = chip->analog_capture_volume[0]; in pcxhr_analog_vol_get() 132 ucontrol->value.integer.value[1] = chip->analog_capture_volume[1]; in pcxhr_analog_vol_get() 139 struct snd_ctl_elem_value *ucontrol) in pcxhr_analog_vol_put() argument 148 int new_volume = ucontrol->value.integer.value[i]; in pcxhr_analog_vol_put() 204 struct snd_ctl_elem_value *ucontrol) in pcxhr_audio_sw_get() argument 209 ucontrol->value.integer.value[0] = chip->analog_playback_active[0]; in pcxhr_audio_sw_get() 210 ucontrol->value.integer.value[1] = chip->analog_playback_active[1]; in pcxhr_audio_sw_get() [all …]
|
| /Linux-v4.19/sound/soc/img/ |
| D | img-spdif-in.c | 283 struct snd_ctl_elem_value *ucontrol) in img_spdif_in_get_status_mask() argument 285 ucontrol->value.iec958.status[0] = 0xff; in img_spdif_in_get_status_mask() 286 ucontrol->value.iec958.status[1] = 0xff; in img_spdif_in_get_status_mask() 287 ucontrol->value.iec958.status[2] = 0xff; in img_spdif_in_get_status_mask() 288 ucontrol->value.iec958.status[3] = 0xff; in img_spdif_in_get_status_mask() 289 ucontrol->value.iec958.status[4] = 0xff; in img_spdif_in_get_status_mask() 295 struct snd_ctl_elem_value *ucontrol) in img_spdif_in_get_status() argument 302 ucontrol->value.iec958.status[0] = reg & 0xff; in img_spdif_in_get_status() 303 ucontrol->value.iec958.status[1] = (reg >> 8) & 0xff; in img_spdif_in_get_status() 304 ucontrol->value.iec958.status[2] = (reg >> 16) & 0xff; in img_spdif_in_get_status() [all …]
|
| /Linux-v4.19/sound/ppc/ |
| D | daca.c | 96 struct snd_ctl_elem_value *ucontrol) in daca_get_deemphasis() argument 102 ucontrol->value.integer.value[0] = mix->deemphasis ? 1 : 0; in daca_get_deemphasis() 107 struct snd_ctl_elem_value *ucontrol) in daca_put_deemphasis() argument 115 change = mix->deemphasis != ucontrol->value.integer.value[0]; in daca_put_deemphasis() 117 mix->deemphasis = !!ucontrol->value.integer.value[0]; in daca_put_deemphasis() 135 struct snd_ctl_elem_value *ucontrol) in daca_get_volume() argument 141 ucontrol->value.integer.value[0] = mix->left_vol; in daca_get_volume() 142 ucontrol->value.integer.value[1] = mix->right_vol; in daca_get_volume() 147 struct snd_ctl_elem_value *ucontrol) in daca_put_volume() argument 156 vol[0] = ucontrol->value.integer.value[0]; in daca_put_volume() [all …]
|
| /Linux-v4.19/sound/pcmcia/vx/ |
| D | vxp_mixer.c | 43 static int vx_mic_level_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_mic_level_get() argument 47 ucontrol->value.integer.value[0] = chip->mic_level; in vx_mic_level_get() 51 static int vx_mic_level_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_mic_level_put() argument 55 unsigned int val = ucontrol->value.integer.value[0]; in vx_mic_level_put() 60 if (chip->mic_level != ucontrol->value.integer.value[0]) { in vx_mic_level_put() 61 vx_set_mic_level(_chip, ucontrol->value.integer.value[0]); in vx_mic_level_put() 62 chip->mic_level = ucontrol->value.integer.value[0]; in vx_mic_level_put() 88 static int vx_mic_boost_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_mic_boost_get() argument 92 ucontrol->value.integer.value[0] = chip->mic_level; in vx_mic_boost_get() 96 static int vx_mic_boost_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_mic_boost_put() argument [all …]
|
| /Linux-v4.19/drivers/staging/vc04_services/bcm2835-audio/ |
| D | bcm2835-ctl.c | 76 struct snd_ctl_elem_value *ucontrol) in snd_bcm2835_ctl_get() argument 86 ucontrol->value.integer.value[0] = chip2alsa(chip->volume); in snd_bcm2835_ctl_get() 88 ucontrol->value.integer.value[0] = chip->mute; in snd_bcm2835_ctl_get() 90 ucontrol->value.integer.value[0] = chip->dest; in snd_bcm2835_ctl_get() 97 struct snd_ctl_elem_value *ucontrol) in snd_bcm2835_ctl_put() argument 106 …audio_info("Volume change attempted.. volume = %d new_volume = %d\n", chip->volume, (int)ucontrol-… in snd_bcm2835_ctl_put() 112 if (changed || (ucontrol->value.integer.value[0] != chip2alsa(chip->volume))) { in snd_bcm2835_ctl_put() 113 chip->volume = alsa2chip(ucontrol->value.integer.value[0]); in snd_bcm2835_ctl_put() 120 changed = toggle_mute(chip, ucontrol->value.integer.value[0]); in snd_bcm2835_ctl_put() 123 if (ucontrol->value.integer.value[0] != chip->dest) { in snd_bcm2835_ctl_put() [all …]
|
| /Linux-v4.19/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-v4.19/sound/isa/sb/ |
| D | sb_mixer.c | 71 …atic int snd_sbmixer_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_sbmixer_get_single() argument 83 ucontrol->value.integer.value[0] = val; in snd_sbmixer_get_single() 87 …atic int snd_sbmixer_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_sbmixer_put_single() argument 97 val = (ucontrol->value.integer.value[0] & mask) << shift; in snd_sbmixer_put_single() 123 …atic int snd_sbmixer_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_sbmixer_get_double() argument 138 ucontrol->value.integer.value[0] = left; in snd_sbmixer_get_double() 139 ucontrol->value.integer.value[1] = right; in snd_sbmixer_get_double() 143 …atic int snd_sbmixer_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_sbmixer_put_double() argument 155 left = (ucontrol->value.integer.value[0] & mask) << left_shift; in snd_sbmixer_put_double() 156 right = (ucontrol->value.integer.value[1] & mask) << right_shift; in snd_sbmixer_put_double() [all …]
|
| /Linux-v4.19/sound/soc/omap/ |
| D | n810.c | 134 struct snd_ctl_elem_value *ucontrol) in n810_get_spk() argument 136 ucontrol->value.enumerated.item[0] = n810_spk_func; in n810_get_spk() 142 struct snd_ctl_elem_value *ucontrol) in n810_set_spk() argument 146 if (n810_spk_func == ucontrol->value.enumerated.item[0]) in n810_set_spk() 149 n810_spk_func = ucontrol->value.enumerated.item[0]; in n810_set_spk() 156 struct snd_ctl_elem_value *ucontrol) in n810_get_jack() argument 158 ucontrol->value.enumerated.item[0] = n810_jack_func; in n810_get_jack() 164 struct snd_ctl_elem_value *ucontrol) in n810_set_jack() argument 168 if (n810_jack_func == ucontrol->value.enumerated.item[0]) in n810_set_jack() 171 n810_jack_func = ucontrol->value.enumerated.item[0]; in n810_set_jack() [all …]
|
| /Linux-v4.19/sound/soc/codecs/ |
| D | wm8958-dsp2.c | 457 struct snd_ctl_elem_value *ucontrol) in wm8958_put_mbc_enum() argument 462 int value = ucontrol->value.enumerated.item[0]; in wm8958_put_mbc_enum() 479 struct snd_ctl_elem_value *ucontrol) in wm8958_get_mbc_enum() argument 484 ucontrol->value.enumerated.item[0] = wm8994->mbc_cfg; in wm8958_get_mbc_enum() 500 struct snd_ctl_elem_value *ucontrol) in wm8958_mbc_get() argument 506 ucontrol->value.integer.value[0] = wm8994->mbc_ena[mbc]; in wm8958_mbc_get() 512 struct snd_ctl_elem_value *ucontrol) in wm8958_mbc_put() argument 518 if (wm8994->mbc_ena[mbc] == ucontrol->value.integer.value[0]) in wm8958_mbc_put() 521 if (ucontrol->value.integer.value[0] > 1) in wm8958_mbc_put() 532 wm8994->mbc_ena[mbc] = ucontrol->value.integer.value[0]; in wm8958_mbc_put() [all …]
|
| /Linux-v4.19/sound/soc/atmel/ |
| D | tse850-pcm5142.c | 67 struct snd_ctl_elem_value *ucontrol) in tse850_get_mux1() argument 73 ucontrol->value.enumerated.item[0] = tse850->loop1_cache; in tse850_get_mux1() 79 struct snd_ctl_elem_value *ucontrol) in tse850_put_mux1() argument 85 unsigned int val = ucontrol->value.enumerated.item[0]; in tse850_put_mux1() 93 return snd_soc_dapm_put_enum_double(kctrl, ucontrol); in tse850_put_mux1() 97 struct snd_ctl_elem_value *ucontrol) in tse850_get_mux2() argument 103 ucontrol->value.enumerated.item[0] = tse850->loop2_cache; in tse850_get_mux2() 109 struct snd_ctl_elem_value *ucontrol) in tse850_put_mux2() argument 115 unsigned int val = ucontrol->value.enumerated.item[0]; in tse850_put_mux2() 123 return snd_soc_dapm_put_enum_double(kctrl, ucontrol); in tse850_put_mux2() [all …]
|
| /Linux-v4.19/sound/i2c/ |
| D | tea6330t.c | 97 struct snd_ctl_elem_value *ucontrol) in snd_tea6330t_get_master_volume() argument 102 ucontrol->value.integer.value[0] = tea->mleft - 0x14; in snd_tea6330t_get_master_volume() 103 ucontrol->value.integer.value[1] = tea->mright - 0x14; in snd_tea6330t_get_master_volume() 109 struct snd_ctl_elem_value *ucontrol) in snd_tea6330t_put_master_volume() argument 116 val1 = (ucontrol->value.integer.value[0] % 44) + 0x14; in snd_tea6330t_put_master_volume() 117 val2 = (ucontrol->value.integer.value[1] % 44) + 0x14; in snd_tea6330t_put_master_volume() 148 struct snd_ctl_elem_value *ucontrol) in snd_tea6330t_get_master_switch() argument 153 ucontrol->value.integer.value[0] = tea->regs[TEA6330T_SADDR_VOLUME_LEFT] == 0 ? 0 : 1; in snd_tea6330t_get_master_switch() 154 ucontrol->value.integer.value[1] = tea->regs[TEA6330T_SADDR_VOLUME_RIGHT] == 0 ? 0 : 1; in snd_tea6330t_get_master_switch() 160 struct snd_ctl_elem_value *ucontrol) in snd_tea6330t_put_master_switch() argument [all …]
|