/sound/aoa/codecs/ |
D | tas.c | 235 struct snd_ctl_elem_value *ucontrol) in tas_snd_vol_get() argument 240 ucontrol->value.integer.value[0] = tas->cached_volume_l; in tas_snd_vol_get() 241 ucontrol->value.integer.value[1] = tas->cached_volume_r; in tas_snd_vol_get() 247 struct snd_ctl_elem_value *ucontrol) in tas_snd_vol_put() argument 251 if (ucontrol->value.integer.value[0] < 0 || in tas_snd_vol_put() 252 ucontrol->value.integer.value[0] > 177) in tas_snd_vol_put() 254 if (ucontrol->value.integer.value[1] < 0 || in tas_snd_vol_put() 255 ucontrol->value.integer.value[1] > 177) in tas_snd_vol_put() 259 if (tas->cached_volume_l == ucontrol->value.integer.value[0] in tas_snd_vol_put() 260 && 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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/sound/ppc/ |
D | daca.c | 83 struct snd_ctl_elem_value *ucontrol) in daca_get_deemphasis() argument 89 ucontrol->value.integer.value[0] = mix->deemphasis ? 1 : 0; in daca_get_deemphasis() 94 struct snd_ctl_elem_value *ucontrol) in daca_put_deemphasis() argument 102 change = mix->deemphasis != ucontrol->value.integer.value[0]; in daca_put_deemphasis() 104 mix->deemphasis = !!ucontrol->value.integer.value[0]; in daca_put_deemphasis() 122 struct snd_ctl_elem_value *ucontrol) in daca_get_volume() argument 128 ucontrol->value.integer.value[0] = mix->left_vol; in daca_get_volume() 129 ucontrol->value.integer.value[1] = mix->right_vol; in daca_get_volume() 134 struct snd_ctl_elem_value *ucontrol) in daca_put_volume() argument 143 vol[0] = ucontrol->value.integer.value[0]; in daca_put_volume() [all …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/sound/soc/codecs/ |
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 …]
|
/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 …]
|
/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 …]
|
/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() 133 struct snd_ctl_elem_value *ucontrol) in snd_tea6330t_get_master_switch() argument 138 ucontrol->value.integer.value[0] = tea->regs[TEA6330T_SADDR_VOLUME_LEFT] == 0 ? 0 : 1; in snd_tea6330t_get_master_switch() 139 ucontrol->value.integer.value[1] = tea->regs[TEA6330T_SADDR_VOLUME_RIGHT] == 0 ? 0 : 1; in snd_tea6330t_get_master_switch() 145 struct snd_ctl_elem_value *ucontrol) in snd_tea6330t_put_master_switch() argument [all …]
|
/sound/isa/cs423x/ |
D | cs4236_lib.c | 405 static int snd_cs4236_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_get_single() argument 415 ucontrol->value.integer.value[0] = (chip->eimage[CS4236_REG(reg)] >> shift) & mask; in snd_cs4236_get_single() 418 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_cs4236_get_single() 422 static int snd_cs4236_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_put_single() argument 433 val = (ucontrol->value.integer.value[0] & mask); in snd_cs4236_put_single() 451 …atic int snd_cs4236_get_singlec(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_get_singlec() argument 461 ucontrol->value.integer.value[0] = (chip->cimage[reg] >> shift) & mask; in snd_cs4236_get_singlec() 464 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_cs4236_get_singlec() 468 …atic int snd_cs4236_put_singlec(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_put_singlec() argument 479 val = (ucontrol->value.integer.value[0] & mask); in snd_cs4236_put_singlec() [all …]
|