/linux-4.4.14/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-4.4.14/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-4.4.14/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-4.4.14/sound/soc/ |
D | soc-ops.c | 65 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_enum_double() argument 78 ucontrol->value.enumerated.item[0] = item; in snd_soc_get_enum_double() 82 ucontrol->value.enumerated.item[1] = item; in snd_soc_get_enum_double() 99 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_enum_double() argument 103 unsigned int *item = ucontrol->value.enumerated.item; in snd_soc_put_enum_double() 248 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_volsw() argument 272 ucontrol->value.integer.value[0] = val - min; in snd_soc_get_volsw() 274 ucontrol->value.integer.value[0] = in snd_soc_get_volsw() 275 max - ucontrol->value.integer.value[0]; in snd_soc_get_volsw() 287 ucontrol->value.integer.value[1] = val - min; in snd_soc_get_volsw() [all …]
|
D | soc-dapm.c | 2990 struct snd_ctl_elem_value *ucontrol) in snd_soc_dapm_get_volsw() argument 3019 ucontrol->value.integer.value[0] = max - val; in snd_soc_dapm_get_volsw() 3021 ucontrol->value.integer.value[0] = val; in snd_soc_dapm_get_volsw() 3037 struct snd_ctl_elem_value *ucontrol) in snd_soc_dapm_put_volsw() argument 3058 val = (ucontrol->value.integer.value[0] & mask); in snd_soc_dapm_put_volsw() 3109 struct snd_ctl_elem_value *ucontrol) in snd_soc_dapm_get_enum_double() argument 3129 ucontrol->value.enumerated.item[0] = snd_soc_enum_val_to_item(e, val); in snd_soc_dapm_get_enum_double() 3133 ucontrol->value.enumerated.item[1] = val; in snd_soc_dapm_get_enum_double() 3150 struct snd_ctl_elem_value *ucontrol) in snd_soc_dapm_put_enum_double() argument 3155 unsigned int *item = ucontrol->value.enumerated.item; in snd_soc_dapm_put_enum_double() [all …]
|
/linux-4.4.14/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-4.4.14/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 …]
|
D | prodigy_hifi.c | 266 struct snd_ctl_elem_value *ucontrol) in ak4396_dac_vol_get() argument 273 ucontrol->value.integer.value[i] = spec->vol[i]; in ak4396_dac_vol_get() 278 static int ak4396_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in ak4396_dac_vol_put() argument 287 if (ucontrol->value.integer.value[i] != spec->vol[i]) { in ak4396_dac_vol_put() 288 spec->vol[i] = ucontrol->value.integer.value[i]; in ak4396_dac_vol_put() 394 struct snd_ctl_elem_value *ucontrol) in wm_dac_vol_get() argument 401 ucontrol->value.integer.value[i] = in wm_dac_vol_get() 406 static int wm_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_dac_vol_put() argument 414 if (ucontrol->value.integer.value[i] != spec->vol[2 + i]) { in wm_dac_vol_put() 417 spec->vol[2 + i] |= ucontrol->value.integer.value[i]; in wm_dac_vol_put() [all …]
|
D | ice1712.c | 259 …d_ice1712_digmix_route_ac97_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ice1712_digmix_route_ac97_get() argument 263 ucontrol->value.integer.value[0] = inb(ICEMT(ice, MONITOR_ROUTECTRL)) & ICE1712_ROUTE_AC97 ? 1 : 0; in snd_ice1712_digmix_route_ac97_get() 267 …d_ice1712_digmix_route_ac97_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ice1712_digmix_route_ac97_put() argument 275 if (ucontrol->value.integer.value[0]) in snd_ice1712_digmix_route_ac97_put() 1303 …nd_ice1712_pro_mixer_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ice1712_pro_mixer_switch_get() argument 1306 int priv_idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + in snd_ice1712_pro_mixer_switch_get() 1310 ucontrol->value.integer.value[0] = in snd_ice1712_pro_mixer_switch_get() 1312 ucontrol->value.integer.value[1] = in snd_ice1712_pro_mixer_switch_get() 1318 …nd_ice1712_pro_mixer_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ice1712_pro_mixer_switch_put() argument 1321 int priv_idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + in snd_ice1712_pro_mixer_switch_put() [all …]
|
D | ews.c | 266 static void ews88_spdif_default_get(struct snd_ice1712 *ice, struct snd_ctl_elem_value *ucontrol) in ews88_spdif_default_get() argument 268 snd_cs8404_decode_spdif_bits(&ucontrol->value.iec958, ice->spdif.cs8403_bits); in ews88_spdif_default_get() 271 static int ews88_spdif_default_put(struct snd_ice1712 *ice, struct snd_ctl_elem_value *ucontrol) in ews88_spdif_default_put() argument 276 val = snd_cs8404_encode_spdif_bits(&ucontrol->value.iec958); in ews88_spdif_default_put() 289 static void ews88_spdif_stream_get(struct snd_ice1712 *ice, struct snd_ctl_elem_value *ucontrol) in ews88_spdif_stream_get() argument 291 snd_cs8404_decode_spdif_bits(&ucontrol->value.iec958, ice->spdif.cs8403_stream_bits); in ews88_spdif_stream_get() 294 static int ews88_spdif_stream_put(struct snd_ice1712 *ice, struct snd_ctl_elem_value *ucontrol) in ews88_spdif_stream_put() argument 299 val = snd_cs8404_encode_spdif_bits(&ucontrol->value.iec958); in ews88_spdif_stream_put() 586 …nt snd_ice1712_ewx_io_sense_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ice1712_ewx_io_sense_get() argument 592 ucontrol->value.enumerated.item[0] = snd_ice1712_read(ice, ICE1712_IREG_GPIO_DATA) & mask ? 1 : 0; in snd_ice1712_ewx_io_sense_get() [all …]
|
D | quartet.c | 510 struct snd_ctl_elem_value *ucontrol) in qtet_mute_get() argument 515 ucontrol->value.integer.value[0] = (val) ? 0 : 1; in qtet_mute_get() 520 struct snd_ctl_elem_value *ucontrol) in qtet_mute_put() argument 525 if (ucontrol->value.integer.value[0]) { in qtet_mute_put() 556 struct snd_ctl_elem_value *ucontrol) in qtet_ain12_sw_get() argument 576 ucontrol->value.integer.value[0] = result; in qtet_ain12_sw_get() 581 struct snd_ctl_elem_value *ucontrol) in qtet_ain12_sw_put() argument 587 tmp = ucontrol->value.integer.value[0]; in qtet_ain12_sw_put() 625 struct snd_ctl_elem_value *ucontrol) in qtet_php_get() argument 631 ucontrol->value.integer.value[0] = val ? 1 : 0; in qtet_php_get() [all …]
|
D | ice1724.c | 1595 struct snd_ctl_elem_value *ucontrol) in snd_vt1724_eeprom_get() argument 1599 memcpy(ucontrol->value.bytes.data, &ice->eeprom, sizeof(ice->eeprom)); in snd_vt1724_eeprom_get() 1692 struct snd_ctl_elem_value *ucontrol) in snd_vt1724_spdif_default_get() argument 1697 decode_spdif_bits(&ucontrol->value.iec958, val); in snd_vt1724_spdif_default_get() 1702 struct snd_ctl_elem_value *ucontrol) in snd_vt1724_spdif_default_put() argument 1707 val = encode_spdif_bits(&ucontrol->value.iec958); in snd_vt1724_spdif_default_put() 1726 struct snd_ctl_elem_value *ucontrol) in snd_vt1724_spdif_maskc_get() argument 1728 ucontrol->value.iec958.status[0] = IEC958_AES0_NONAUDIO | in snd_vt1724_spdif_maskc_get() 1732 ucontrol->value.iec958.status[1] = IEC958_AES1_CON_ORIGINAL | in snd_vt1724_spdif_maskc_get() 1734 ucontrol->value.iec958.status[3] = IEC958_AES3_CON_FS; in snd_vt1724_spdif_maskc_get() [all …]
|
D | ice1712.h | 288 void (*default_get)(struct snd_ice1712 *, struct snd_ctl_elem_value *ucontrol); 289 int (*default_put)(struct snd_ice1712 *, struct snd_ctl_elem_value *ucontrol); 290 void (*stream_get)(struct snd_ice1712 *, struct snd_ctl_elem_value *ucontrol); 291 int (*stream_put)(struct snd_ice1712 *, struct snd_ctl_elem_value *ucontrol); 460 int snd_ice1712_gpio_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol); 461 int snd_ice1712_gpio_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol);
|
D | wm8766.c | 220 struct snd_ctl_elem_value *ucontrol) in snd_wm8766_ctl_get() argument 243 ucontrol->value.integer.value[0] = val1; in snd_wm8766_ctl_get() 245 ucontrol->value.integer.value[1] = val2; in snd_wm8766_ctl_get() 251 struct snd_ctl_elem_value *ucontrol) in snd_wm8766_ctl_put() argument 258 regval1 = ucontrol->value.integer.value[0]; in snd_wm8766_ctl_put() 259 regval2 = ucontrol->value.integer.value[1]; in snd_wm8766_ctl_put()
|
D | delta.c | 211 static void delta_spdif_default_get(struct snd_ice1712 *ice, struct snd_ctl_elem_value *ucontrol) in delta_spdif_default_get() argument 213 snd_cs8403_decode_spdif_bits(&ucontrol->value.iec958, ice->spdif.cs8403_bits); in delta_spdif_default_get() 216 static int delta_spdif_default_put(struct snd_ice1712 *ice, struct snd_ctl_elem_value *ucontrol) in delta_spdif_default_put() argument 221 val = snd_cs8403_encode_spdif_bits(&ucontrol->value.iec958); in delta_spdif_default_put() 234 static void delta_spdif_stream_get(struct snd_ice1712 *ice, struct snd_ctl_elem_value *ucontrol) in delta_spdif_stream_get() argument 236 snd_cs8403_decode_spdif_bits(&ucontrol->value.iec958, ice->spdif.cs8403_stream_bits); in delta_spdif_stream_get() 239 static int delta_spdif_stream_put(struct snd_ice1712 *ice, struct snd_ctl_elem_value *ucontrol) in delta_spdif_stream_put() argument 244 val = snd_cs8403_encode_spdif_bits(&ucontrol->value.iec958); in delta_spdif_stream_put() 422 struct snd_ctl_elem_value *ucontrol) in snd_ice1712_delta1010lt_wordclock_status_get() argument 431 ucontrol->value.integer.value[0] = (reg & CS8427_UNLOCK) ? 1 : 0; in snd_ice1712_delta1010lt_wordclock_status_get()
|
D | juli.c | 304 struct snd_ctl_elem_value *ucontrol) in juli_mute_get() argument 311 ucontrol->value.integer.value[0] = (val) ? 0 : 1; in juli_mute_get() 314 ucontrol->value.integer.value[0] = (val) ? 1 : 0; in juli_mute_get() 319 struct snd_ctl_elem_value *ucontrol) in juli_mute_put() argument 324 if (ucontrol->value.integer.value[0]) { in juli_mute_put()
|
D | wm8776.c | 494 struct snd_ctl_elem_value *ucontrol) in snd_wm8776_ctl_get() argument 517 ucontrol->value.integer.value[0] = val1; in snd_wm8776_ctl_get() 519 ucontrol->value.integer.value[1] = val2; in snd_wm8776_ctl_get() 525 struct snd_ctl_elem_value *ucontrol) in snd_wm8776_ctl_put() argument 532 regval1 = ucontrol->value.integer.value[0]; in snd_wm8776_ctl_put() 533 regval2 = ucontrol->value.integer.value[1]; in snd_wm8776_ctl_put()
|
D | psc724.c | 276 struct snd_ctl_elem_value *ucontrol) in psc724_ctl_get() argument 281 ucontrol->value.integer.value[0] = psc724_cont[n].get(ice); in psc724_ctl_get() 287 struct snd_ctl_elem_value *ucontrol) in psc724_ctl_put() argument 292 psc724_cont[n].set(ice, ucontrol->value.integer.value[0]); in psc724_ctl_put()
|
/linux-4.4.14/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 …]
|
D | p16v.c | 706 struct snd_ctl_elem_value *ucontrol) in snd_p16v_volume_get() argument 715 ucontrol->value.integer.value[0] = 0xff - ((value >> 24) & 0xff); /* Left */ in snd_p16v_volume_get() 716 ucontrol->value.integer.value[1] = 0xff - ((value >> 16) & 0xff); /* Right */ in snd_p16v_volume_get() 718 ucontrol->value.integer.value[0] = 0xff - ((value >> 8) & 0xff); /* Left */ in snd_p16v_volume_get() 719 ucontrol->value.integer.value[1] = 0xff - ((value >> 0) & 0xff); /* Right */ in snd_p16v_volume_get() 725 struct snd_ctl_elem_value *ucontrol) in snd_p16v_volume_put() argument 735 value |= ((0xff - ucontrol->value.integer.value[0]) << 24) | in snd_p16v_volume_put() 736 ((0xff - ucontrol->value.integer.value[1]) << 16); in snd_p16v_volume_put() 739 value |= ((0xff - ucontrol->value.integer.value[0]) << 8) | in snd_p16v_volume_put() 740 ((0xff - ucontrol->value.integer.value[1]) ); in snd_p16v_volume_put() [all …]
|
D | emu10k1x.c | 1083 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1x_shared_spdif_get() argument 1087 ucontrol->value.integer.value[0] = (snd_emu10k1x_ptr_read(emu, SPDIF_SELECT, 0) == 0x700) ? 0 : 1; in snd_emu10k1x_shared_spdif_get() 1093 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1x_shared_spdif_put() argument 1099 val = ucontrol->value.integer.value[0] ; in snd_emu10k1x_shared_spdif_put() 1132 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1x_spdif_get() argument 1135 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1x_spdif_get() 1137 ucontrol->value.iec958.status[0] = (emu->spdif_bits[idx] >> 0) & 0xff; in snd_emu10k1x_spdif_get() 1138 ucontrol->value.iec958.status[1] = (emu->spdif_bits[idx] >> 8) & 0xff; in snd_emu10k1x_spdif_get() 1139 ucontrol->value.iec958.status[2] = (emu->spdif_bits[idx] >> 16) & 0xff; in snd_emu10k1x_spdif_get() 1140 ucontrol->value.iec958.status[3] = (emu->spdif_bits[idx] >> 24) & 0xff; in snd_emu10k1x_spdif_get() [all …]
|
/linux-4.4.14/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-4.4.14/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 …]
|
D | pcxhr_mix22.c | 723 struct snd_ctl_elem_value *ucontrol) in hr222_mic_vol_get() argument 727 ucontrol->value.integer.value[0] = chip->mic_volume; in hr222_mic_vol_get() 733 struct snd_ctl_elem_value *ucontrol) in hr222_mic_vol_put() argument 738 if (chip->mic_volume != ucontrol->value.integer.value[0]) { in hr222_mic_vol_put() 740 chip->mic_volume = ucontrol->value.integer.value[0]; in hr222_mic_vol_put() 773 struct snd_ctl_elem_value *ucontrol) in hr222_mic_boost_get() argument 777 ucontrol->value.integer.value[0] = chip->mic_boost; in hr222_mic_boost_get() 783 struct snd_ctl_elem_value *ucontrol) in hr222_mic_boost_put() argument 788 if (chip->mic_boost != ucontrol->value.integer.value[0]) { in hr222_mic_boost_put() 790 chip->mic_boost = ucontrol->value.integer.value[0]; in hr222_mic_boost_put() [all …]
|
/linux-4.4.14/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 …]
|
D | burgundy.c | 185 struct snd_ctl_elem_value *ucontrol) in snd_pmac_burgundy_get_volume() argument 191 ucontrol->value.integer.value, shift); in snd_pmac_burgundy_get_volume() 196 struct snd_ctl_elem_value *ucontrol) in snd_pmac_burgundy_put_volume() argument 204 ucontrol->value.integer.value, shift); in snd_pmac_burgundy_put_volume() 206 return (nvoices[0] != ucontrol->value.integer.value[0] || in snd_pmac_burgundy_put_volume() 207 nvoices[1] != ucontrol->value.integer.value[1]); in snd_pmac_burgundy_put_volume() 261 struct snd_ctl_elem_value *ucontrol) in snd_pmac_burgundy_get_volume_2b() argument 267 ucontrol->value.integer.value, off); in snd_pmac_burgundy_get_volume_2b() 272 struct snd_ctl_elem_value *ucontrol) in snd_pmac_burgundy_put_volume_2b() argument 280 ucontrol->value.integer.value, off); in snd_pmac_burgundy_put_volume_2b() [all …]
|
D | awacs.c | 146 struct snd_ctl_elem_value *ucontrol) in snd_pmac_awacs_get_volume() argument 163 ucontrol->value.integer.value[0] = vol[0]; in snd_pmac_awacs_get_volume() 164 ucontrol->value.integer.value[1] = vol[1]; in snd_pmac_awacs_get_volume() 169 struct snd_ctl_elem_value *ucontrol) in snd_pmac_awacs_put_volume() argument 179 vol[0] = ucontrol->value.integer.value[0]; in snd_pmac_awacs_put_volume() 180 vol[1] = ucontrol->value.integer.value[1]; in snd_pmac_awacs_put_volume() 212 struct snd_ctl_elem_value *ucontrol) in snd_pmac_awacs_get_switch() argument 226 ucontrol->value.integer.value[0] = val; in snd_pmac_awacs_get_switch() 231 struct snd_ctl_elem_value *ucontrol) in snd_pmac_awacs_put_switch() argument 243 if (ucontrol->value.integer.value[0] != invert) in snd_pmac_awacs_put_switch() [all …]
|
D | tumbler.c | 267 struct snd_ctl_elem_value *ucontrol) in tumbler_get_master_volume() argument 272 ucontrol->value.integer.value[0] = mix->master_vol[0]; in tumbler_get_master_volume() 273 ucontrol->value.integer.value[1] = mix->master_vol[1]; in tumbler_get_master_volume() 278 struct snd_ctl_elem_value *ucontrol) in tumbler_put_master_volume() argument 285 vol[0] = ucontrol->value.integer.value[0]; in tumbler_put_master_volume() 286 vol[1] = ucontrol->value.integer.value[1]; in tumbler_put_master_volume() 302 struct snd_ctl_elem_value *ucontrol) in tumbler_get_master_switch() argument 307 ucontrol->value.integer.value[0] = mix->master_switch[0]; in tumbler_get_master_switch() 308 ucontrol->value.integer.value[1] = mix->master_switch[1]; in tumbler_get_master_switch() 313 struct snd_ctl_elem_value *ucontrol) in tumbler_put_master_switch() argument [all …]
|
D | beep.c | 185 struct snd_ctl_elem_value *ucontrol) in snd_pmac_get_beep() argument 190 ucontrol->value.integer.value[0] = chip->beep->volume; in snd_pmac_get_beep() 195 struct snd_ctl_elem_value *ucontrol) in snd_pmac_put_beep() argument 202 nval = ucontrol->value.integer.value[0]; in snd_pmac_put_beep()
|
D | snd_ps3.c | 724 struct snd_ctl_elem_value *ucontrol) in snd_ps3_spdif_cmask_get() argument 726 memset(ucontrol->value.iec958.status, 0xff, 8); in snd_ps3_spdif_cmask_get() 731 struct snd_ctl_elem_value *ucontrol) in snd_ps3_spdif_pmask_get() argument 737 struct snd_ctl_elem_value *ucontrol) in snd_ps3_spdif_default_get() argument 739 memcpy(ucontrol->value.iec958.status, ps3av_mode_cs_info, 8); in snd_ps3_spdif_default_get() 744 struct snd_ctl_elem_value *ucontrol) in snd_ps3_spdif_default_put() argument 746 if (memcmp(ps3av_mode_cs_info, ucontrol->value.iec958.status, 8)) { in snd_ps3_spdif_default_put() 747 memcpy(ps3av_mode_cs_info, ucontrol->value.iec958.status, 8); in snd_ps3_spdif_default_put()
|
D | pmac.c | 1114 struct snd_ctl_elem_value *ucontrol) in pmac_auto_mute_get() argument 1117 ucontrol->value.integer.value[0] = chip->auto_mute; in pmac_auto_mute_get() 1122 struct snd_ctl_elem_value *ucontrol) in pmac_auto_mute_put() argument 1125 if (ucontrol->value.integer.value[0] != chip->auto_mute) { in pmac_auto_mute_put() 1126 chip->auto_mute = !!ucontrol->value.integer.value[0]; in pmac_auto_mute_put() 1135 struct snd_ctl_elem_value *ucontrol) in pmac_hp_detect_get() argument 1139 ucontrol->value.integer.value[0] = chip->detect_headphone(chip); in pmac_hp_detect_get() 1141 ucontrol->value.integer.value[0] = 0; in pmac_hp_detect_get()
|
/linux-4.4.14/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-4.4.14/sound/drivers/pcsp/ |
D | pcsp_mixer.c | 24 struct snd_ctl_elem_value *ucontrol) in pcsp_enable_get() argument 27 ucontrol->value.integer.value[0] = chip->enable; in pcsp_enable_get() 32 struct snd_ctl_elem_value *ucontrol) in pcsp_enable_put() argument 36 int enab = ucontrol->value.integer.value[0]; in pcsp_enable_put() 59 struct snd_ctl_elem_value *ucontrol) in pcsp_treble_get() argument 62 ucontrol->value.enumerated.item[0] = chip->treble; in pcsp_treble_get() 67 struct snd_ctl_elem_value *ucontrol) in pcsp_treble_put() argument 71 int treble = ucontrol->value.enumerated.item[0]; in pcsp_treble_put() 93 struct snd_ctl_elem_value *ucontrol) in pcsp_pcspkr_get() argument 96 ucontrol->value.integer.value[0] = chip->pcspkr; in pcsp_pcspkr_get() [all …]
|
/linux-4.4.14/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 …]
|
D | emu8000.c | 842 static int mixer_bass_treble_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixer_bass_treble_get() argument 846 ucontrol->value.integer.value[0] = kcontrol->private_value ? emu->treble_level : emu->bass_level; in mixer_bass_treble_get() 850 static int mixer_bass_treble_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixer_bass_treble_put() argument 857 val1 = ucontrol->value.integer.value[0] % 12; in mixer_bass_treble_put() 903 …tic int mixer_chorus_reverb_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixer_chorus_reverb_get() argument 907 ucontrol->value.integer.value[0] = kcontrol->private_value ? emu->chorus_mode : emu->reverb_mode; in mixer_chorus_reverb_get() 911 …tic int mixer_chorus_reverb_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixer_chorus_reverb_put() argument 920 val1 = ucontrol->value.integer.value[0] % SNDRV_EMU8000_CHORUS_NUMBERS; in mixer_chorus_reverb_put() 924 val1 = ucontrol->value.integer.value[0] % SNDRV_EMU8000_REVERB_NUMBERS; in mixer_chorus_reverb_put() 970 static int mixer_fm_depth_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixer_fm_depth_get() argument [all …]
|
D | sb16_csp.c | 966 …ic int snd_sb_qsound_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_sb_qsound_switch_get() argument 970 ucontrol->value.integer.value[0] = p->q_enabled ? 1 : 0; in snd_sb_qsound_switch_get() 974 …ic int snd_sb_qsound_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_sb_qsound_switch_put() argument 981 nval = ucontrol->value.integer.value[0] & 0x01; in snd_sb_qsound_switch_put() 998 …tic int snd_sb_qsound_space_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_sb_qsound_space_get() argument 1004 ucontrol->value.integer.value[0] = p->qpos_left; in snd_sb_qsound_space_get() 1005 ucontrol->value.integer.value[1] = p->qpos_right; in snd_sb_qsound_space_get() 1010 …tic int snd_sb_qsound_space_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_sb_qsound_space_put() argument 1017 nval1 = ucontrol->value.integer.value[0]; in snd_sb_qsound_space_put() 1020 nval2 = ucontrol->value.integer.value[1]; in snd_sb_qsound_space_put()
|
D | sb16_main.c | 712 …ic int snd_sb16_dma_control_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_sb16_dma_control_get() argument 718 ucontrol->value.enumerated.item[0] = snd_sb16_get_dma_mode(chip); in snd_sb16_dma_control_get() 723 …ic int snd_sb16_dma_control_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_sb16_dma_control_put() argument 730 if ((nval = ucontrol->value.enumerated.item[0]) > 2) in snd_sb16_dma_control_put()
|
/linux-4.4.14/sound/soc/omap/ |
D | n810.c | 134 struct snd_ctl_elem_value *ucontrol) in n810_get_spk() argument 136 ucontrol->value.integer.value[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.integer.value[0]) in n810_set_spk() 149 n810_spk_func = ucontrol->value.integer.value[0]; in n810_set_spk() 156 struct snd_ctl_elem_value *ucontrol) in n810_get_jack() argument 158 ucontrol->value.integer.value[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.integer.value[0]) in n810_set_jack() 171 n810_jack_func = ucontrol->value.integer.value[0]; in n810_set_jack() [all …]
|
D | rx51.c | 133 struct snd_ctl_elem_value *ucontrol) in rx51_get_spk() argument 135 ucontrol->value.integer.value[0] = rx51_spk_func; in rx51_get_spk() 141 struct snd_ctl_elem_value *ucontrol) in rx51_set_spk() argument 145 if (rx51_spk_func == ucontrol->value.integer.value[0]) in rx51_set_spk() 148 rx51_spk_func = ucontrol->value.integer.value[0]; in rx51_set_spk() 181 struct snd_ctl_elem_value *ucontrol) in rx51_get_input() argument 183 ucontrol->value.integer.value[0] = rx51_dmic_func; in rx51_get_input() 189 struct snd_ctl_elem_value *ucontrol) in rx51_set_input() argument 193 if (rx51_dmic_func == ucontrol->value.integer.value[0]) in rx51_set_input() 196 rx51_dmic_func = ucontrol->value.integer.value[0]; in rx51_set_input() [all …]
|
D | ams-delta.c | 99 struct snd_ctl_elem_value *ucontrol) in ams_delta_set_audio_mode() argument 111 if (ucontrol->value.enumerated.item[0] >= control->items) in ams_delta_set_audio_mode() 117 pins = ams_delta_audio_mode_pins[ucontrol->value.enumerated.item[0]]; in ams_delta_set_audio_mode() 172 struct snd_ctl_elem_value *ucontrol) in ams_delta_get_audio_mode() argument 199 ucontrol->value.enumerated.item[0] = mode; in ams_delta_get_audio_mode()
|
D | omap-mcbsp.c | 663 struct snd_ctl_elem_value *ucontrol) in omap_mcbsp_st_put_mode() argument 667 u8 value = ucontrol->value.integer.value[0]; in omap_mcbsp_st_put_mode() 681 struct snd_ctl_elem_value *ucontrol) in omap_mcbsp_st_get_mode() argument 686 ucontrol->value.integer.value[0] = omap_st_is_enabled(mcbsp); in omap_mcbsp_st_get_mode()
|
/linux-4.4.14/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 …]
|
D | wl1273.c | 173 struct snd_ctl_elem_value *ucontrol) in snd_wl1273_get_audio_route() argument 178 ucontrol->value.integer.value[0] = wl1273->mode; in snd_wl1273_get_audio_route() 191 struct snd_ctl_elem_value *ucontrol) in snd_wl1273_set_audio_route() argument 196 if (wl1273->mode == ucontrol->value.integer.value[0]) in snd_wl1273_set_audio_route() 203 if (ucontrol->value.integer.value[0] < 0 || in snd_wl1273_set_audio_route() 204 ucontrol->value.integer.value[0] >= ARRAY_SIZE(wl1273_audio_route)) in snd_wl1273_set_audio_route() 207 wl1273->mode = ucontrol->value.integer.value[0]; in snd_wl1273_set_audio_route() 215 struct snd_ctl_elem_value *ucontrol) in snd_wl1273_fm_audio_get() argument 222 ucontrol->value.integer.value[0] = wl1273->core->audio_mode; in snd_wl1273_fm_audio_get() 228 struct snd_ctl_elem_value *ucontrol) in snd_wl1273_fm_audio_put() argument [all …]
|
D | twl4030.c | 840 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_volsw_twl4030() argument 851 ucontrol->value.integer.value[0] = in snd_soc_get_volsw_twl4030() 853 if (ucontrol->value.integer.value[0]) in snd_soc_get_volsw_twl4030() 854 ucontrol->value.integer.value[0] = in snd_soc_get_volsw_twl4030() 855 max + 1 - ucontrol->value.integer.value[0]; in snd_soc_get_volsw_twl4030() 858 ucontrol->value.integer.value[1] = in snd_soc_get_volsw_twl4030() 860 if (ucontrol->value.integer.value[1]) in snd_soc_get_volsw_twl4030() 861 ucontrol->value.integer.value[1] = in snd_soc_get_volsw_twl4030() 862 max + 1 - ucontrol->value.integer.value[1]; in snd_soc_get_volsw_twl4030() 869 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_volsw_twl4030() argument [all …]
|
D | max9768.c | 44 struct snd_ctl_elem_value *ucontrol) in max9768_get_gpio() argument 50 ucontrol->value.integer.value[0] = !val; in max9768_get_gpio() 56 struct snd_ctl_elem_value *ucontrol) in max9768_set_gpio() argument 61 gpio_set_value_cansleep(max9768->mute_gpio, !ucontrol->value.integer.value[0]); in max9768_set_gpio()
|
D | tpa6130a2.c | 192 struct snd_ctl_elem_value *ucontrol) in tpa6130a2_get_volsw() argument 209 ucontrol->value.integer.value[0] = in tpa6130a2_get_volsw() 213 ucontrol->value.integer.value[0] = in tpa6130a2_get_volsw() 214 max - ucontrol->value.integer.value[0]; in tpa6130a2_get_volsw() 221 struct snd_ctl_elem_value *ucontrol) in tpa6130a2_put_volsw() argument 231 unsigned int val = (ucontrol->value.integer.value[0] & mask); in tpa6130a2_put_volsw()
|
D | cs42l51.c | 55 struct snd_ctl_elem_value *ucontrol) in cs42l51_get_chan_mix() argument 63 ucontrol->value.integer.value[0] = 0; in cs42l51_get_chan_mix() 68 ucontrol->value.integer.value[0] = 1; in cs42l51_get_chan_mix() 71 ucontrol->value.integer.value[0] = 2; in cs42l51_get_chan_mix() 83 struct snd_ctl_elem_value *ucontrol) in cs42l51_set_chan_mix() argument 88 switch (ucontrol->value.integer.value[0]) { in cs42l51_set_chan_mix()
|
D | da7219.c | 255 struct snd_ctl_elem_value *ucontrol) in da7219_volsw_locked_get() argument 262 ret = snd_soc_get_volsw(kcontrol, ucontrol); in da7219_volsw_locked_get() 269 struct snd_ctl_elem_value *ucontrol) in da7219_volsw_locked_put() argument 276 ret = snd_soc_put_volsw(kcontrol, ucontrol); in da7219_volsw_locked_put() 283 struct snd_ctl_elem_value *ucontrol) in da7219_enum_locked_get() argument 290 ret = snd_soc_get_enum_double(kcontrol, ucontrol); in da7219_enum_locked_get() 297 struct snd_ctl_elem_value *ucontrol) in da7219_enum_locked_put() argument 304 ret = snd_soc_put_enum_double(kcontrol, ucontrol); in da7219_enum_locked_put() 377 struct snd_ctl_elem_value *ucontrol) in da7219_mixin_gain_put() argument 383 ret = snd_soc_put_volsw(kcontrol, ucontrol); in da7219_mixin_gain_put() [all …]
|
D | wm8983.c | 128 struct snd_ctl_elem_value *ucontrol); 130 struct snd_ctl_elem_value *ucontrol); 493 struct snd_ctl_elem_value *ucontrol) in eqmode_get() argument 500 ucontrol->value.integer.value[0] = 1; in eqmode_get() 502 ucontrol->value.integer.value[0] = 0; in eqmode_get() 508 struct snd_ctl_elem_value *ucontrol) in eqmode_put() argument 514 if (ucontrol->value.integer.value[0] != 0 in eqmode_put() 515 && ucontrol->value.integer.value[0] != 1) in eqmode_put() 521 if (!ucontrol->value.integer.value[0]) in eqmode_put() 525 if (ucontrol->value.integer.value[0]) in eqmode_put() [all …]
|
D | wm8985.c | 209 struct snd_ctl_elem_value *ucontrol); 211 struct snd_ctl_elem_value *ucontrol); 527 struct snd_ctl_elem_value *ucontrol) in eqmode_get() argument 534 ucontrol->value.integer.value[0] = 1; in eqmode_get() 536 ucontrol->value.integer.value[0] = 0; in eqmode_get() 542 struct snd_ctl_elem_value *ucontrol) in eqmode_put() argument 548 if (ucontrol->value.integer.value[0] != 0 in eqmode_put() 549 && ucontrol->value.integer.value[0] != 1) in eqmode_put() 555 if (!ucontrol->value.integer.value[0]) in eqmode_put() 559 if (ucontrol->value.integer.value[0]) in eqmode_put() [all …]
|
D | pcm1681.c | 121 struct snd_ctl_elem_value *ucontrol) in pcm1681_get_deemph() argument 126 ucontrol->value.integer.value[0] = priv->deemph; in pcm1681_get_deemph() 132 struct snd_ctl_elem_value *ucontrol) in pcm1681_put_deemph() argument 137 priv->deemph = ucontrol->value.integer.value[0]; in pcm1681_put_deemph()
|
D | twl6040.c | 336 struct snd_ctl_elem_value *ucontrol) in twl6040_soc_dapm_put_vibra_enum() argument 347 return snd_soc_dapm_put_enum_double(kcontrol, ucontrol); in twl6040_soc_dapm_put_vibra_enum() 485 struct snd_ctl_elem_value *ucontrol) in twl6040_headset_power_get_enum() argument 490 ucontrol->value.enumerated.item[0] = priv->hs_power_mode; in twl6040_headset_power_get_enum() 496 struct snd_ctl_elem_value *ucontrol) in twl6040_headset_power_put_enum() argument 500 int high_perf = ucontrol->value.enumerated.item[0]; in twl6040_headset_power_put_enum() 513 struct snd_ctl_elem_value *ucontrol) in twl6040_pll_get_enum() argument 518 ucontrol->value.enumerated.item[0] = priv->pll_power_mode; in twl6040_pll_get_enum() 524 struct snd_ctl_elem_value *ucontrol) in twl6040_pll_put_enum() argument 529 priv->pll_power_mode = ucontrol->value.enumerated.item[0]; in twl6040_pll_put_enum()
|
D | 88pm860x-codec.c | 271 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_volsw_2r_st() argument 287 ucontrol->value.integer.value[0] = i; in snd_soc_get_volsw_2r_st() 289 ucontrol->value.integer.value[1] = i; in snd_soc_get_volsw_2r_st() 295 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_volsw_2r_st() argument 305 val = ucontrol->value.integer.value[0]; in snd_soc_put_volsw_2r_st() 306 val2 = ucontrol->value.integer.value[1]; in snd_soc_put_volsw_2r_st() 328 struct snd_ctl_elem_value *ucontrol) in snd_soc_get_volsw_2r_out() argument 341 ucontrol->value.integer.value[0] = (max - val) & mask; in snd_soc_get_volsw_2r_out() 342 ucontrol->value.integer.value[1] = (max - val2) & mask; in snd_soc_get_volsw_2r_out() 348 struct snd_ctl_elem_value *ucontrol) in snd_soc_put_volsw_2r_out() argument [all …]
|
D | wm2000.c | 608 struct snd_ctl_elem_value *ucontrol) in wm2000_anc_mode_get() argument 613 ucontrol->value.integer.value[0] = wm2000->anc_active; in wm2000_anc_mode_get() 619 struct snd_ctl_elem_value *ucontrol) in wm2000_anc_mode_put() argument 623 unsigned int anc_active = ucontrol->value.integer.value[0]; in wm2000_anc_mode_put() 641 struct snd_ctl_elem_value *ucontrol) in wm2000_speaker_get() argument 646 ucontrol->value.integer.value[0] = wm2000->spk_ena; in wm2000_speaker_get() 652 struct snd_ctl_elem_value *ucontrol) in wm2000_speaker_put() argument 656 unsigned int val = ucontrol->value.integer.value[0]; in wm2000_speaker_put()
|
D | max98095.c | 354 struct snd_ctl_elem_value *ucontrol) in max98095_mic1pre_set() argument 358 unsigned int sel = ucontrol->value.integer.value[0]; in max98095_mic1pre_set() 368 struct snd_ctl_elem_value *ucontrol) in max98095_mic1pre_get() argument 373 ucontrol->value.integer.value[0] = max98095->mic1pre; in max98095_mic1pre_get() 378 struct snd_ctl_elem_value *ucontrol) in max98095_mic2pre_set() argument 382 unsigned int sel = ucontrol->value.integer.value[0]; in max98095_mic2pre_set() 392 struct snd_ctl_elem_value *ucontrol) in max98095_mic2pre_get() argument 397 ucontrol->value.integer.value[0] = max98095->mic2pre; in max98095_mic2pre_get() 1495 struct snd_ctl_elem_value *ucontrol) in max98095_put_eq_enum() argument 1502 unsigned int sel = ucontrol->value.integer.value[0]; in max98095_put_eq_enum() [all …]
|
D | max98088.c | 381 struct snd_ctl_elem_value *ucontrol) in max98088_mic1pre_set() argument 385 unsigned int sel = ucontrol->value.integer.value[0]; in max98088_mic1pre_set() 395 struct snd_ctl_elem_value *ucontrol) in max98088_mic1pre_get() argument 400 ucontrol->value.integer.value[0] = max98088->mic1pre; in max98088_mic1pre_get() 405 struct snd_ctl_elem_value *ucontrol) in max98088_mic2pre_set() argument 409 unsigned int sel = ucontrol->value.integer.value[0]; in max98088_mic2pre_set() 419 struct snd_ctl_elem_value *ucontrol) in max98088_mic2pre_get() argument 424 ucontrol->value.integer.value[0] = max98088->mic2pre; in max98088_mic2pre_get() 1492 struct snd_ctl_elem_value *ucontrol) in max98088_put_eq_enum() argument 1499 int sel = ucontrol->value.integer.value[0]; in max98088_put_eq_enum() [all …]
|
D | wm8904.c | 394 struct snd_ctl_elem_value *ucontrol) in wm8904_put_drc_enum() argument 399 int value = ucontrol->value.integer.value[0]; in wm8904_put_drc_enum() 412 struct snd_ctl_elem_value *ucontrol) in wm8904_get_drc_enum() argument 417 ucontrol->value.enumerated.item[0] = wm8904->drc_cfg; in wm8904_get_drc_enum() 465 struct snd_ctl_elem_value *ucontrol) in wm8904_put_retune_mobile_enum() argument 470 int value = ucontrol->value.integer.value[0]; in wm8904_put_retune_mobile_enum() 483 struct snd_ctl_elem_value *ucontrol) in wm8904_get_retune_mobile_enum() argument 488 ucontrol->value.enumerated.item[0] = wm8904->retune_mobile_cfg; in wm8904_get_retune_mobile_enum() 523 struct snd_ctl_elem_value *ucontrol) in wm8904_get_deemph() argument 528 ucontrol->value.integer.value[0] = wm8904->deemph; in wm8904_get_deemph() [all …]
|
D | pcm512x.c | 230 struct snd_ctl_elem_value *ucontrol) in pcm512x_overclock_pll_get() argument 235 ucontrol->value.integer.value[0] = pcm512x->overclock_pll; in pcm512x_overclock_pll_get() 240 struct snd_ctl_elem_value *ucontrol) in pcm512x_overclock_pll_put() argument 253 pcm512x->overclock_pll = ucontrol->value.integer.value[0]; in pcm512x_overclock_pll_put() 258 struct snd_ctl_elem_value *ucontrol) in pcm512x_overclock_dsp_get() argument 263 ucontrol->value.integer.value[0] = pcm512x->overclock_dsp; in pcm512x_overclock_dsp_get() 268 struct snd_ctl_elem_value *ucontrol) in pcm512x_overclock_dsp_put() argument 281 pcm512x->overclock_dsp = ucontrol->value.integer.value[0]; in pcm512x_overclock_dsp_put() 286 struct snd_ctl_elem_value *ucontrol) in pcm512x_overclock_dac_get() argument 291 ucontrol->value.integer.value[0] = pcm512x->overclock_dac; in pcm512x_overclock_dac_get() [all …]
|
D | adau17x1.c | 155 struct snd_ctl_elem_value *ucontrol) in adau17x1_dsp_mux_enum_put() argument 166 if (ucontrol->value.enumerated.item[0] >= e->items) in adau17x1_dsp_mux_enum_put() 169 switch (ucontrol->value.enumerated.item[0]) { in adau17x1_dsp_mux_enum_put() 193 ucontrol->value.enumerated.item[0], e, &update); in adau17x1_dsp_mux_enum_put() 200 struct snd_ctl_elem_value *ucontrol) in adau17x1_dsp_mux_enum_get() argument 220 ucontrol->value.enumerated.item[0] = val; in adau17x1_dsp_mux_enum_get()
|
D | wm9712.c | 181 struct snd_ctl_elem_value *ucontrol) in wm9712_hp_mixer_put() argument 186 unsigned int val = ucontrol->value.integer.value[0]; in wm9712_hp_mixer_put() 199 if (ucontrol->value.integer.value[0]) in wm9712_hp_mixer_put() 225 struct snd_ctl_elem_value *ucontrol) in wm9712_hp_mixer_get() argument 237 ucontrol->value.integer.value[0] = in wm9712_hp_mixer_get()
|
D | wm8350.c | 300 struct snd_ctl_elem_value *ucontrol) in wm8350_put_volsw_2r_vu() argument 326 out->left_vol = ucontrol->value.integer.value[0]; in wm8350_put_volsw_2r_vu() 327 out->right_vol = ucontrol->value.integer.value[1]; in wm8350_put_volsw_2r_vu() 332 ret = snd_soc_put_volsw(kcontrol, ucontrol); in wm8350_put_volsw_2r_vu() 343 struct snd_ctl_elem_value *ucontrol) in wm8350_get_volsw_2r() argument 356 ucontrol->value.integer.value[0] = out1->left_vol; in wm8350_get_volsw_2r() 357 ucontrol->value.integer.value[1] = out1->right_vol; in wm8350_get_volsw_2r() 361 ucontrol->value.integer.value[0] = out2->left_vol; in wm8350_get_volsw_2r() 362 ucontrol->value.integer.value[1] = out2->right_vol; in wm8350_get_volsw_2r() 369 return snd_soc_get_volsw(kcontrol, ucontrol); in wm8350_get_volsw_2r()
|
D | tlv320aic23.c | 83 struct snd_ctl_elem_value *ucontrol) in snd_soc_tlv320aic23_put_volsw() argument 88 val = (ucontrol->value.integer.value[0] & 0x07); in snd_soc_tlv320aic23_put_volsw() 106 struct snd_ctl_elem_value *ucontrol) in snd_soc_tlv320aic23_get_volsw() argument 114 ucontrol->value.integer.value[0] = val; in snd_soc_tlv320aic23_get_volsw()
|
D | ak4641.c | 75 struct snd_ctl_elem_value *ucontrol) in ak4641_put_deemph() argument 79 int deemph = ucontrol->value.integer.value[0]; in ak4641_put_deemph() 90 struct snd_ctl_elem_value *ucontrol) in ak4641_get_deemph() argument 95 ucontrol->value.integer.value[0] = ak4641->deemph; in ak4641_get_deemph()
|
D | cs4270.c | 439 struct snd_ctl_elem_value *ucontrol) in cs4270_soc_put_mute() argument 443 int left = !ucontrol->value.integer.value[0]; in cs4270_soc_put_mute() 444 int right = !ucontrol->value.integer.value[1]; in cs4270_soc_put_mute() 449 return snd_soc_put_volsw(kcontrol, ucontrol); in cs4270_soc_put_mute()
|
D | sta32x.c | 271 struct snd_ctl_elem_value *ucontrol) in sta32x_coefficient_get() argument 303 ucontrol->value.bytes.data[i] = val; in sta32x_coefficient_get() 313 struct snd_ctl_elem_value *ucontrol) in sta32x_coefficient_put() argument 334 (ucontrol->value.bytes.data[3 * i] << 16) in sta32x_coefficient_put() 335 | (ucontrol->value.bytes.data[3 * i + 1] << 8) in sta32x_coefficient_put() 336 | (ucontrol->value.bytes.data[3 * i + 2]); in sta32x_coefficient_put() 339 ucontrol->value.bytes.data[i]); in sta32x_coefficient_put()
|
D | cs4271.c | 284 struct snd_ctl_elem_value *ucontrol) in cs4271_get_deemph() argument 289 ucontrol->value.integer.value[0] = cs4271->deemph; in cs4271_get_deemph() 294 struct snd_ctl_elem_value *ucontrol) in cs4271_put_deemph() argument 299 cs4271->deemph = ucontrol->value.integer.value[0]; in cs4271_put_deemph()
|
D | da7210.c | 332 struct snd_ctl_elem_value *ucontrol) in da7210_put_alc_sw() argument 336 if (ucontrol->value.integer.value[0]) { in da7210_put_alc_sw() 345 return snd_soc_put_volsw(kcontrol, ucontrol); in da7210_put_alc_sw() 355 struct snd_ctl_elem_value *ucontrol) in da7210_put_noise_sup_sw() argument 360 if (ucontrol->value.integer.value[0]) { in da7210_put_noise_sup_sw() 387 return snd_soc_put_volsw(kcontrol, ucontrol); in da7210_put_noise_sup_sw()
|
D | sta350.c | 310 struct snd_ctl_elem_value *ucontrol) in sta350_coefficient_get() argument 342 ucontrol->value.bytes.data[i] = val; in sta350_coefficient_get() 352 struct snd_ctl_elem_value *ucontrol) in sta350_coefficient_put() argument 373 (ucontrol->value.bytes.data[3 * i] << 16) in sta350_coefficient_put() 374 | (ucontrol->value.bytes.data[3 * i + 1] << 8) in sta350_coefficient_put() 375 | (ucontrol->value.bytes.data[3 * i + 2]); in sta350_coefficient_put() 378 ucontrol->value.bytes.data[i]); in sta350_coefficient_put()
|
D | es8328.c | 127 struct snd_ctl_elem_value *ucontrol) in es8328_get_deemph() argument 132 ucontrol->value.integer.value[0] = es8328->deemph; in es8328_get_deemph() 137 struct snd_ctl_elem_value *ucontrol) in es8328_put_deemph() argument 141 unsigned int deemph = ucontrol->value.integer.value[0]; in es8328_put_deemph()
|
D | ab8500-codec.c | 1127 struct snd_ctl_elem_value *ucontrol) in sid_status_control_get() argument 1133 ucontrol->value.integer.value[0] = drvdata->sid_status; in sid_status_control_get() 1141 struct snd_ctl_elem_value *ucontrol) in sid_status_control_put() argument 1150 if (ucontrol->value.integer.value[0] != SID_APPLY_FIR) { in sid_status_control_put() 1196 struct snd_ctl_elem_value *ucontrol) in anc_status_control_get() argument 1202 ucontrol->value.integer.value[0] = drvdata->anc_status; in anc_status_control_get() 1209 struct snd_ctl_elem_value *ucontrol) in anc_status_control_put() argument 1223 req = ucontrol->value.integer.value[0]; in anc_status_control_put() 1292 struct snd_ctl_elem_value *ucontrol) in filter_control_get() argument 1302 ucontrol->value.integer.value[i] = fc->value[i]; in filter_control_get() [all …]
|
D | wm5102.c | 661 struct snd_ctl_elem_value *ucontrol) in wm5102_out_comp_coeff_get() argument 668 ucontrol->value.bytes.data); in wm5102_out_comp_coeff_get() 675 struct snd_ctl_elem_value *ucontrol) in wm5102_out_comp_coeff_put() argument 681 memcpy(&arizona->dac_comp_coeff, ucontrol->value.bytes.data, in wm5102_out_comp_coeff_put() 690 struct snd_ctl_elem_value *ucontrol) in wm5102_out_comp_switch_get() argument 696 ucontrol->value.integer.value[0] = arizona->dac_comp_enabled; in wm5102_out_comp_switch_get() 703 struct snd_ctl_elem_value *ucontrol) in wm5102_out_comp_switch_put() argument 709 arizona->dac_comp_enabled = ucontrol->value.integer.value[0]; in wm5102_out_comp_switch_put()
|
D | wm_hubs.c | 335 struct snd_ctl_elem_value *ucontrol) in wm8993_put_dc_servo() argument 341 ret = snd_soc_put_volsw(kcontrol, ucontrol); in wm8993_put_dc_servo() 698 struct snd_ctl_elem_value *ucontrol) in class_w_put_volsw() argument 703 ret = snd_soc_dapm_put_volsw(kcontrol, ucontrol); in class_w_put_volsw() 718 struct snd_ctl_elem_value *ucontrol) in class_w_put_double() argument 723 ret = snd_soc_dapm_put_enum_double(kcontrol, ucontrol); in class_w_put_double()
|
D | wm9081.c | 340 struct snd_ctl_elem_value *ucontrol) in speaker_mode_get() argument 347 ucontrol->value.integer.value[0] = 1; in speaker_mode_get() 349 ucontrol->value.integer.value[0] = 0; in speaker_mode_get() 361 struct snd_ctl_elem_value *ucontrol) in speaker_mode_put() argument 368 if (ucontrol->value.integer.value[0] == in speaker_mode_put() 376 if (ucontrol->value.integer.value[0]) { in speaker_mode_put()
|
D | wm8731.c | 120 struct snd_ctl_elem_value *ucontrol) in wm8731_get_deemph() argument 125 ucontrol->value.integer.value[0] = wm8731->deemph; in wm8731_get_deemph() 131 struct snd_ctl_elem_value *ucontrol) in wm8731_put_deemph() argument 135 unsigned int deemph = ucontrol->value.integer.value[0]; in wm8731_put_deemph()
|
D | wm_adsp.c | 229 struct snd_ctl_elem_value *ucontrol); 231 struct snd_ctl_elem_value *ucontrol); 422 struct snd_ctl_elem_value *ucontrol) in wm_adsp_fw_get() argument 428 ucontrol->value.integer.value[0] = dsp[e->shift_l].fw; in wm_adsp_fw_get() 434 struct snd_ctl_elem_value *ucontrol) in wm_adsp_fw_put() argument 440 if (ucontrol->value.integer.value[0] == dsp[e->shift_l].fw) in wm_adsp_fw_put() 443 if (ucontrol->value.integer.value[0] >= WM_ADSP_NUM_FW) in wm_adsp_fw_put() 449 dsp[e->shift_l].fw = ucontrol->value.integer.value[0]; in wm_adsp_fw_put() 576 struct snd_ctl_elem_value *ucontrol) in wm_coeff_put() argument 579 char *p = ucontrol->value.bytes.data; in wm_coeff_put() [all …]
|
D | sigmadsp.c | 130 struct snd_ctl_elem_value *ucontrol) in sigmadsp_ctrl_put() argument 139 data = ucontrol->value.bytes.data; in sigmadsp_ctrl_put() 155 struct snd_ctl_elem_value *ucontrol) in sigmadsp_ctrl_get() argument 170 memcpy(ucontrol->value.bytes.data, ctrl->cache, in sigmadsp_ctrl_get()
|
D | adav80x.c | 316 struct snd_ctl_elem_value *ucontrol) in adav80x_put_deemph() argument 320 unsigned int deemph = ucontrol->value.integer.value[0]; in adav80x_put_deemph() 331 struct snd_ctl_elem_value *ucontrol) in adav80x_get_deemph() argument 336 ucontrol->value.integer.value[0] = adav80x->deemph; in adav80x_get_deemph()
|
D | wm8955.c | 391 struct snd_ctl_elem_value *ucontrol) in wm8955_get_deemph() argument 396 ucontrol->value.integer.value[0] = wm8955->deemph; in wm8955_get_deemph() 401 struct snd_ctl_elem_value *ucontrol) in wm8955_put_deemph() argument 405 unsigned int deemph = ucontrol->value.integer.value[0]; in wm8955_put_deemph()
|
D | tas5086.c | 283 struct snd_ctl_elem_value *ucontrol) in tas5086_get_deemph() argument 288 ucontrol->value.integer.value[0] = priv->deemph; in tas5086_get_deemph() 294 struct snd_ctl_elem_value *ucontrol) in tas5086_put_deemph() argument 299 priv->deemph = ucontrol->value.integer.value[0]; in tas5086_put_deemph()
|
D | sgtl5000.c | 327 struct snd_ctl_elem_value *ucontrol) in dac_get_volsw() argument 350 ucontrol->value.integer.value[0] = l; in dac_get_volsw() 351 ucontrol->value.integer.value[1] = r; in dac_get_volsw() 380 struct snd_ctl_elem_value *ucontrol) in dac_put_volsw() argument 387 l = ucontrol->value.integer.value[0]; in dac_put_volsw() 388 r = ucontrol->value.integer.value[1]; in dac_put_volsw()
|
D | wm8903.c | 365 struct snd_ctl_elem_value *ucontrol) in wm8903_class_w_put() argument 375 if (ucontrol->value.integer.value[0]) { in wm8903_class_w_put() 385 ret = snd_soc_dapm_put_volsw(kcontrol, ucontrol); in wm8903_class_w_put() 388 if (!ucontrol->value.integer.value[0]) { in wm8903_class_w_put() 440 struct snd_ctl_elem_value *ucontrol) in wm8903_get_deemph() argument 445 ucontrol->value.integer.value[0] = wm8903->deemph; in wm8903_get_deemph() 451 struct snd_ctl_elem_value *ucontrol) in wm8903_put_deemph() argument 455 unsigned int deemph = ucontrol->value.integer.value[0]; in wm8903_put_deemph()
|
D | tlv320dac33.c | 444 struct snd_ctl_elem_value *ucontrol) in dac33_get_fifo_mode() argument 449 ucontrol->value.integer.value[0] = dac33->fifo_mode; in dac33_get_fifo_mode() 455 struct snd_ctl_elem_value *ucontrol) in dac33_set_fifo_mode() argument 461 if (dac33->fifo_mode == ucontrol->value.integer.value[0]) in dac33_set_fifo_mode() 467 if (ucontrol->value.integer.value[0] < 0 || in dac33_set_fifo_mode() 468 ucontrol->value.integer.value[0] >= DAC33_FIFO_LAST_MODE) in dac33_set_fifo_mode() 471 dac33->fifo_mode = ucontrol->value.integer.value[0]; in dac33_set_fifo_mode()
|
D | arizona.h | 256 struct snd_ctl_elem_value *ucontrol); 258 struct snd_ctl_elem_value *ucontrol);
|
D | wm8804.c | 75 struct snd_ctl_elem_value *ucontrol); 162 struct snd_ctl_elem_value *ucontrol) in txsrc_put() argument 167 unsigned int val = ucontrol->value.enumerated.item[0] << e->shift_l; in txsrc_put()
|
D | wm9713.c | 255 struct snd_ctl_elem_value *ucontrol) in wm9713_hp_mixer_put() argument 260 unsigned int val = ucontrol->value.integer.value[0]; in wm9713_hp_mixer_put() 273 if (ucontrol->value.integer.value[0]) in wm9713_hp_mixer_put() 299 struct snd_ctl_elem_value *ucontrol) in wm9713_hp_mixer_get() argument 311 ucontrol->value.integer.value[0] = in wm9713_hp_mixer_get()
|
D | wm8998.c | 105 struct snd_ctl_elem_value *ucontrol) in wm8998_in1mux_put() argument 115 mux = ucontrol->value.enumerated.item[0]; in wm8998_in1mux_put() 157 ucontrol->value.enumerated.item[0], in wm8998_in1mux_put() 162 struct snd_ctl_elem_value *ucontrol) in wm8998_in2mux_put() argument 171 mux = ucontrol->value.enumerated.item[0]; in wm8998_in2mux_put() 193 ucontrol->value.enumerated.item[0], in wm8998_in2mux_put()
|
D | wm8753.c | 231 struct snd_ctl_elem_value *ucontrol) in wm8753_get_dai() argument 236 ucontrol->value.integer.value[0] = wm8753->dai_func; in wm8753_get_dai() 241 struct snd_ctl_elem_value *ucontrol) in wm8753_set_dai() argument 247 if (wm8753->dai_func == ucontrol->value.integer.value[0]) in wm8753_set_dai() 255 wm8753->dai_func = ucontrol->value.integer.value[0]; in wm8753_set_dai()
|
D | da732x.c | 332 struct snd_ctl_elem_value *ucontrol) in da732x_hpf_set() argument 337 unsigned int sel = ucontrol->value.integer.value[0]; in da732x_hpf_set() 360 struct snd_ctl_elem_value *ucontrol) in da732x_hpf_get() argument 371 ucontrol->value.integer.value[0] = DA732X_HPF_VOICE; in da732x_hpf_get() 374 ucontrol->value.integer.value[0] = DA732X_HPF_MUSIC; in da732x_hpf_get() 377 ucontrol->value.integer.value[0] = DA732X_HPF_DISABLED; in da732x_hpf_get()
|
D | da7213.c | 344 struct snd_ctl_elem_value *ucontrol) in da7213_put_mixin_gain() argument 350 ret = snd_soc_put_volsw_2r(kcontrol, ucontrol); in da7213_put_mixin_gain() 360 struct snd_ctl_elem_value *ucontrol) in da7213_put_alc_sw() argument 366 if (ucontrol->value.integer.value[0] || in da7213_put_alc_sw() 367 ucontrol->value.integer.value[1]) { in da7213_put_alc_sw() 376 return snd_soc_put_volsw(kcontrol, ucontrol); in da7213_put_alc_sw()
|
D | wm5110.c | 375 struct snd_ctl_elem_value *ucontrol) in wm5110_put_dre() argument 384 unsigned int lnew = (!!ucontrol->value.integer.value[0]) << mc->shift; in wm5110_put_dre() 385 unsigned int rnew = (!!ucontrol->value.integer.value[1]) << mc->rshift; in wm5110_put_dre() 436 struct snd_ctl_elem_value *ucontrol) in wm5110_in_pga_get() argument 449 ret = snd_soc_get_volsw_range(kcontrol, ucontrol); in wm5110_in_pga_get() 457 struct snd_ctl_elem_value *ucontrol) in wm5110_in_pga_put() argument 470 ret = snd_soc_put_volsw_range(kcontrol, ucontrol); in wm5110_in_pga_put()
|
D | wm8960.c | 190 struct snd_ctl_elem_value *ucontrol) in wm8960_get_deemph() argument 195 ucontrol->value.integer.value[0] = wm8960->deemph; in wm8960_get_deemph() 200 struct snd_ctl_elem_value *ucontrol) in wm8960_put_deemph() argument 204 unsigned int deemph = ucontrol->value.integer.value[0]; in wm8960_put_deemph()
|
/linux-4.4.14/sound/pci/hda/ |
D | dell_wmi_helper.c | 16 struct snd_ctl_elem_value *ucontrol) in update_dell_wmi_micmute_led() argument 19 dell_old_cap_hook(codec, kcontrol, ucontrol); in update_dell_wmi_micmute_led() 21 if (!ucontrol || !dell_led_set_func) in update_dell_wmi_micmute_led() 23 if (strcmp("Capture Switch", ucontrol->id.name) == 0 && ucontrol->id.index == 0) { in update_dell_wmi_micmute_led() 25 int val = (ucontrol->value.integer.value[0] || ucontrol->value.integer.value[1]) ? 0 : 1; in update_dell_wmi_micmute_led()
|
D | thinkpad_helper.c | 43 struct snd_ctl_elem_value *ucontrol) in update_tpacpi_micmute_led() argument 45 if (!ucontrol || !led_set_func) in update_tpacpi_micmute_led() 47 if (strcmp("Capture Switch", ucontrol->id.name) == 0 && ucontrol->id.index == 0) { in update_tpacpi_micmute_led() 49 bool val = ucontrol->value.integer.value[0] || ucontrol->value.integer.value[1]; in update_tpacpi_micmute_led()
|
D | hda_beep.c | 309 struct snd_ctl_elem_value *ucontrol) in snd_hda_mixer_amp_switch_get_beep() argument 314 ucontrol->value.integer.value[0] = in snd_hda_mixer_amp_switch_get_beep() 315 ucontrol->value.integer.value[1] = beep->enabled; in snd_hda_mixer_amp_switch_get_beep() 318 return snd_hda_mixer_amp_switch_get(kcontrol, ucontrol); in snd_hda_mixer_amp_switch_get_beep() 328 struct snd_ctl_elem_value *ucontrol) in snd_hda_mixer_amp_switch_put_beep() argument 335 long *valp = ucontrol->value.integer.value; in snd_hda_mixer_amp_switch_put_beep() 346 return snd_hda_mixer_amp_switch_put(kcontrol, ucontrol); in snd_hda_mixer_amp_switch_put_beep()
|
D | hda_codec.c | 1364 struct snd_ctl_elem_value *ucontrol) in snd_hda_mixer_amp_volume_get() argument 1372 long *valp = ucontrol->value.integer.value; in snd_hda_mixer_amp_volume_get() 1391 struct snd_ctl_elem_value *ucontrol) in snd_hda_mixer_amp_volume_put() argument 1399 long *valp = ucontrol->value.integer.value; in snd_hda_mixer_amp_volume_put() 1770 struct snd_ctl_elem_value *ucontrol; in put_kctl_with_value() local 1771 ucontrol = kzalloc(sizeof(*ucontrol), GFP_KERNEL); in put_kctl_with_value() 1772 if (!ucontrol) in put_kctl_with_value() 1774 ucontrol->value.integer.value[0] = val; in put_kctl_with_value() 1775 ucontrol->value.integer.value[1] = val; in put_kctl_with_value() 1776 kctl->put(kctl, ucontrol); in put_kctl_with_value() [all …]
|
D | patch_conexant.c | 318 struct snd_ctl_elem_value *ucontrol) in cxt_update_headset_mode_hook() argument 472 struct snd_ctl_elem_value *ucontrol) in olpc_xo_dc_mode_get() argument 476 ucontrol->value.integer.value[0] = spec->dc_enable; in olpc_xo_dc_mode_get() 481 struct snd_ctl_elem_value *ucontrol) in olpc_xo_dc_mode_put() argument 485 int dc_enable = !!ucontrol->value.integer.value[0]; in olpc_xo_dc_mode_put() 497 struct snd_ctl_elem_value *ucontrol) in olpc_xo_dc_bias_enum_get() argument 501 ucontrol->value.enumerated.item[0] = spec->dc_input_bias; in olpc_xo_dc_bias_enum_get() 512 struct snd_ctl_elem_value *ucontrol) in olpc_xo_dc_bias_enum_put() argument 519 idx = ucontrol->value.enumerated.item[0]; in olpc_xo_dc_bias_enum_put() 553 struct snd_ctl_elem_value *ucontrol) in olpc_xo_mic_boost_put() argument [all …]
|
D | hda_local.h | 112 struct snd_ctl_elem_value *ucontrol); 114 struct snd_ctl_elem_value *ucontrol); 120 struct snd_ctl_elem_value *ucontrol); 122 struct snd_ctl_elem_value *ucontrol); 125 struct snd_ctl_elem_value *ucontrol); 127 struct snd_ctl_elem_value *ucontrol); 194 struct snd_ctl_elem_value *ucontrol); 196 struct snd_ctl_elem_value *ucontrol); 217 struct snd_ctl_elem_value *ucontrol); 219 struct snd_ctl_elem_value *ucontrol); [all …]
|
D | patch_via.c | 241 struct snd_ctl_elem_value *ucontrol) in via_pin_power_ctl_get() argument 246 ucontrol->value.enumerated.item[0] = spec->gen.power_down_unused; in via_pin_power_ctl_get() 251 struct snd_ctl_elem_value *ucontrol) in via_pin_power_ctl_put() argument 255 bool val = !!ucontrol->value.enumerated.item[0]; in via_pin_power_ctl_put() 520 struct snd_ctl_elem_value *ucontrol) in vt1708_jack_detect_get() argument 527 ucontrol->value.integer.value[0] = spec->vt1708_jack_detect; in vt1708_jack_detect_get() 532 struct snd_ctl_elem_value *ucontrol) in vt1708_jack_detect_put() argument 540 val = !!ucontrol->value.integer.value[0]; in vt1708_jack_detect_put() 932 struct snd_ctl_elem_value *ucontrol) in vt1716s_dmic_get() argument 940 *ucontrol->value.integer.value = index; in vt1716s_dmic_get() [all …]
|
D | hda_generic.c | 964 struct snd_ctl_elem_value *ucontrol); 966 struct snd_ctl_elem_value *ucontrol); 1098 struct snd_ctl_elem_value *ucontrol) in sync_auto_mute_bits() argument 1106 ucontrol->value.integer.value[0] &= enabled; in sync_auto_mute_bits() 1107 ucontrol->value.integer.value[1] &= enabled; in sync_auto_mute_bits() 1112 struct snd_ctl_elem_value *ucontrol) in hda_gen_mixer_mute_put() argument 1114 sync_auto_mute_bits(kcontrol, ucontrol); in hda_gen_mixer_mute_put() 1115 return snd_hda_mixer_amp_switch_put(kcontrol, ucontrol); in hda_gen_mixer_mute_put() 1119 struct snd_ctl_elem_value *ucontrol) in hda_gen_bind_mute_put() argument 1121 sync_auto_mute_bits(kcontrol, ucontrol); in hda_gen_bind_mute_put() [all …]
|
D | patch_cirrus.c | 52 struct snd_ctl_elem_value *ucontrol); 709 struct snd_ctl_elem_value *ucontrol) in cs4208_spdif_sw_put() argument 714 int pinctl = ucontrol->value.integer.value[0] ? PIN_OUT : 0; in cs4208_spdif_sw_put() 717 return spec->spdif_sw_put(kcontrol, ucontrol); in cs4208_spdif_sw_put() 957 struct snd_ctl_elem_value *ucontrol) in cs421x_boost_vol_get() argument 961 ucontrol->value.integer.value[0] = in cs421x_boost_vol_get() 967 struct snd_ctl_elem_value *ucontrol) in cs421x_boost_vol_put() argument 971 unsigned int vol = ucontrol->value.integer.value[0]; in cs421x_boost_vol_put()
|
D | patch_analog.c | 480 struct snd_ctl_elem_value *ucontrol) in ad1983_auto_smux_enum_get() argument 485 ucontrol->value.enumerated.item[0] = spec->cur_smux; in ad1983_auto_smux_enum_get() 490 struct snd_ctl_elem_value *ucontrol) in ad1983_auto_smux_enum_put() argument 494 unsigned int val = ucontrol->value.enumerated.item[0]; in ad1983_auto_smux_enum_put() 755 struct snd_ctl_elem_value *ucontrol) in ad1988_auto_smux_enum_get() argument 760 ucontrol->value.enumerated.item[0] = spec->cur_smux; in ad1988_auto_smux_enum_get() 765 struct snd_ctl_elem_value *ucontrol) in ad1988_auto_smux_enum_put() argument 769 unsigned int val = ucontrol->value.enumerated.item[0]; in ad1988_auto_smux_enum_put()
|
D | patch_sigmatel.c | 336 struct snd_ctl_elem_value *ucontrol) in stac_capture_led_hook() argument 342 if (!kcontrol || !ucontrol) in stac_capture_led_hook() 345 mask = 1U << snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in stac_capture_led_hook() 347 if (ucontrol->value.integer.value[0] || in stac_capture_led_hook() 348 ucontrol->value.integer.value[1]) in stac_capture_led_hook() 595 struct snd_ctl_elem_value *ucontrol) in stac_aloopback_get() argument 598 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in stac_aloopback_get() 601 ucontrol->value.integer.value[0] = !!(spec->aloopback & in stac_aloopback_get() 607 struct snd_ctl_elem_value *ucontrol) in stac_aloopback_put() argument 611 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in stac_aloopback_put() [all …]
|
D | patch_ca0132.c | 2949 struct snd_ctl_elem_value *ucontrol) in tuning_ctl_get() argument 2954 long *valp = ucontrol->value.integer.value; in tuning_ctl_get() 2975 struct snd_ctl_elem_value *ucontrol) in voice_focus_ctl_put() argument 2980 long *valp = ucontrol->value.integer.value; in voice_focus_ctl_put() 3010 struct snd_ctl_elem_value *ucontrol) in mic_svm_ctl_put() argument 3015 long *valp = ucontrol->value.integer.value; in mic_svm_ctl_put() 3045 struct snd_ctl_elem_value *ucontrol) in equalizer_ctl_put() argument 3050 long *valp = ucontrol->value.integer.value; in equalizer_ctl_put() 3545 struct snd_ctl_elem_value *ucontrol) in ca0132_vnode_switch_set() argument 3592 ret = snd_hda_mixer_amp_switch_put(kcontrol, ucontrol); in ca0132_vnode_switch_set() [all …]
|
/linux-4.4.14/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 …]
|
D | cs8427.c | 371 struct snd_ctl_elem_value *ucontrol) in snd_cs8427_in_status_get() argument 381 ucontrol->value.integer.value[0] = data; in snd_cs8427_in_status_get() 394 struct snd_ctl_elem_value *ucontrol) in snd_cs8427_qsubcode_get() argument 407 err = snd_i2c_readbytes(device, ucontrol->value.bytes.data, 10); in snd_cs8427_qsubcode_get() 427 struct snd_ctl_elem_value *ucontrol) in snd_cs8427_spdif_get() argument 433 memcpy(ucontrol->value.iec958.status, chip->playback.def_status, 24); in snd_cs8427_spdif_get() 439 struct snd_ctl_elem_value *ucontrol) in snd_cs8427_spdif_put() argument 450 change = memcmp(ucontrol->value.iec958.status, status, 24) != 0; in snd_cs8427_spdif_put() 451 memcpy(status, ucontrol->value.iec958.status, 24); in snd_cs8427_spdif_put() 471 struct snd_ctl_elem_value *ucontrol) in snd_cs8427_spdif_mask_get() argument [all …]
|
/linux-4.4.14/sound/isa/cs423x/ |
D | cs4236_lib.c | 419 static int snd_cs4236_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_get_single() argument 429 ucontrol->value.integer.value[0] = (chip->eimage[CS4236_REG(reg)] >> shift) & mask; in snd_cs4236_get_single() 432 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_cs4236_get_single() 436 static int snd_cs4236_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_put_single() argument 447 val = (ucontrol->value.integer.value[0] & mask); in snd_cs4236_put_single() 465 …atic int snd_cs4236_get_singlec(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_get_singlec() argument 475 ucontrol->value.integer.value[0] = (chip->cimage[reg] >> shift) & mask; in snd_cs4236_get_singlec() 478 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_cs4236_get_singlec() 482 …atic int snd_cs4236_put_singlec(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_put_singlec() argument 493 val = (ucontrol->value.integer.value[0] & mask); in snd_cs4236_put_singlec() [all …]
|
/linux-4.4.14/sound/soc/pxa/ |
D | tosa.c | 96 struct snd_ctl_elem_value *ucontrol) in tosa_get_jack() argument 98 ucontrol->value.integer.value[0] = tosa_jack_func; in tosa_get_jack() 103 struct snd_ctl_elem_value *ucontrol) in tosa_set_jack() argument 107 if (tosa_jack_func == ucontrol->value.integer.value[0]) in tosa_set_jack() 110 tosa_jack_func = ucontrol->value.integer.value[0]; in tosa_set_jack() 116 struct snd_ctl_elem_value *ucontrol) in tosa_get_spk() argument 118 ucontrol->value.integer.value[0] = tosa_spk_func; in tosa_get_spk() 123 struct snd_ctl_elem_value *ucontrol) in tosa_set_spk() argument 127 if (tosa_spk_func == ucontrol->value.integer.value[0]) in tosa_set_spk() 130 tosa_spk_func = ucontrol->value.integer.value[0]; in tosa_set_spk()
|
D | poodle.c | 139 struct snd_ctl_elem_value *ucontrol) in poodle_get_jack() argument 141 ucontrol->value.integer.value[0] = poodle_jack_func; in poodle_get_jack() 146 struct snd_ctl_elem_value *ucontrol) in poodle_set_jack() argument 150 if (poodle_jack_func == ucontrol->value.integer.value[0]) in poodle_set_jack() 153 poodle_jack_func = ucontrol->value.integer.value[0]; in poodle_set_jack() 159 struct snd_ctl_elem_value *ucontrol) in poodle_get_spk() argument 161 ucontrol->value.integer.value[0] = poodle_spk_func; in poodle_get_spk() 166 struct snd_ctl_elem_value *ucontrol) in poodle_set_spk() argument 170 if (poodle_spk_func == ucontrol->value.integer.value[0]) in poodle_set_spk() 173 poodle_spk_func = ucontrol->value.integer.value[0]; in poodle_set_spk()
|
D | magician.c | 269 struct snd_ctl_elem_value *ucontrol) in magician_get_hp() argument 271 ucontrol->value.integer.value[0] = magician_hp_switch; in magician_get_hp() 276 struct snd_ctl_elem_value *ucontrol) in magician_set_hp() argument 280 if (magician_hp_switch == ucontrol->value.integer.value[0]) in magician_set_hp() 283 magician_hp_switch = ucontrol->value.integer.value[0]; in magician_set_hp() 289 struct snd_ctl_elem_value *ucontrol) in magician_get_spk() argument 291 ucontrol->value.integer.value[0] = magician_spk_switch; in magician_get_spk() 296 struct snd_ctl_elem_value *ucontrol) in magician_set_spk() argument 300 if (magician_spk_switch == ucontrol->value.integer.value[0]) in magician_set_spk() 303 magician_spk_switch = ucontrol->value.integer.value[0]; in magician_set_spk() [all …]
|
D | corgi.c | 164 struct snd_ctl_elem_value *ucontrol) in corgi_get_jack() argument 166 ucontrol->value.integer.value[0] = corgi_jack_func; in corgi_get_jack() 171 struct snd_ctl_elem_value *ucontrol) in corgi_set_jack() argument 175 if (corgi_jack_func == ucontrol->value.integer.value[0]) in corgi_set_jack() 178 corgi_jack_func = ucontrol->value.integer.value[0]; in corgi_set_jack() 184 struct snd_ctl_elem_value *ucontrol) in corgi_get_spk() argument 186 ucontrol->value.integer.value[0] = corgi_spk_func; in corgi_get_spk() 191 struct snd_ctl_elem_value *ucontrol) in corgi_set_spk() argument 195 if (corgi_spk_func == ucontrol->value.integer.value[0]) in corgi_set_spk() 198 corgi_spk_func = ucontrol->value.integer.value[0]; in corgi_set_spk()
|
D | spitz.c | 165 struct snd_ctl_elem_value *ucontrol) in spitz_get_jack() argument 167 ucontrol->value.integer.value[0] = spitz_jack_func; in spitz_get_jack() 172 struct snd_ctl_elem_value *ucontrol) in spitz_set_jack() argument 176 if (spitz_jack_func == ucontrol->value.integer.value[0]) in spitz_set_jack() 179 spitz_jack_func = ucontrol->value.integer.value[0]; in spitz_set_jack() 185 struct snd_ctl_elem_value *ucontrol) in spitz_get_spk() argument 187 ucontrol->value.integer.value[0] = spitz_spk_func; in spitz_get_spk() 192 struct snd_ctl_elem_value *ucontrol) in spitz_set_spk() argument 196 if (spitz_spk_func == ucontrol->value.integer.value[0]) in spitz_set_spk() 199 spitz_spk_func = ucontrol->value.integer.value[0]; in spitz_set_spk()
|
/linux-4.4.14/sound/pci/ac97/ |
D | ac97_patch.c | 92 …int ac97_surround_jack_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in ac97_surround_jack_mode_get() argument 96 ucontrol->value.enumerated.item[0] = ac97->indep_surround; in ac97_surround_jack_mode_get() 100 …int ac97_surround_jack_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in ac97_surround_jack_mode_put() argument 103 unsigned char indep = !!ucontrol->value.enumerated.item[0]; in ac97_surround_jack_mode_put() 121 static int ac97_channel_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in ac97_channel_mode_get() argument 125 ucontrol->value.enumerated.item[0] = ac97->channel_mode; in ac97_channel_mode_get() 129 static int ac97_channel_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in ac97_channel_mode_put() argument 132 unsigned char mode = ucontrol->value.enumerated.item[0]; in ac97_channel_mode_put() 241 struct snd_ctl_elem_value *ucontrol) in snd_ac97_ymf7x3_get_speaker() argument 250 ucontrol->value.enumerated.item[0] = val; in snd_ac97_ymf7x3_get_speaker() [all …]
|
D | ac97_codec.c | 472 struct snd_ctl_elem_value *ucontrol) in snd_ac97_get_enum_double() argument 481 ucontrol->value.enumerated.item[0] = (val >> e->shift_l) & (bitmask - 1); in snd_ac97_get_enum_double() 483 ucontrol->value.enumerated.item[1] = (val >> e->shift_r) & (bitmask - 1); in snd_ac97_get_enum_double() 489 struct snd_ctl_elem_value *ucontrol) in snd_ac97_put_enum_double() argument 498 if (ucontrol->value.enumerated.item[0] > e->mask - 1) in snd_ac97_put_enum_double() 500 val = ucontrol->value.enumerated.item[0] << e->shift_l; in snd_ac97_put_enum_double() 503 if (ucontrol->value.enumerated.item[1] > e->mask - 1) in snd_ac97_put_enum_double() 505 val |= ucontrol->value.enumerated.item[1] << e->shift_r; in snd_ac97_put_enum_double() 550 struct snd_ctl_elem_value *ucontrol) in snd_ac97_get_volsw() argument 561 ucontrol->value.integer.value[0] = (snd_ac97_read_cache(ac97, reg) >> shift) & mask; in snd_ac97_get_volsw() [all …]
|
D | ac97_patch.h | 74 struct snd_ctl_elem_value *ucontrol); 76 struct snd_ctl_elem_value *ucontrol); 93 struct snd_ctl_elem_value *ucontrol); 95 struct snd_ctl_elem_value *ucontrol);
|
/linux-4.4.14/sound/isa/gus/ |
D | gus_mixer.c | 40 static int snd_gf1_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_gf1_get_single() argument 46 ucontrol->value.integer.value[0] = (gus->mix_cntrl_reg >> shift) & 1; in snd_gf1_get_single() 48 ucontrol->value.integer.value[0] ^= 1; in snd_gf1_get_single() 52 static int snd_gf1_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_gf1_put_single() argument 61 nval = ucontrol->value.integer.value[0] & 1; in snd_gf1_put_single() 90 static int snd_ics_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ics_get_double() argument 101 ucontrol->value.integer.value[0] = left & 127; in snd_ics_get_double() 102 ucontrol->value.integer.value[1] = right & 127; in snd_ics_get_double() 106 static int snd_ics_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ics_put_double() argument 114 val1 = ucontrol->value.integer.value[0] & 127; in snd_ics_put_double() [all …]
|
D | gus_main.c | 61 static int snd_gus_joystick_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_gus_joystick_get() argument 65 ucontrol->value.integer.value[0] = gus->joystick_dac & 31; in snd_gus_joystick_get() 69 static int snd_gus_joystick_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_gus_joystick_put() argument 76 nval = ucontrol->value.integer.value[0] & 31; in snd_gus_joystick_put()
|
D | gus_pcm.c | 756 …atic int snd_gf1_pcm_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_gf1_pcm_volume_get() argument 762 ucontrol->value.integer.value[0] = gus->gf1.pcm_volume_level_left1; in snd_gf1_pcm_volume_get() 763 ucontrol->value.integer.value[1] = gus->gf1.pcm_volume_level_right1; in snd_gf1_pcm_volume_get() 768 …atic int snd_gf1_pcm_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_gf1_pcm_volume_put() argument 778 val1 = ucontrol->value.integer.value[0] & 127; in snd_gf1_pcm_volume_put() 779 val2 = ucontrol->value.integer.value[1] & 127; in snd_gf1_pcm_volume_put()
|
/linux-4.4.14/sound/isa/msnd/ |
D | msnd_pinnacle_mixer.c | 68 struct snd_ctl_elem_value *ucontrol) in snd_msndmix_get_mux() argument 72 ucontrol->value.enumerated.item[0] = 0; in snd_msndmix_get_mux() 75 ucontrol->value.enumerated.item[0] = 1; in snd_msndmix_get_mux() 78 ucontrol->value.enumerated.item[0] = 2; in snd_msndmix_get_mux() 120 struct snd_ctl_elem_value *ucontrol) in snd_msndmix_put_mux() argument 123 return snd_msndmix_set_mux(msnd, ucontrol->value.enumerated.item[0]); in snd_msndmix_put_mux() 138 struct snd_ctl_elem_value *ucontrol) in snd_msndmix_volume_get() argument 145 ucontrol->value.integer.value[0] = msnd->left_levels[addr] * 100; in snd_msndmix_volume_get() 146 ucontrol->value.integer.value[0] /= 0xFFFF; in snd_msndmix_volume_get() 147 ucontrol->value.integer.value[1] = msnd->right_levels[addr] * 100; in snd_msndmix_volume_get() [all …]
|
/linux-4.4.14/sound/i2c/other/ |
D | ak4117.c | 168 struct snd_ctl_elem_value *ucontrol) in snd_ak4117_in_error_get() argument 175 ucontrol->value.integer.value[0] = *ptr; in snd_ak4117_in_error_get() 184 struct snd_ctl_elem_value *ucontrol) in snd_ak4117_in_bit_get() argument 191 ucontrol->value.integer.value[0] = ((reg_read(chip, reg) & (1 << bit)) ? 1 : 0) ^ inv; in snd_ak4117_in_bit_get() 206 struct snd_ctl_elem_value *ucontrol) in snd_ak4117_rx_get() argument 210 ucontrol->value.integer.value[0] = (chip->regmap[AK4117_REG_IO] & AK4117_IPS) ? 1 : 0; in snd_ak4117_rx_get() 215 struct snd_ctl_elem_value *ucontrol) in snd_ak4117_rx_put() argument 223 change = !!ucontrol->value.integer.value[0] != ((old_val & AK4117_IPS) ? 1 : 0); in snd_ak4117_rx_put() 225 …reg_write(chip, AK4117_REG_IO, (old_val & ~AK4117_IPS) | (ucontrol->value.integer.value[0] ? AK411… in snd_ak4117_rx_put() 241 struct snd_ctl_elem_value *ucontrol) in snd_ak4117_rate_get() argument [all …]
|
D | pt2258.c | 95 struct snd_ctl_elem_value *ucontrol) in pt2258_stereo_volume_get() argument 101 ucontrol->value.integer.value[0] = 79 - pt->volume[base]; in pt2258_stereo_volume_get() 102 ucontrol->value.integer.value[1] = 79 - pt->volume[base + 1]; in pt2258_stereo_volume_get() 107 struct snd_ctl_elem_value *ucontrol) in pt2258_stereo_volume_put() argument 114 val0 = 79 - ucontrol->value.integer.value[0]; in pt2258_stereo_volume_put() 115 val1 = 79 - ucontrol->value.integer.value[1]; in pt2258_stereo_volume_put() 148 struct snd_ctl_elem_value *ucontrol) in pt2258_switch_get() argument 152 ucontrol->value.integer.value[0] = !pt->mute; in pt2258_switch_get() 157 struct snd_ctl_elem_value *ucontrol) in pt2258_switch_put() argument 163 val = !ucontrol->value.integer.value[0]; in pt2258_switch_put()
|
D | ak4113.c | 199 struct snd_ctl_elem_value *ucontrol) in snd_ak4113_in_error_get() argument 206 ucontrol->value.integer.value[0] = *ptr; in snd_ak4113_in_error_get() 215 struct snd_ctl_elem_value *ucontrol) in snd_ak4113_in_bit_get() argument 222 ucontrol->value.integer.value[0] = in snd_ak4113_in_bit_get() 238 struct snd_ctl_elem_value *ucontrol) in snd_ak4113_rx_get() argument 242 ucontrol->value.integer.value[0] = in snd_ak4113_rx_get() 248 struct snd_ctl_elem_value *ucontrol) in snd_ak4113_rx_put() argument 256 change = ucontrol->value.integer.value[0] != AK4113_IPS(old_val); in snd_ak4113_rx_put() 260 (AK4113_IPS(ucontrol->value.integer.value[0]))); in snd_ak4113_rx_put() 276 struct snd_ctl_elem_value *ucontrol) in snd_ak4113_rate_get() argument [all …]
|
D | ak4114.c | 194 struct snd_ctl_elem_value *ucontrol) in snd_ak4114_in_error_get() argument 201 ucontrol->value.integer.value[0] = *ptr; in snd_ak4114_in_error_get() 210 struct snd_ctl_elem_value *ucontrol) in snd_ak4114_in_bit_get() argument 217 ucontrol->value.integer.value[0] = ((reg_read(chip, reg) & (1 << bit)) ? 1 : 0) ^ inv; in snd_ak4114_in_bit_get() 232 struct snd_ctl_elem_value *ucontrol) in snd_ak4114_rate_get() argument 236 ucontrol->value.integer.value[0] = external_rate(reg_read(chip, AK4114_REG_RCS1)); in snd_ak4114_rate_get() 248 struct snd_ctl_elem_value *ucontrol) in snd_ak4114_spdif_get() argument 254 ucontrol->value.iec958.status[i] = reg_read(chip, AK4114_REG_RXCSB0 + i); in snd_ak4114_spdif_get() 259 struct snd_ctl_elem_value *ucontrol) in snd_ak4114_spdif_playback_get() argument 265 ucontrol->value.iec958.status[i] = chip->txcsb[i]; in snd_ak4114_spdif_playback_get() [all …]
|
D | ak4xxx-adda.c | 379 struct snd_ctl_elem_value *ucontrol) in snd_akm4xxx_volume_get() argument 385 ucontrol->value.integer.value[0] = snd_akm4xxx_get_vol(ak, chip, addr); in snd_akm4xxx_volume_get() 415 struct snd_ctl_elem_value *ucontrol) in snd_akm4xxx_volume_put() argument 418 unsigned int val = ucontrol->value.integer.value[0]; in snd_akm4xxx_volume_put() 437 struct snd_ctl_elem_value *ucontrol) in snd_akm4xxx_stereo_volume_get() argument 443 ucontrol->value.integer.value[0] = snd_akm4xxx_get_vol(ak, chip, addr); in snd_akm4xxx_stereo_volume_get() 444 ucontrol->value.integer.value[1] = snd_akm4xxx_get_vol(ak, chip, addr+1); in snd_akm4xxx_stereo_volume_get() 449 struct snd_ctl_elem_value *ucontrol) in snd_akm4xxx_stereo_volume_put() argument 456 val[0] = ucontrol->value.integer.value[0]; in snd_akm4xxx_stereo_volume_put() 457 val[1] = ucontrol->value.integer.value[1]; in snd_akm4xxx_stereo_volume_put() [all …]
|
/linux-4.4.14/sound/soc/intel/boards/ |
D | mfld_machine.c | 95 struct snd_ctl_elem_value *ucontrol) in headset_get_switch() argument 97 ucontrol->value.integer.value[0] = hs_switch; in headset_get_switch() 102 struct snd_ctl_elem_value *ucontrol) in headset_set_switch() argument 107 if (ucontrol->value.integer.value[0] == hs_switch) in headset_set_switch() 112 if (ucontrol->value.integer.value[0]) { in headset_set_switch() 126 hs_switch = ucontrol->value.integer.value[0]; in headset_set_switch() 149 struct snd_ctl_elem_value *ucontrol) in lo_get_switch() argument 151 ucontrol->value.integer.value[0] = lo_dac; in lo_get_switch() 156 struct snd_ctl_elem_value *ucontrol) in lo_set_switch() argument 161 if (ucontrol->value.integer.value[0] == lo_dac) in lo_set_switch() [all …]
|
/linux-4.4.14/sound/pci/echoaudio/ |
D | echoaudio.c | 1004 struct snd_ctl_elem_value *ucontrol) in snd_echo_output_gain_get() argument 1011 ucontrol->value.integer.value[c] = chip->output_gain[c]; in snd_echo_output_gain_get() 1016 struct snd_ctl_elem_value *ucontrol) in snd_echo_output_gain_put() argument 1025 gain = ucontrol->value.integer.value[c]; in snd_echo_output_gain_put() 1085 struct snd_ctl_elem_value *ucontrol) in snd_echo_input_gain_get() argument 1092 ucontrol->value.integer.value[c] = chip->input_gain[c]; in snd_echo_input_gain_get() 1097 struct snd_ctl_elem_value *ucontrol) in snd_echo_input_gain_put() argument 1106 gain = ucontrol->value.integer.value[c]; in snd_echo_input_gain_put() 1154 struct snd_ctl_elem_value *ucontrol) in snd_echo_output_nominal_get() argument 1161 ucontrol->value.integer.value[c] = chip->nominal_level[c]; in snd_echo_output_nominal_get() [all …]
|
/linux-4.4.14/sound/drivers/opl4/ |
D | opl4_mixer.c | 32 static int snd_opl4_ctl_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_opl4_ctl_get() argument 42 ucontrol->value.integer.value[0] = 7 - (value & 7); in snd_opl4_ctl_get() 43 ucontrol->value.integer.value[1] = 7 - ((value >> 3) & 7); in snd_opl4_ctl_get() 47 static int snd_opl4_ctl_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_opl4_ctl_put() argument 54 value = (7 - (ucontrol->value.integer.value[0] & 7)) | in snd_opl4_ctl_put() 55 ((7 - (ucontrol->value.integer.value[1] & 7)) << 3); in snd_opl4_ctl_put()
|
/linux-4.4.14/sound/core/ |
D | vmaster.c | 139 struct snd_ctl_elem_value *ucontrol) in slave_get_val() argument 147 ucontrol->value.integer.value[ch] = slave->vals[ch]; in slave_get_val() 152 struct snd_ctl_elem_value *ucontrol) in slave_put_val() argument 163 ucontrol->value.integer.value[ch] &= in slave_put_val() 169 vol = ucontrol->value.integer.value[ch]; in slave_put_val() 175 ucontrol->value.integer.value[ch] = vol; in slave_put_val() 179 return slave->slave.put(&slave->slave, ucontrol); in slave_put_val() 193 struct snd_ctl_elem_value *ucontrol) in slave_get() argument 196 return slave_get_val(slave, ucontrol); in slave_get() 200 struct snd_ctl_elem_value *ucontrol) in slave_put() argument [all …]
|
D | ctljack.c | 20 struct snd_ctl_elem_value *ucontrol) in jack_detect_kctl_get() argument 22 ucontrol->value.integer.value[0] = kcontrol->private_value; in jack_detect_kctl_get()
|
/linux-4.4.14/sound/pci/ |
D | ak4531_codec.c | 86 static int snd_ak4531_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ak4531_get_single() argument 101 ucontrol->value.integer.value[0] = val; in snd_ak4531_get_single() 105 static int snd_ak4531_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ak4531_put_single() argument 115 val = ucontrol->value.integer.value[0] & mask; in snd_ak4531_put_single() 153 static int snd_ak4531_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ak4531_get_double() argument 172 ucontrol->value.integer.value[0] = left; in snd_ak4531_get_double() 173 ucontrol->value.integer.value[1] = right; in snd_ak4531_get_double() 177 static int snd_ak4531_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ak4531_put_double() argument 189 left = ucontrol->value.integer.value[0] & mask; in snd_ak4531_put_double() 190 right = ucontrol->value.integer.value[1] & mask; in snd_ak4531_put_double() [all …]
|
D | cmipci.c | 1019 struct snd_ctl_elem_value *ucontrol) in snd_cmipci_spdif_default_get() argument 1026 ucontrol->value.iec958.status[i] = (chip->dig_status >> (i * 8)) & 0xff; in snd_cmipci_spdif_default_get() 1032 struct snd_ctl_elem_value *ucontrol) in snd_cmipci_spdif_default_put() argument 1041 val |= (unsigned int)ucontrol->value.iec958.status[i] << (i * 8); in snd_cmipci_spdif_default_put() 1066 struct snd_ctl_elem_value *ucontrol) in snd_cmipci_spdif_mask_get() argument 1068 ucontrol->value.iec958.status[0] = 0xff; in snd_cmipci_spdif_mask_get() 1069 ucontrol->value.iec958.status[1] = 0xff; in snd_cmipci_spdif_mask_get() 1070 ucontrol->value.iec958.status[2] = 0xff; in snd_cmipci_spdif_mask_get() 1071 ucontrol->value.iec958.status[3] = 0xff; in snd_cmipci_spdif_mask_get() 1093 struct snd_ctl_elem_value *ucontrol) in snd_cmipci_spdif_stream_get() argument [all …]
|
D | es1938.c | 1056 struct snd_ctl_elem_value *ucontrol) in snd_es1938_get_mux() argument 1059 ucontrol->value.enumerated.item[0] = snd_es1938_mixer_read(chip, 0x1c) & 0x07; in snd_es1938_get_mux() 1064 struct snd_ctl_elem_value *ucontrol) in snd_es1938_put_mux() argument 1067 unsigned char val = ucontrol->value.enumerated.item[0]; in snd_es1938_put_mux() 1077 struct snd_ctl_elem_value *ucontrol) in snd_es1938_get_spatializer_enable() argument 1081 ucontrol->value.integer.value[0] = !!(val & 8); in snd_es1938_get_spatializer_enable() 1086 struct snd_ctl_elem_value *ucontrol) in snd_es1938_put_spatializer_enable() argument 1091 nval = ucontrol->value.integer.value[0] ? 0x0c : 0x04; in snd_es1938_put_spatializer_enable() 1112 struct snd_ctl_elem_value *ucontrol) in snd_es1938_get_hw_volume() argument 1115 ucontrol->value.integer.value[0] = snd_es1938_mixer_read(chip, 0x61) & 0x3f; in snd_es1938_get_hw_volume() [all …]
|
D | ens1370.c | 1354 struct snd_ctl_elem_value *ucontrol) in snd_ens1373_spdif_default_get() argument 1358 ucontrol->value.iec958.status[0] = (ensoniq->spdif_default >> 0) & 0xff; in snd_ens1373_spdif_default_get() 1359 ucontrol->value.iec958.status[1] = (ensoniq->spdif_default >> 8) & 0xff; in snd_ens1373_spdif_default_get() 1360 ucontrol->value.iec958.status[2] = (ensoniq->spdif_default >> 16) & 0xff; in snd_ens1373_spdif_default_get() 1361 ucontrol->value.iec958.status[3] = (ensoniq->spdif_default >> 24) & 0xff; in snd_ens1373_spdif_default_get() 1367 struct snd_ctl_elem_value *ucontrol) in snd_ens1373_spdif_default_put() argument 1373 val = ((u32)ucontrol->value.iec958.status[0] << 0) | in snd_ens1373_spdif_default_put() 1374 ((u32)ucontrol->value.iec958.status[1] << 8) | in snd_ens1373_spdif_default_put() 1375 ((u32)ucontrol->value.iec958.status[2] << 16) | in snd_ens1373_spdif_default_put() 1376 ((u32)ucontrol->value.iec958.status[3] << 24); in snd_ens1373_spdif_default_put() [all …]
|
D | rme96.c | 1866 snd_rme96_get_loopback_control(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_rme96_get_loopback_control() argument 1871 ucontrol->value.integer.value[0] = rme96->wcreg & RME96_WCR_SEL ? 0 : 1; in snd_rme96_get_loopback_control() 1876 snd_rme96_put_loopback_control(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_rme96_put_loopback_control() argument 1882 val = ucontrol->value.integer.value[0] ? 0 : RME96_WCR_SEL; in snd_rme96_put_loopback_control() 1929 snd_rme96_get_inputtype_control(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_rme96_get_inputtype_control() argument 1935 ucontrol->value.enumerated.item[0] = snd_rme96_getinputtype(rme96); in snd_rme96_get_inputtype_control() 1948 if (ucontrol->value.enumerated.item[0] == RME96_INPUT_ANALOG) { in snd_rme96_get_inputtype_control() 1949 ucontrol->value.enumerated.item[0] = RME96_INPUT_XLR; in snd_rme96_get_inputtype_control() 1960 if (ucontrol->value.enumerated.item[0] >= items) { in snd_rme96_get_inputtype_control() 1961 ucontrol->value.enumerated.item[0] = items - 1; in snd_rme96_get_inputtype_control() [all …]
|
D | sonicvibes.c | 924 …atic int snd_sonicvibes_get_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_sonicvibes_get_mux() argument 929 …ucontrol->value.enumerated.item[0] = ((snd_sonicvibes_in1(sonic, SV_IREG_LEFT_ADC) & SV_RECSRC_OUT… in snd_sonicvibes_get_mux() 930 …ucontrol->value.enumerated.item[1] = ((snd_sonicvibes_in1(sonic, SV_IREG_RIGHT_ADC) & SV_RECSRC_OU… in snd_sonicvibes_get_mux() 935 …atic int snd_sonicvibes_put_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_sonicvibes_put_mux() argument 941 if (ucontrol->value.enumerated.item[0] >= 7 || in snd_sonicvibes_put_mux() 942 ucontrol->value.enumerated.item[1] >= 7) in snd_sonicvibes_put_mux() 944 left = (ucontrol->value.enumerated.item[0] + 1) << 5; in snd_sonicvibes_put_mux() 945 right = (ucontrol->value.enumerated.item[1] + 1) << 5; in snd_sonicvibes_put_mux() 975 …c int snd_sonicvibes_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_sonicvibes_get_single() argument 984 ucontrol->value.integer.value[0] = (snd_sonicvibes_in1(sonic, reg)>> shift) & mask; in snd_sonicvibes_get_single() [all …]
|
D | rme32.c | 1573 struct snd_ctl_elem_value *ucontrol) in snd_rme32_get_loopback_control() argument 1578 ucontrol->value.integer.value[0] = in snd_rme32_get_loopback_control() 1585 struct snd_ctl_elem_value *ucontrol) in snd_rme32_put_loopback_control() argument 1591 val = ucontrol->value.integer.value[0] ? 0 : RME32_WCR_SEL; in snd_rme32_put_loopback_control() 1595 if (ucontrol->value.integer.value[0]) in snd_rme32_put_loopback_control() 1631 struct snd_ctl_elem_value *ucontrol) in snd_rme32_get_inputtype_control() argument 1637 ucontrol->value.enumerated.item[0] = snd_rme32_getinputtype(rme32); in snd_rme32_get_inputtype_control() 1651 if (ucontrol->value.enumerated.item[0] >= items) { in snd_rme32_get_inputtype_control() 1652 ucontrol->value.enumerated.item[0] = items - 1; in snd_rme32_get_inputtype_control() 1660 struct snd_ctl_elem_value *ucontrol) in snd_rme32_put_inputtype_control() argument [all …]
|
D | fm801.c | 847 struct snd_ctl_elem_value *ucontrol) in snd_fm801_get_single() argument 855 ucontrol->value.integer.value[0] = (inw(chip->port + reg) >> shift) & mask; in snd_fm801_get_single() 857 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_fm801_get_single() 862 struct snd_ctl_elem_value *ucontrol) in snd_fm801_put_single() argument 871 val = (ucontrol->value.integer.value[0] & mask); in snd_fm801_put_single() 902 struct snd_ctl_elem_value *ucontrol) in snd_fm801_get_double() argument 912 ucontrol->value.integer.value[0] = (inw(chip->port + reg) >> shift_left) & mask; in snd_fm801_get_double() 913 ucontrol->value.integer.value[1] = (inw(chip->port + reg) >> shift_right) & mask; in snd_fm801_get_double() 916 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_fm801_get_double() 917 ucontrol->value.integer.value[1] = mask - ucontrol->value.integer.value[1]; in snd_fm801_get_double() [all …]
|
D | azt3328.c | 950 struct snd_ctl_elem_value *ucontrol) in snd_azf3328_get_mixer() argument 962 ucontrol->value.integer.value[0] = val; in snd_azf3328_get_mixer() 967 ucontrol->value.integer.value[1] = val; in snd_azf3328_get_mixer() 972 ucontrol->value.integer.value[0], ucontrol->value.integer.value[1], in snd_azf3328_get_mixer() 979 struct snd_ctl_elem_value *ucontrol) in snd_azf3328_put_mixer() argument 987 val = ucontrol->value.integer.value[0] & reg.mask; in snd_azf3328_put_mixer() 993 val = ucontrol->value.integer.value[1] & reg.mask; in snd_azf3328_put_mixer() 1010 reg.reg, ucontrol->value.integer.value[0], ucontrol->value.integer.value[1], in snd_azf3328_put_mixer() 1059 struct snd_ctl_elem_value *ucontrol) in snd_azf3328_get_mixer_enum() argument 1068 ucontrol->value.enumerated.item[0] = (val >> 8) & (reg.enum_c - 1); in snd_azf3328_get_mixer_enum() [all …]
|
D | via82xx.c | 1620 struct snd_ctl_elem_value *ucontrol) in snd_via8233_capture_source_get() argument 1624 ucontrol->value.enumerated.item[0] = inb(port) & VIA_REG_CAPTURE_CHANNEL_MIC ? 1 : 0; in snd_via8233_capture_source_get() 1629 struct snd_ctl_elem_value *ucontrol) in snd_via8233_capture_source_put() argument 1638 if (ucontrol->value.enumerated.item[0]) in snd_via8233_capture_source_put() 1657 struct snd_ctl_elem_value *ucontrol) in snd_via8233_dxs3_spdif_get() argument 1663 ucontrol->value.integer.value[0] = (val & VIA8233_SPDIF_DX3) ? 1 : 0; in snd_via8233_dxs3_spdif_get() 1668 struct snd_ctl_elem_value *ucontrol) in snd_via8233_dxs3_spdif_put() argument 1675 if (ucontrol->value.integer.value[0]) in snd_via8233_dxs3_spdif_put() 1678 chip->spdif_on = ucontrol->value.integer.value[0] ? 1 : 0; in snd_via8233_dxs3_spdif_put() 1705 struct snd_ctl_elem_value *ucontrol) in snd_via8233_dxs_volume_get() argument [all …]
|
D | cs4281.c | 1016 struct snd_ctl_elem_value *ucontrol) in snd_cs4281_get_volume() argument 1026 ucontrol->value.integer.value[0] = volL; in snd_cs4281_get_volume() 1027 ucontrol->value.integer.value[1] = volR; in snd_cs4281_get_volume() 1032 struct snd_ctl_elem_value *ucontrol) in snd_cs4281_put_volume() argument 1043 if (ucontrol->value.integer.value[0] != volL) { in snd_cs4281_put_volume() 1044 volL = CS_VOL_MASK - (ucontrol->value.integer.value[0] & CS_VOL_MASK); in snd_cs4281_put_volume() 1048 if (ucontrol->value.integer.value[1] != volR) { in snd_cs4281_put_volume() 1049 volR = CS_VOL_MASK - (ucontrol->value.integer.value[1] & CS_VOL_MASK); in snd_cs4281_put_volume()
|
/linux-4.4.14/sound/pci/au88x0/ |
D | au88x0_pcm.c | 479 …c int snd_vortex_spdif_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_vortex_spdif_mask_get() argument 481 ucontrol->value.iec958.status[0] = 0xff; in snd_vortex_spdif_mask_get() 482 ucontrol->value.iec958.status[1] = 0xff; in snd_vortex_spdif_mask_get() 483 ucontrol->value.iec958.status[2] = 0xff; in snd_vortex_spdif_mask_get() 484 ucontrol->value.iec958.status[3] = IEC958_AES3_CON_FS; in snd_vortex_spdif_mask_get() 488 static int snd_vortex_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_vortex_spdif_get() argument 491 ucontrol->value.iec958.status[0] = 0x00; in snd_vortex_spdif_get() 492 ucontrol->value.iec958.status[1] = IEC958_AES1_CON_ORIGINAL|IEC958_AES1_CON_DIGDIGCONV_ID; in snd_vortex_spdif_get() 493 ucontrol->value.iec958.status[2] = 0x00; in snd_vortex_spdif_get() 495 case 32000: ucontrol->value.iec958.status[3] = IEC958_AES3_CON_FS_32000; break; in snd_vortex_spdif_get() [all …]
|
D | au88x0_eq.c | 735 struct snd_ctl_elem_value *ucontrol) in snd_vortex_eqtoggle_get() argument 741 ucontrol->value.integer.value[0] = eq->this54 ? 0 : 1; in snd_vortex_eqtoggle_get() 748 struct snd_ctl_elem_value *ucontrol) in snd_vortex_eqtoggle_put() argument 754 eq->this54 = ucontrol->value.integer.value[0] ? 0 : 1; in snd_vortex_eqtoggle_put() 782 snd_vortex_eq_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_vortex_eq_get() argument 790 ucontrol->value.integer.value[0] = gainL; in snd_vortex_eq_get() 791 ucontrol->value.integer.value[1] = gainR; in snd_vortex_eq_get() 796 snd_vortex_eq_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_vortex_eq_put() argument 805 if (gainL != ucontrol->value.integer.value[0]) { in snd_vortex_eq_put() 807 ucontrol->value.integer.value[0]); in snd_vortex_eq_put() [all …]
|
D | au88x0_a3d.c | 767 snd_vortex_a3d_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_vortex_a3d_get() argument 777 struct snd_ctl_elem_value *ucontrol) in snd_vortex_a3d_hrtf_put() argument 783 coord[i] = ucontrol->value.integer.value[i]; in snd_vortex_a3d_hrtf_put() 794 struct snd_ctl_elem_value *ucontrol) in snd_vortex_a3d_itd_put() argument 800 coord[i] = ucontrol->value.integer.value[i]; in snd_vortex_a3d_itd_put() 813 struct snd_ctl_elem_value *ucontrol) in snd_vortex_a3d_ild_put() argument 819 l = ucontrol->value.integer.value[0]; in snd_vortex_a3d_ild_put() 820 r = ucontrol->value.integer.value[1]; in snd_vortex_a3d_ild_put() 830 struct snd_ctl_elem_value *ucontrol) in snd_vortex_a3d_filter_put() argument 836 params[i] = ucontrol->value.integer.value[i]; in snd_vortex_a3d_filter_put()
|
/linux-4.4.14/sound/usb/ |
D | mixer_quirks.c | 300 static int snd_audigy2nx_led_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_audigy2nx_led_get() argument 302 ucontrol->value.integer.value[0] = kcontrol->private_value >> 8; in snd_audigy2nx_led_get() 337 struct snd_ctl_elem_value *ucontrol) in snd_audigy2nx_led_put() argument 342 unsigned int value = ucontrol->value.integer.value[0]; in snd_audigy2nx_led_put() 469 struct snd_ctl_elem_value *ucontrol) in snd_emu0204_ch_switch_get() argument 471 ucontrol->value.enumerated.item[0] = kcontrol->private_value; in snd_emu0204_ch_switch_get() 497 struct snd_ctl_elem_value *ucontrol) in snd_emu0204_ch_switch_put() argument 501 unsigned int value = ucontrol->value.enumerated.item[0]; in snd_emu0204_ch_switch_put() 540 struct snd_ctl_elem_value *ucontrol) in snd_xonar_u1_switch_get() argument 542 ucontrol->value.integer.value[0] = !!(kcontrol->private_value & 0x02); in snd_xonar_u1_switch_get() [all …]
|
D | mixer_scarlett.c | 245 struct snd_ctl_elem_value *ucontrol) in scarlett_ctl_switch_get() argument 256 ucontrol->value.integer.value[i] = val; in scarlett_ctl_switch_get() 263 struct snd_ctl_elem_value *ucontrol) in scarlett_ctl_switch_put() argument 274 val = ucontrol->value.integer.value[i]; in scarlett_ctl_switch_put() 316 struct snd_ctl_elem_value *ucontrol) in scarlett_ctl_get() argument 328 ucontrol->value.integer.value[i] = val; in scarlett_ctl_get() 335 struct snd_ctl_elem_value *ucontrol) in scarlett_ctl_put() argument 346 val = ucontrol->value.integer.value[i] - in scarlett_ctl_put() 411 struct snd_ctl_elem_value *ucontrol) in scarlett_ctl_enum_get() argument 423 ucontrol->value.enumerated.item[0] = val; in scarlett_ctl_enum_get() [all …]
|
D | mixer.c | 1095 struct snd_ctl_elem_value *ucontrol) in mixer_ctl_feature_get() argument 1100 ucontrol->value.integer.value[0] = cval->min; in mixer_ctl_feature_get() 1110 ucontrol->value.integer.value[cnt] = val; in mixer_ctl_feature_get() 1120 ucontrol->value.integer.value[0] = val; in mixer_ctl_feature_get() 1127 struct snd_ctl_elem_value *ucontrol) in mixer_ctl_feature_put() argument 1141 val = ucontrol->value.integer.value[cnt]; in mixer_ctl_feature_put() 1154 val = ucontrol->value.integer.value[0]; in mixer_ctl_feature_put() 1646 struct snd_ctl_elem_value *ucontrol) in mixer_ctl_procunit_get() argument 1653 ucontrol->value.integer.value[0] = cval->min; in mixer_ctl_procunit_get() 1657 ucontrol->value.integer.value[0] = val; in mixer_ctl_procunit_get() [all …]
|
D | stream.c | 184 struct snd_ctl_elem_value *ucontrol) in usb_chmap_ctl_get() argument 191 memset(ucontrol->value.integer.value, 0, in usb_chmap_ctl_get() 192 sizeof(ucontrol->value.integer.value)); in usb_chmap_ctl_get() 197 ucontrol->value.integer.value[i] = chmap->map[i]; in usb_chmap_ctl_get()
|
/linux-4.4.14/sound/pci/asihpi/ |
D | asihpi.c | 1527 struct snd_ctl_elem_value *ucontrol) in snd_asihpi_volume_get() argument 1533 ucontrol->value.integer.value[0] = an_gain_mB[0] / VOL_STEP_mB; in snd_asihpi_volume_get() 1534 ucontrol->value.integer.value[1] = an_gain_mB[1] / VOL_STEP_mB; in snd_asihpi_volume_get() 1540 struct snd_ctl_elem_value *ucontrol) in snd_asihpi_volume_put() argument 1547 (ucontrol->value.integer.value[0]) * VOL_STEP_mB; in snd_asihpi_volume_put() 1549 (ucontrol->value.integer.value[1]) * VOL_STEP_mB; in snd_asihpi_volume_put() 1563 struct snd_ctl_elem_value *ucontrol) in snd_asihpi_volume_mute_get() argument 1569 ucontrol->value.integer.value[0] = mute ? 0 : 1; in snd_asihpi_volume_mute_get() 1575 struct snd_ctl_elem_value *ucontrol) in snd_asihpi_volume_mute_put() argument 1582 int mute = ucontrol->value.integer.value[0] ? 0 : HPI_BITMASK_ALL_CHANNELS; in snd_asihpi_volume_mute_put() [all …]
|
/linux-4.4.14/sound/soc/samsung/ |
D | s3c24xx_simtec.c | 35 struct snd_ctl_elem_value *ucontrol) in speaker_gain_get() argument 37 ucontrol->value.integer.value[0] = spk_gain; in speaker_gain_get() 64 struct snd_ctl_elem_value *ucontrol) in speaker_gain_put() argument 66 int value = ucontrol->value.integer.value[0]; in speaker_gain_put() 105 struct snd_ctl_elem_value *ucontrol) in speaker_unmute_get() argument 107 ucontrol->value.integer.value[0] = spk_unmute; in speaker_unmute_get() 120 struct snd_ctl_elem_value *ucontrol) in speaker_unmute_put() argument 122 spk_unmute_state(ucontrol->value.integer.value[0]); in speaker_unmute_put()
|
D | neo1973_wm8753.c | 177 struct snd_ctl_elem_value *ucontrol) in lm4853_set_spk() argument 179 gta02_speaker_enabled = ucontrol->value.integer.value[0]; in lm4853_set_spk() 187 struct snd_ctl_elem_value *ucontrol) in lm4853_get_spk() argument 189 ucontrol->value.integer.value[0] = gta02_speaker_enabled; in lm4853_get_spk()
|
/linux-4.4.14/sound/pci/rme9652/ |
D | hdsp.c | 1590 … int snd_hdsp_control_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_control_spdif_get() argument 1594 snd_hdsp_convert_to_aes(&ucontrol->value.iec958, hdsp->creg_spdif); in snd_hdsp_control_spdif_get() 1598 … int snd_hdsp_control_spdif_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_control_spdif_put() argument 1604 val = snd_hdsp_convert_from_aes(&ucontrol->value.iec958); in snd_hdsp_control_spdif_put() 1619 …d_hdsp_control_spdif_stream_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_control_spdif_stream_get() argument 1623 snd_hdsp_convert_to_aes(&ucontrol->value.iec958, hdsp->creg_spdif_stream); in snd_hdsp_control_spdif_stream_get() 1627 …d_hdsp_control_spdif_stream_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_control_spdif_stream_put() argument 1633 val = snd_hdsp_convert_from_aes(&ucontrol->value.iec958); in snd_hdsp_control_spdif_stream_put() 1650 …snd_hdsp_control_spdif_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_control_spdif_mask_get() argument 1652 ucontrol->value.iec958.status[0] = kcontrol->private_value; in snd_hdsp_control_spdif_mask_get() [all …]
|
D | hdspm.c | 2255 ucontrol) in snd_hdspm_get_system_sample_rate() 2259 ucontrol->value.integer.value[0] = hdspm_get_system_sample_rate(hdspm); in snd_hdspm_get_system_sample_rate() 2265 ucontrol) in snd_hdspm_put_system_sample_rate() 2268 int rate = ucontrol->value.integer.value[0]; in snd_hdspm_put_system_sample_rate() 2272 hdspm_set_dds_value(hdspm, ucontrol->value.integer.value[0]); in snd_hdspm_put_system_sample_rate() 2419 ucontrol) in snd_hdspm_get_autosync_sample_rate() 2427 ucontrol->value.enumerated.item[0] = in snd_hdspm_get_autosync_sample_rate() 2431 ucontrol->value.enumerated.item[0] = in snd_hdspm_get_autosync_sample_rate() 2435 ucontrol->value.enumerated.item[0] = in snd_hdspm_get_autosync_sample_rate() 2439 ucontrol->value.enumerated.item[0] = in snd_hdspm_get_autosync_sample_rate() [all …]
|
D | rme9652.c | 817 …t snd_rme9652_control_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_rme9652_control_spdif_get() argument 821 snd_rme9652_convert_to_aes(&ucontrol->value.iec958, rme9652->creg_spdif); in snd_rme9652_control_spdif_get() 825 …t snd_rme9652_control_spdif_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_rme9652_control_spdif_put() argument 831 val = snd_rme9652_convert_from_aes(&ucontrol->value.iec958); in snd_rme9652_control_spdif_put() 846 …me9652_control_spdif_stream_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_rme9652_control_spdif_stream_get() argument 850 snd_rme9652_convert_to_aes(&ucontrol->value.iec958, rme9652->creg_spdif_stream); in snd_rme9652_control_spdif_stream_get() 854 …me9652_control_spdif_stream_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_rme9652_control_spdif_stream_put() argument 860 val = snd_rme9652_convert_from_aes(&ucontrol->value.iec958); in snd_rme9652_control_spdif_stream_put() 877 …_rme9652_control_spdif_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_rme9652_control_spdif_mask_get() argument 879 ucontrol->value.iec958.status[0] = kcontrol->private_value; in snd_rme9652_control_spdif_mask_get() [all …]
|
/linux-4.4.14/sound/pci/ctxfi/ |
D | ctmixer.c | 346 struct snd_ctl_elem_value *ucontrol) in ct_alsa_mix_volume_get() argument 361 ucontrol->value.integer.value[i] = val; in ct_alsa_mix_volume_get() 368 struct snd_ctl_elem_value *ucontrol) in ct_alsa_mix_volume_put() argument 377 val = ucontrol->value.integer.value[i]; in ct_alsa_mix_volume_put() 425 struct snd_ctl_elem_value *ucontrol) in output_switch_get() argument 428 ucontrol->value.enumerated.item[0] = atc->output_switch_get(atc); in output_switch_get() 433 struct snd_ctl_elem_value *ucontrol) in output_switch_put() argument 436 if (ucontrol->value.enumerated.item[0] > 2) in output_switch_put() 438 return atc->output_switch_put(atc, ucontrol->value.enumerated.item[0]); in output_switch_put() 460 struct snd_ctl_elem_value *ucontrol) in mic_source_switch_get() argument [all …]
|
/linux-4.4.14/sound/pci/vx222/ |
D | vx222_ops.c | 878 static int vx_input_level_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_input_level_get() argument 883 ucontrol->value.integer.value[0] = chip->input_level[0]; in vx_input_level_get() 884 ucontrol->value.integer.value[1] = chip->input_level[1]; in vx_input_level_get() 889 static int vx_input_level_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_input_level_put() argument 893 if (ucontrol->value.integer.value[0] < 0 || in vx_input_level_put() 894 ucontrol->value.integer.value[0] > MIC_LEVEL_MAX) in vx_input_level_put() 896 if (ucontrol->value.integer.value[1] < 0 || in vx_input_level_put() 897 ucontrol->value.integer.value[1] > MIC_LEVEL_MAX) in vx_input_level_put() 900 if (chip->input_level[0] != ucontrol->value.integer.value[0] || in vx_input_level_put() 901 chip->input_level[1] != ucontrol->value.integer.value[1]) { in vx_input_level_put() [all …]
|
/linux-4.4.14/sound/isa/ad1816a/ |
D | ad1816a_lib.c | 737 static int snd_ad1816a_get_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ad1816a_get_mux() argument 746 ucontrol->value.enumerated.item[0] = (val >> 12) & 7; in snd_ad1816a_get_mux() 747 ucontrol->value.enumerated.item[1] = (val >> 4) & 7; in snd_ad1816a_get_mux() 751 static int snd_ad1816a_put_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ad1816a_put_mux() argument 758 if (ucontrol->value.enumerated.item[0] > 6 || in snd_ad1816a_put_mux() 759 ucontrol->value.enumerated.item[1] > 6) in snd_ad1816a_put_mux() 761 val = (ucontrol->value.enumerated.item[0] << 12) | in snd_ad1816a_put_mux() 762 (ucontrol->value.enumerated.item[1] << 4); in snd_ad1816a_put_mux() 793 …atic int snd_ad1816a_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ad1816a_get_single() argument 803 ucontrol->value.integer.value[0] = (snd_ad1816a_read(chip, reg) >> shift) & mask; in snd_ad1816a_get_single() [all …]
|
/linux-4.4.14/sound/soc/intel/haswell/ |
D | sst-haswell-pcm.c | 182 struct snd_ctl_elem_value *ucontrol) in hsw_stream_volume_put() argument 203 hsw_mixer_to_ipc(ucontrol->value.integer.value[0]); in hsw_stream_volume_put() 205 hsw_mixer_to_ipc(ucontrol->value.integer.value[1]); in hsw_stream_volume_put() 212 if (ucontrol->value.integer.value[0] == in hsw_stream_volume_put() 213 ucontrol->value.integer.value[1]) { in hsw_stream_volume_put() 214 volume = hsw_mixer_to_ipc(ucontrol->value.integer.value[0]); in hsw_stream_volume_put() 218 volume = hsw_mixer_to_ipc(ucontrol->value.integer.value[0]); in hsw_stream_volume_put() 220 volume = hsw_mixer_to_ipc(ucontrol->value.integer.value[1]); in hsw_stream_volume_put() 231 struct snd_ctl_elem_value *ucontrol) in hsw_stream_volume_get() argument 251 ucontrol->value.integer.value[0] = in hsw_stream_volume_get() [all …]
|
/linux-4.4.14/sound/pci/cs46xx/ |
D | cs46xx_lib.c | 1912 static int snd_cs46xx_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs46xx_vol_get() argument 1917 ucontrol->value.integer.value[0] = 0xffff - (val >> 16); in snd_cs46xx_vol_get() 1918 ucontrol->value.integer.value[1] = 0xffff - (val & 0xffff); in snd_cs46xx_vol_get() 1922 static int snd_cs46xx_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs46xx_vol_put() argument 1926 unsigned int val = ((0xffff - ucontrol->value.integer.value[0]) << 16 | in snd_cs46xx_vol_put() 1927 (0xffff - ucontrol->value.integer.value[1])); in snd_cs46xx_vol_put() 1940 …atic int snd_cs46xx_vol_dac_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs46xx_vol_dac_get() argument 1944 ucontrol->value.integer.value[0] = chip->dsp_spos_instance->dac_volume_left; in snd_cs46xx_vol_dac_get() 1945 ucontrol->value.integer.value[1] = chip->dsp_spos_instance->dac_volume_right; in snd_cs46xx_vol_dac_get() 1950 …atic int snd_cs46xx_vol_dac_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs46xx_vol_dac_put() argument [all …]
|
/linux-4.4.14/sound/usb/line6/ |
D | pcm.c | 35 struct snd_ctl_elem_value *ucontrol) in snd_line6_impulse_volume_get() argument 39 ucontrol->value.integer.value[0] = line6pcm->impulse_volume; in snd_line6_impulse_volume_get() 44 struct snd_ctl_elem_value *ucontrol) in snd_line6_impulse_volume_put() argument 47 int value = ucontrol->value.integer.value[0]; in snd_line6_impulse_volume_put() 79 struct snd_ctl_elem_value *ucontrol) in snd_line6_impulse_period_get() argument 83 ucontrol->value.integer.value[0] = line6pcm->impulse_period; in snd_line6_impulse_period_get() 88 struct snd_ctl_elem_value *ucontrol) in snd_line6_impulse_period_put() argument 91 int value = ucontrol->value.integer.value[0]; in snd_line6_impulse_period_put() 379 struct snd_ctl_elem_value *ucontrol) in snd_line6_control_playback_get() argument 385 ucontrol->value.integer.value[i] = line6pcm->volume_playback[i]; in snd_line6_control_playback_get() [all …]
|
D | toneport.c | 159 struct snd_ctl_elem_value *ucontrol) in snd_toneport_monitor_get() argument 163 ucontrol->value.integer.value[0] = line6pcm->volume_monitor; in snd_toneport_monitor_get() 169 struct snd_ctl_elem_value *ucontrol) in snd_toneport_monitor_put() argument 174 if (ucontrol->value.integer.value[0] == line6pcm->volume_monitor) in snd_toneport_monitor_put() 177 line6pcm->volume_monitor = ucontrol->value.integer.value[0]; in snd_toneport_monitor_put() 214 struct snd_ctl_elem_value *ucontrol) in snd_toneport_source_get() argument 219 ucontrol->value.enumerated.item[0] = toneport->source; in snd_toneport_source_get() 225 struct snd_ctl_elem_value *ucontrol) in snd_toneport_source_put() argument 232 source = ucontrol->value.enumerated.item[0]; in snd_toneport_source_put()
|
D | pod.c | 358 struct snd_ctl_elem_value *ucontrol) in snd_pod_control_monitor_get() argument 363 ucontrol->value.integer.value[0] = pod->monitor_level; in snd_pod_control_monitor_get() 369 struct snd_ctl_elem_value *ucontrol) in snd_pod_control_monitor_put() argument 374 if (ucontrol->value.integer.value[0] == pod->monitor_level) in snd_pod_control_monitor_put() 377 pod->monitor_level = ucontrol->value.integer.value[0]; in snd_pod_control_monitor_put() 378 pod_set_system_param_int(pod, ucontrol->value.integer.value[0], in snd_pod_control_monitor_put()
|
/linux-4.4.14/sound/spi/ |
D | at73c213.c | 402 struct snd_ctl_elem_value *ucontrol) in snd_at73c213_mono_get() argument 412 ucontrol->value.integer.value[0] = in snd_at73c213_mono_get() 416 ucontrol->value.integer.value[0] = in snd_at73c213_mono_get() 417 mask - ucontrol->value.integer.value[0]; in snd_at73c213_mono_get() 425 struct snd_ctl_elem_value *ucontrol) in snd_at73c213_mono_put() argument 435 val = (ucontrol->value.integer.value[0] & mask); in snd_at73c213_mono_put() 472 struct snd_ctl_elem_value *ucontrol) in snd_at73c213_stereo_get() argument 484 ucontrol->value.integer.value[0] = in snd_at73c213_stereo_get() 486 ucontrol->value.integer.value[1] = in snd_at73c213_stereo_get() 490 ucontrol->value.integer.value[0] = in snd_at73c213_stereo_get() [all …]
|
/linux-4.4.14/sound/soc/fsl/ |
D | mx27vis-aic32x4.c | 81 struct snd_ctl_elem_value *ucontrol) in mx27vis_amp_set() argument 85 int value = ucontrol->value.integer.value[0]; in mx27vis_amp_set() 108 struct snd_ctl_elem_value *ucontrol) in mx27vis_amp_get() argument 116 ucontrol->value.integer.value[0] = mx27vis_amp_gain; in mx27vis_amp_get() 119 ucontrol->value.integer.value[0] = mx27vis_amp_mute; in mx27vis_amp_get()
|
D | fsl_spdif.c | 675 struct snd_ctl_elem_value *ucontrol) in fsl_spdif_capture_get() argument 687 ucontrol->value.iec958.status[0] = (cstatus >> 16) & 0xFF; in fsl_spdif_capture_get() 688 ucontrol->value.iec958.status[1] = (cstatus >> 8) & 0xFF; in fsl_spdif_capture_get() 689 ucontrol->value.iec958.status[2] = cstatus & 0xFF; in fsl_spdif_capture_get() 692 ucontrol->value.iec958.status[3] = (cstatus >> 16) & 0xFF; in fsl_spdif_capture_get() 693 ucontrol->value.iec958.status[4] = (cstatus >> 8) & 0xFF; in fsl_spdif_capture_get() 694 ucontrol->value.iec958.status[5] = cstatus & 0xFF; in fsl_spdif_capture_get() 707 struct snd_ctl_elem_value *ucontrol) in fsl_spdif_subcode_get() argument 718 memcpy(&ucontrol->value.iec958.subcode[0], in fsl_spdif_subcode_get() 739 struct snd_ctl_elem_value *ucontrol) in fsl_spdif_qget() argument [all …]
|
/linux-4.4.14/sound/pci/trident/ |
D | trident_main.c | 2316 struct snd_ctl_elem_value *ucontrol) in snd_trident_spdif_control_get() argument 2323 ucontrol->value.integer.value[0] = val == kcontrol->private_value; in snd_trident_spdif_control_get() 2329 struct snd_ctl_elem_value *ucontrol) in snd_trident_spdif_control_put() argument 2335 val = ucontrol->value.integer.value[0] ? (unsigned char) kcontrol->private_value : 0x00; in snd_trident_spdif_control_put() 2384 struct snd_ctl_elem_value *ucontrol) in snd_trident_spdif_default_get() argument 2389 ucontrol->value.iec958.status[0] = (trident->spdif_bits >> 0) & 0xff; in snd_trident_spdif_default_get() 2390 ucontrol->value.iec958.status[1] = (trident->spdif_bits >> 8) & 0xff; in snd_trident_spdif_default_get() 2391 ucontrol->value.iec958.status[2] = (trident->spdif_bits >> 16) & 0xff; in snd_trident_spdif_default_get() 2392 ucontrol->value.iec958.status[3] = (trident->spdif_bits >> 24) & 0xff; in snd_trident_spdif_default_get() 2398 struct snd_ctl_elem_value *ucontrol) in snd_trident_spdif_default_put() argument [all …]
|
/linux-4.4.14/sound/soc/sti/ |
D | uniperif_player.c | 555 struct snd_ctl_elem_value *ucontrol) in uni_player_ctl_iec958_get() argument 563 ucontrol->value.iec958.status[0] = iec958->status[0]; in uni_player_ctl_iec958_get() 564 ucontrol->value.iec958.status[1] = iec958->status[1]; in uni_player_ctl_iec958_get() 565 ucontrol->value.iec958.status[2] = iec958->status[2]; in uni_player_ctl_iec958_get() 566 ucontrol->value.iec958.status[3] = iec958->status[3]; in uni_player_ctl_iec958_get() 572 struct snd_ctl_elem_value *ucontrol) in uni_player_ctl_iec958_put() argument 580 iec958->status[0] = ucontrol->value.iec958.status[0]; in uni_player_ctl_iec958_put() 581 iec958->status[1] = ucontrol->value.iec958.status[1]; in uni_player_ctl_iec958_put() 582 iec958->status[2] = ucontrol->value.iec958.status[2]; in uni_player_ctl_iec958_put() 583 iec958->status[3] = ucontrol->value.iec958.status[3]; in uni_player_ctl_iec958_put() [all …]
|
/linux-4.4.14/sound/isa/es1688/ |
D | es1688_lib.c | 768 static int snd_es1688_get_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_es1688_get_mux() argument 771 ucontrol->value.enumerated.item[0] = snd_es1688_mixer_read(chip, ES1688_REC_DEV) & 7; in snd_es1688_get_mux() 775 static int snd_es1688_put_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_es1688_put_mux() argument 782 if (ucontrol->value.enumerated.item[0] > 8) in snd_es1688_put_mux() 786 nval = (ucontrol->value.enumerated.item[0] & 7) | (oval & ~15); in snd_es1688_put_mux() 811 static int snd_es1688_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_es1688_get_single() argument 821 ucontrol->value.integer.value[0] = (snd_es1688_mixer_read(chip, reg) >> shift) & mask; in snd_es1688_get_single() 824 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_es1688_get_single() 828 static int snd_es1688_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_es1688_put_single() argument 839 nval = (ucontrol->value.integer.value[0] & mask); in snd_es1688_put_single() [all …]
|
/linux-4.4.14/sound/pci/lola/ |
D | lola_mixer.c | 526 struct snd_ctl_elem_value *ucontrol) in lola_analog_vol_get() argument 533 ucontrol->value.integer.value[i] = in lola_analog_vol_get() 539 struct snd_ctl_elem_value *ucontrol) in lola_analog_vol_put() argument 547 ucontrol->value.integer.value[i], in lola_analog_vol_put() 623 struct snd_ctl_elem_value *ucontrol) in lola_input_src_get() argument 629 ucontrol->value.integer.value[i] = in lola_input_src_get() 635 struct snd_ctl_elem_value *ucontrol) in lola_input_src_put() argument 643 if (ucontrol->value.integer.value[i]) in lola_input_src_put() 685 struct snd_ctl_elem_value *ucontrol) in lola_src_gain_get() argument 702 ucontrol->value.integer.value[i] = val; in lola_src_gain_get() [all …]
|
/linux-4.4.14/sound/pci/ymfpci/ |
D | ymfpci_main.c | 1289 struct snd_ctl_elem_value *ucontrol) in snd_ymfpci_spdif_default_get() argument 1294 ucontrol->value.iec958.status[0] = (chip->spdif_bits >> 0) & 0xff; in snd_ymfpci_spdif_default_get() 1295 ucontrol->value.iec958.status[1] = (chip->spdif_bits >> 8) & 0xff; in snd_ymfpci_spdif_default_get() 1296 ucontrol->value.iec958.status[3] = IEC958_AES3_CON_FS_48000; in snd_ymfpci_spdif_default_get() 1302 struct snd_ctl_elem_value *ucontrol) in snd_ymfpci_spdif_default_put() argument 1308 val = ((ucontrol->value.iec958.status[0] & 0x3e) << 0) | in snd_ymfpci_spdif_default_put() 1309 (ucontrol->value.iec958.status[1] << 8); in snd_ymfpci_spdif_default_put() 1336 struct snd_ctl_elem_value *ucontrol) in snd_ymfpci_spdif_mask_get() argument 1341 ucontrol->value.iec958.status[0] = 0x3e; in snd_ymfpci_spdif_mask_get() 1342 ucontrol->value.iec958.status[1] = 0xff; in snd_ymfpci_spdif_mask_get() [all …]
|
/linux-4.4.14/sound/sh/ |
D | aica.c | 484 struct snd_ctl_elem_value *ucontrol) in aica_pcmswitch_get() argument 486 ucontrol->value.integer.value[0] = 1; /* TO DO: Fix me */ in aica_pcmswitch_get() 491 struct snd_ctl_elem_value *ucontrol) in aica_pcmswitch_put() argument 493 if (ucontrol->value.integer.value[0] == 1) in aica_pcmswitch_put() 511 struct snd_ctl_elem_value *ucontrol) in aica_pcmvolume_get() argument 517 ucontrol->value.integer.value[0] = dreamcastcard->channel->vol; in aica_pcmvolume_get() 522 struct snd_ctl_elem_value *ucontrol) in aica_pcmvolume_put() argument 529 vol = ucontrol->value.integer.value[0]; in aica_pcmvolume_put() 534 dreamcastcard->channel->vol = ucontrol->value.integer.value[0]; in aica_pcmvolume_put() 535 dreamcastcard->master_volume = ucontrol->value.integer.value[0]; in aica_pcmvolume_put()
|
/linux-4.4.14/sound/soc/sh/ |
D | siu_dai.c | 367 struct snd_ctl_elem_value *ucontrol) in siu_dai_get_volume() argument 379 ucontrol->value.integer.value[0] = vol & 0xffff; in siu_dai_get_volume() 380 ucontrol->value.integer.value[1] = vol >> 16 & 0xffff; in siu_dai_get_volume() 385 ucontrol->value.integer.value[0] = vol & 0xffff; in siu_dai_get_volume() 386 ucontrol->value.integer.value[1] = vol >> 16 & 0xffff; in siu_dai_get_volume() 398 struct snd_ctl_elem_value *ucontrol) in siu_dai_put_volume() argument 409 if (ucontrol->value.integer.value[0] < 0 || in siu_dai_put_volume() 410 ucontrol->value.integer.value[0] > SIU_MAX_VOLUME || in siu_dai_put_volume() 411 ucontrol->value.integer.value[1] < 0 || in siu_dai_put_volume() 412 ucontrol->value.integer.value[1] > SIU_MAX_VOLUME) in siu_dai_put_volume() [all …]
|
/linux-4.4.14/sound/isa/ |
D | opl3sa2.c | 355 …atic int snd_opl3sa2_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_opl3sa2_get_single() argument 365 ucontrol->value.integer.value[0] = (chip->ctlregs[reg] >> shift) & mask; in snd_opl3sa2_get_single() 368 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_opl3sa2_get_single() 372 …atic int snd_opl3sa2_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_opl3sa2_put_single() argument 383 val = (ucontrol->value.integer.value[0] & mask); in snd_opl3sa2_put_single() 410 …atic int snd_opl3sa2_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_opl3sa2_get_double() argument 422 ucontrol->value.integer.value[0] = (chip->ctlregs[left_reg] >> shift_left) & mask; in snd_opl3sa2_get_double() 423 ucontrol->value.integer.value[1] = (chip->ctlregs[right_reg] >> shift_right) & mask; in snd_opl3sa2_get_double() 426 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_opl3sa2_get_double() 427 ucontrol->value.integer.value[1] = mask - ucontrol->value.integer.value[1]; in snd_opl3sa2_get_double() [all …]
|
D | es18xx.c | 992 static int snd_es18xx_get_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_es18xx_get_mux() argument 1005 ucontrol->value.enumerated.item[0] = muxSource; in snd_es18xx_get_mux() 1009 static int snd_es18xx_put_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_es18xx_put_mux() argument 1013 unsigned char val = ucontrol->value.enumerated.item[0]; in snd_es18xx_put_mux() 1048 …d_es18xx_get_spatializer_enable(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_es18xx_get_spatializer_enable() argument 1052 ucontrol->value.integer.value[0] = !!(val & 8); in snd_es18xx_get_spatializer_enable() 1056 …d_es18xx_put_spatializer_enable(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_es18xx_put_spatializer_enable() argument 1061 nval = ucontrol->value.integer.value[0] ? 0x0c : 0x04; in snd_es18xx_put_spatializer_enable() 1080 …ic int snd_es18xx_get_hw_volume(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_es18xx_get_hw_volume() argument 1083 ucontrol->value.integer.value[0] = snd_es18xx_mixer_read(chip, 0x61) & 0x3f; in snd_es18xx_get_hw_volume() [all …]
|
/linux-4.4.14/drivers/media/pci/saa7134/ |
D | saa7134-alsa.c | 931 struct snd_ctl_elem_value * ucontrol) in snd_saa7134_volume_get() argument 936 ucontrol->value.integer.value[0] = chip->mixer_volume[addr][0]; in snd_saa7134_volume_get() 937 ucontrol->value.integer.value[1] = chip->mixer_volume[addr][1]; in snd_saa7134_volume_get() 942 struct snd_ctl_elem_value * ucontrol) in snd_saa7134_volume_put() argument 950 left = ucontrol->value.integer.value[0]; in snd_saa7134_volume_put() 955 right = ucontrol->value.integer.value[1]; in snd_saa7134_volume_put() 1028 struct snd_ctl_elem_value * ucontrol) in snd_saa7134_capsrc_get() argument 1035 ucontrol->value.integer.value[0] = chip->capture_source[0]; in snd_saa7134_capsrc_get() 1036 ucontrol->value.integer.value[1] = chip->capture_source[1]; in snd_saa7134_capsrc_get() 1038 ucontrol->value.integer.value[0] = 0; in snd_saa7134_capsrc_get() [all …]
|
/linux-4.4.14/include/sound/ |
D | wss.h | 189 struct snd_ctl_elem_value *ucontrol); 191 struct snd_ctl_elem_value *ucontrol); 231 struct snd_ctl_elem_value *ucontrol); 233 struct snd_ctl_elem_value *ucontrol);
|
D | soc-topology.h | 85 struct snd_ctl_elem_value *ucontrol); 87 struct snd_ctl_elem_value *ucontrol);
|
D | soc.h | 593 struct snd_ctl_elem_value *ucontrol); 595 struct snd_ctl_elem_value *ucontrol); 602 struct snd_ctl_elem_value *ucontrol); 604 struct snd_ctl_elem_value *ucontrol); 608 struct snd_ctl_elem_value *ucontrol); 610 struct snd_ctl_elem_value *ucontrol); 614 struct snd_ctl_elem_value *ucontrol); 616 struct snd_ctl_elem_value *ucontrol); 622 struct snd_ctl_elem_value *ucontrol); 624 struct snd_ctl_elem_value *ucontrol); [all …]
|
D | control.h | 31 …ef int (snd_kcontrol_get_t) (struct snd_kcontrol * kcontrol, struct snd_ctl_elem_value * ucontrol); 32 …ef int (snd_kcontrol_put_t) (struct snd_kcontrol * kcontrol, struct snd_ctl_elem_value * ucontrol);
|
D | soc-dapm.h | 365 struct snd_ctl_elem_value *ucontrol); 367 struct snd_ctl_elem_value *ucontrol); 369 struct snd_ctl_elem_value *ucontrol); 371 struct snd_ctl_elem_value *ucontrol);
|
/linux-4.4.14/sound/aoa/fabrics/ |
D | layout.c | 635 struct snd_ctl_elem_value *ucontrol) \ 639 ucontrol->value.integer.value[0] = \ 644 struct snd_ctl_elem_value *ucontrol) \ 649 !!ucontrol->value.integer.value[0]); \ 667 struct snd_ctl_elem_value *ucontrol) in detect_choice_get() argument 673 ucontrol->value.integer.value[0] = ldev->switch_on_headphone; in detect_choice_get() 676 ucontrol->value.integer.value[0] = ldev->switch_on_lineout; in detect_choice_get() 685 struct snd_ctl_elem_value *ucontrol) in detect_choice_put() argument 691 ldev->switch_on_headphone = !!ucontrol->value.integer.value[0]; in detect_choice_put() 694 ldev->switch_on_lineout = !!ucontrol->value.integer.value[0]; in detect_choice_put() [all …]
|
/linux-4.4.14/sound/soc/spear/ |
D | spdif_out.c | 214 struct snd_ctl_elem_value *ucontrol) in spdif_mute_get() argument 219 ucontrol->value.integer.value[0] = host->saved_params.mute; in spdif_mute_get() 224 struct snd_ctl_elem_value *ucontrol) in spdif_mute_put() argument 229 if (host->saved_params.mute == ucontrol->value.integer.value[0]) in spdif_mute_put() 232 spdif_digital_mute(cpu_dai, ucontrol->value.integer.value[0]); in spdif_mute_put()
|
/linux-4.4.14/sound/isa/opti9xx/ |
D | miro.c | 269 struct snd_ctl_elem_value *ucontrol) in snd_miro_get_capture() argument 281 ucontrol->value.integer.value[0] = value & 0x20; in snd_miro_get_capture() 287 struct snd_ctl_elem_value *ucontrol) in snd_miro_put_capture() argument 292 value = !(ucontrol->value.integer.value[0]); in snd_miro_put_capture() 319 struct snd_ctl_elem_value *ucontrol) in snd_miro_get_preamp() argument 332 ucontrol->value.integer.value[0] = miro->aci->aci_preamp; in snd_miro_get_preamp() 343 ucontrol->value.integer.value[0] = value; in snd_miro_get_preamp() 349 struct snd_ctl_elem_value *ucontrol) in snd_miro_put_preamp() argument 354 value = ucontrol->value.integer.value[0]; in snd_miro_put_preamp() 372 struct snd_ctl_elem_value *ucontrol) in snd_miro_get_amp() argument [all …]
|
/linux-4.4.14/sound/drivers/ |
D | aloop.c | 812 struct snd_ctl_elem_value *ucontrol) in loopback_rate_shift_get() argument 816 ucontrol->value.integer.value[0] = in loopback_rate_shift_get() 823 struct snd_ctl_elem_value *ucontrol) in loopback_rate_shift_put() argument 829 val = ucontrol->value.integer.value[0]; in loopback_rate_shift_put() 846 struct snd_ctl_elem_value *ucontrol) in loopback_notify_get() argument 850 ucontrol->value.integer.value[0] = in loopback_notify_get() 857 struct snd_ctl_elem_value *ucontrol) in loopback_notify_put() argument 863 val = ucontrol->value.integer.value[0] ? 1 : 0; in loopback_notify_put() 874 struct snd_ctl_elem_value *ucontrol) in loopback_active_get() argument 884 ucontrol->value.integer.value[0] = val; in loopback_active_get() [all …]
|
D | dummy.c | 744 struct snd_ctl_elem_value *ucontrol) in snd_dummy_volume_get() argument 750 ucontrol->value.integer.value[0] = dummy->mixer_volume[addr][0]; in snd_dummy_volume_get() 751 ucontrol->value.integer.value[1] = dummy->mixer_volume[addr][1]; in snd_dummy_volume_get() 757 struct snd_ctl_elem_value *ucontrol) in snd_dummy_volume_put() argument 763 left = ucontrol->value.integer.value[0]; in snd_dummy_volume_put() 768 right = ucontrol->value.integer.value[1]; in snd_dummy_volume_put() 793 struct snd_ctl_elem_value *ucontrol) in snd_dummy_capsrc_get() argument 799 ucontrol->value.integer.value[0] = dummy->capture_source[addr][0]; in snd_dummy_capsrc_get() 800 ucontrol->value.integer.value[1] = dummy->capture_source[addr][1]; in snd_dummy_capsrc_get() 805 static int snd_dummy_capsrc_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_dummy_capsrc_put() argument [all …]
|
/linux-4.4.14/sound/pci/aw2/ |
D | aw2-alsa.c | 144 *ucontrol); 147 *ucontrol); 734 *ucontrol) in snd_aw2_control_switch_capture_get() 738 ucontrol->value.enumerated.item[0] = CTL_ROUTE_DIGITAL; in snd_aw2_control_switch_capture_get() 740 ucontrol->value.enumerated.item[0] = CTL_ROUTE_ANALOG; in snd_aw2_control_switch_capture_get() 746 *ucontrol) in snd_aw2_control_switch_capture_put() 753 if (((ucontrol->value.integer.value[0] == CTL_ROUTE_DIGITAL) in snd_aw2_control_switch_capture_put() 755 || ((ucontrol->value.integer.value[0] == CTL_ROUTE_ANALOG) in snd_aw2_control_switch_capture_put()
|
/linux-4.4.14/sound/sparc/ |
D | cs4231.c | 1296 struct snd_ctl_elem_value *ucontrol) in snd_cs4231_get_mux() argument 1302 ucontrol->value.enumerated.item[0] = in snd_cs4231_get_mux() 1304 ucontrol->value.enumerated.item[1] = in snd_cs4231_get_mux() 1312 struct snd_ctl_elem_value *ucontrol) in snd_cs4231_put_mux() argument 1319 if (ucontrol->value.enumerated.item[0] > 3 || in snd_cs4231_put_mux() 1320 ucontrol->value.enumerated.item[1] > 3) in snd_cs4231_put_mux() 1322 left = ucontrol->value.enumerated.item[0] << 6; in snd_cs4231_put_mux() 1323 right = ucontrol->value.enumerated.item[1] << 6; in snd_cs4231_put_mux() 1354 struct snd_ctl_elem_value *ucontrol) in snd_cs4231_get_single() argument 1365 ucontrol->value.integer.value[0] = (chip->image[reg] >> shift) & mask; in snd_cs4231_get_single() [all …]
|
D | dbri.c | 2266 struct snd_ctl_elem_value *ucontrol) in snd_cs4215_get_volume() argument 2275 ucontrol->value.integer.value[0] = info->left_gain; in snd_cs4215_get_volume() 2276 ucontrol->value.integer.value[1] = info->right_gain; in snd_cs4215_get_volume() 2281 struct snd_ctl_elem_value *ucontrol) in snd_cs4215_put_volume() argument 2289 vol[0] = ucontrol->value.integer.value[0]; in snd_cs4215_put_volume() 2290 vol[1] = ucontrol->value.integer.value[1]; in snd_cs4215_put_volume() 2332 struct snd_ctl_elem_value *ucontrol) in snd_cs4215_get_single() argument 2344 ucontrol->value.integer.value[0] = in snd_cs4215_get_single() 2347 ucontrol->value.integer.value[0] = in snd_cs4215_get_single() 2351 ucontrol->value.integer.value[0] = in snd_cs4215_get_single() [all …]
|
D | amd7930.c | 799 static int snd_amd7930_get_volume(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) in snd_amd7930_get_volume() argument 818 ucontrol->value.integer.value[0] = *swval; in snd_amd7930_get_volume() 823 static int snd_amd7930_put_volume(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) in snd_amd7930_put_volume() argument 845 if (*swval != ucontrol->value.integer.value[0]) { in snd_amd7930_put_volume() 846 *swval = ucontrol->value.integer.value[0] & 0xff; in snd_amd7930_put_volume()
|
/linux-4.4.14/sound/soc/intel/atom/ |
D | sst-atom-controls.c | 160 struct snd_ctl_elem_value *ucontrol) in sst_slot_get() argument 177 ucontrol->value.enumerated.item[0] = mux; in sst_slot_get() 218 struct snd_ctl_elem_value *ucontrol) in sst_slot_put() argument 233 mux = ucontrol->value.enumerated.item[0]; in sst_slot_put() 327 struct snd_ctl_elem_value *ucontrol) in sst_algo_control_get() argument 334 memcpy(ucontrol->value.bytes.data, bc->params, bc->max); in sst_algo_control_get() 346 struct snd_ctl_elem_value *ucontrol) in sst_algo_control_set() argument 357 memcpy(bc->params, ucontrol->value.bytes.data, bc->max); in sst_algo_control_set() 433 struct snd_ctl_elem_value *ucontrol) in sst_gain_get() argument 441 ucontrol->value.integer.value[0] = gv->l_gain; in sst_gain_get() [all …]
|
/linux-4.4.14/sound/isa/wss/ |
D | wss_lib.c | 2021 struct snd_ctl_elem_value *ucontrol) in snd_wss_get_mux() argument 2027 ucontrol->value.enumerated.item[0] = (chip->image[CS4231_LEFT_INPUT] & CS4231_MIXS_ALL) >> 6; in snd_wss_get_mux() 2028 ucontrol->value.enumerated.item[1] = (chip->image[CS4231_RIGHT_INPUT] & CS4231_MIXS_ALL) >> 6; in snd_wss_get_mux() 2034 struct snd_ctl_elem_value *ucontrol) in snd_wss_put_mux() argument 2041 if (ucontrol->value.enumerated.item[0] > 3 || in snd_wss_put_mux() 2042 ucontrol->value.enumerated.item[1] > 3) in snd_wss_put_mux() 2044 left = ucontrol->value.enumerated.item[0] << 6; in snd_wss_put_mux() 2045 right = ucontrol->value.enumerated.item[1] << 6; in snd_wss_put_mux() 2071 struct snd_ctl_elem_value *ucontrol) in snd_wss_get_single() argument 2081 ucontrol->value.integer.value[0] = (chip->image[reg] >> shift) & mask; in snd_wss_get_single() [all …]
|
/linux-4.4.14/sound/mips/ |
D | sgio2audio.c | 172 struct snd_ctl_elem_value *ucontrol) in sgio2audio_gain_get() argument 179 ucontrol->value.integer.value[0] = (vol >> 8) & 0xFF; in sgio2audio_gain_get() 180 ucontrol->value.integer.value[1] = vol & 0xFF; in sgio2audio_gain_get() 186 struct snd_ctl_elem_value *ucontrol) in sgio2audio_gain_put() argument 192 newvol = (ucontrol->value.integer.value[0] << 8) | in sgio2audio_gain_put() 193 ucontrol->value.integer.value[1]; in sgio2audio_gain_put() 211 struct snd_ctl_elem_value *ucontrol) in sgio2audio_source_get() argument 215 ucontrol->value.enumerated.item[0] = ad1843_get_recsrc(&chip->ad1843); in sgio2audio_source_get() 220 struct snd_ctl_elem_value *ucontrol) in sgio2audio_source_put() argument 227 ucontrol->value.enumerated.item[0]); in sgio2audio_source_put()
|
D | hal2.c | 200 struct snd_ctl_elem_value *ucontrol) in hal2_gain_get() argument 223 ucontrol->value.integer.value[0] = l; in hal2_gain_get() 224 ucontrol->value.integer.value[1] = r; in hal2_gain_get() 230 struct snd_ctl_elem_value *ucontrol) in hal2_gain_put() argument 236 l = ucontrol->value.integer.value[0]; in hal2_gain_put() 237 r = ucontrol->value.integer.value[1]; in hal2_gain_put()
|
/linux-4.4.14/sound/usb/caiaq/ |
D | control.c | 80 struct snd_ctl_elem_value *ucontrol) in control_get() argument 87 ucontrol->value.integer.value[0] in control_get() 90 ucontrol->value.integer.value[0] in control_get() 97 struct snd_ctl_elem_value *ucontrol) in control_put() argument 102 int v = ucontrol->value.integer.value[0]; in control_put()
|
/linux-4.4.14/sound/parisc/ |
D | harmony.c | 713 struct snd_ctl_elem_value *ucontrol) in snd_harmony_volume_get() argument 731 ucontrol->value.integer.value[0] = left; in snd_harmony_volume_get() 733 ucontrol->value.integer.value[1] = right; in snd_harmony_volume_get() 742 struct snd_ctl_elem_value *ucontrol) in snd_harmony_volume_put() argument 754 left = ucontrol->value.integer.value[0] & mask; in snd_harmony_volume_put() 761 right = ucontrol->value.integer.value[1] & mask; in snd_harmony_volume_put() 786 struct snd_ctl_elem_value *ucontrol) in snd_harmony_captureroute_get() argument 794 ucontrol->value.enumerated.item[0] = value; in snd_harmony_captureroute_get() 803 struct snd_ctl_elem_value *ucontrol) in snd_harmony_captureroute_put() argument 811 value = ucontrol->value.enumerated.item[0] & 1; in snd_harmony_captureroute_put()
|
/linux-4.4.14/sound/soc/ux500/ |
D | mop500_ab8500.c | 134 struct snd_ctl_elem_value *ucontrol) in mclk_input_control_get() argument 140 ucontrol->value.enumerated.item[0] = drvdata->mclk_sel; in mclk_input_control_get() 146 struct snd_ctl_elem_value *ucontrol) in mclk_input_control_put() argument 151 unsigned int val = ucontrol->value.enumerated.item[0]; in mclk_input_control_put()
|