/sound/i2c/other/ |
D | ak4xxx-adda.c | 366 static int snd_akm4xxx_volume_info(struct snd_kcontrol *kcontrol, in snd_akm4xxx_volume_info() argument 369 unsigned int mask = AK_GET_MASK(kcontrol->private_value); in snd_akm4xxx_volume_info() 378 static int snd_akm4xxx_volume_get(struct snd_kcontrol *kcontrol, in snd_akm4xxx_volume_get() argument 381 struct snd_akm4xxx *ak = snd_kcontrol_chip(kcontrol); in snd_akm4xxx_volume_get() 382 int chip = AK_GET_CHIP(kcontrol->private_value); in snd_akm4xxx_volume_get() 383 int addr = AK_GET_ADDR(kcontrol->private_value); in snd_akm4xxx_volume_get() 389 static int put_ak_reg(struct snd_kcontrol *kcontrol, int addr, in put_ak_reg() argument 392 struct snd_akm4xxx *ak = snd_kcontrol_chip(kcontrol); in put_ak_reg() 393 unsigned int mask = AK_GET_MASK(kcontrol->private_value); in put_ak_reg() 394 int chip = AK_GET_CHIP(kcontrol->private_value); in put_ak_reg() [all …]
|
/sound/ppc/ |
D | burgundy.c | 174 static int snd_pmac_burgundy_info_volume(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_info_volume() argument 184 static int snd_pmac_burgundy_get_volume(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_get_volume() argument 187 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_burgundy_get_volume() 188 unsigned int addr = BASE2ADDR(kcontrol->private_value & 0xff); in snd_pmac_burgundy_get_volume() 189 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_burgundy_get_volume() 195 static int snd_pmac_burgundy_put_volume(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_put_volume() argument 198 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_burgundy_put_volume() 199 unsigned int addr = BASE2ADDR(kcontrol->private_value & 0xff); in snd_pmac_burgundy_put_volume() 200 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_burgundy_put_volume() 250 static int snd_pmac_burgundy_info_volume_2b(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_info_volume_2b() argument [all …]
|
D | awacs.c | 135 static int snd_pmac_awacs_info_volume(struct snd_kcontrol *kcontrol, in snd_pmac_awacs_info_volume() argument 145 static int snd_pmac_awacs_get_volume(struct snd_kcontrol *kcontrol, in snd_pmac_awacs_get_volume() argument 148 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_awacs_get_volume() 149 int reg = kcontrol->private_value & 0xff; in snd_pmac_awacs_get_volume() 150 int lshift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_awacs_get_volume() 151 int inverted = (kcontrol->private_value >> 16) & 1; in snd_pmac_awacs_get_volume() 168 static int snd_pmac_awacs_put_volume(struct snd_kcontrol *kcontrol, in snd_pmac_awacs_put_volume() argument 171 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_awacs_put_volume() 172 int reg = kcontrol->private_value & 0xff; in snd_pmac_awacs_put_volume() 173 int lshift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_awacs_put_volume() [all …]
|
/sound/pci/ice1712/ |
D | wtm.c | 73 static int stac9460_dac_mute_get(struct snd_kcontrol *kcontrol, in stac9460_dac_mute_get() argument 76 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_dac_mute_get() 80 if (kcontrol->private_value) { in stac9460_dac_mute_get() 84 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in stac9460_dac_mute_get() 95 static int stac9460_dac_mute_put(struct snd_kcontrol *kcontrol, in stac9460_dac_mute_put() argument 98 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_dac_mute_put() 103 if (kcontrol->private_value) { in stac9460_dac_mute_put() 114 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in stac9460_dac_mute_put() 136 static int stac9460_dac_vol_info(struct snd_kcontrol *kcontrol, in stac9460_dac_vol_info() argument 146 static int stac9460_dac_vol_get(struct snd_kcontrol *kcontrol, in stac9460_dac_vol_get() argument [all …]
|
D | aureon.c | 202 static int aureon_universe_inmux_info(struct snd_kcontrol *kcontrol, in aureon_universe_inmux_info() argument 217 static int aureon_universe_inmux_get(struct snd_kcontrol *kcontrol, in aureon_universe_inmux_get() argument 220 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in aureon_universe_inmux_get() 226 static int aureon_universe_inmux_put(struct snd_kcontrol *kcontrol, in aureon_universe_inmux_put() argument 229 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in aureon_universe_inmux_put() 367 static int aureon_ac97_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in aureon_ac97_vol_info() argument 370 uinfo->count = kcontrol->private_value & AUREON_AC97_STEREO ? 2 : 1; in aureon_ac97_vol_info() 376 static int aureon_ac97_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_ac97_vol_get() argument 378 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in aureon_ac97_vol_get() 383 vol = aureon_ac97_read(ice, kcontrol->private_value & 0x7F); in aureon_ac97_vol_get() [all …]
|
D | maya44.c | 171 static int maya_vol_info(struct snd_kcontrol *kcontrol, in maya_vol_info() argument 174 unsigned int idx = kcontrol->private_value; in maya_vol_info() 184 static int maya_vol_get(struct snd_kcontrol *kcontrol, in maya_vol_get() argument 187 struct snd_maya44 *chip = snd_kcontrol_chip(kcontrol); in maya_vol_get() 189 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; in maya_vol_get() 190 unsigned int idx = kcontrol->private_value; in maya_vol_get() 199 static int maya_vol_put(struct snd_kcontrol *kcontrol, in maya_vol_put() argument 202 struct snd_maya44 *chip = snd_kcontrol_chip(kcontrol); in maya_vol_put() 204 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; in maya_vol_put() 205 unsigned int idx = kcontrol->private_value; in maya_vol_put() [all …]
|
D | phase.c | 299 static int wm_pcm_mute_get(struct snd_kcontrol *kcontrol, in wm_pcm_mute_get() argument 302 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_pcm_mute_get() 311 static int wm_pcm_mute_put(struct snd_kcontrol *kcontrol, in wm_pcm_mute_put() argument 314 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_pcm_mute_put() 332 static int wm_master_vol_info(struct snd_kcontrol *kcontrol, in wm_master_vol_info() argument 342 static int wm_master_vol_get(struct snd_kcontrol *kcontrol, in wm_master_vol_get() argument 345 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_master_vol_get() 354 static int wm_master_vol_put(struct snd_kcontrol *kcontrol, in wm_master_vol_put() argument 357 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_master_vol_put() 478 static int wm_vol_info(struct snd_kcontrol *kcontrol, in wm_vol_info() argument [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 110 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_dac_mute_get() 114 if (kcontrol->private_value) in stac9460_dac_mute_get() 117 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME; 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 125 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_dac_mute_put() 129 if (kcontrol->private_value) in stac9460_dac_mute_put() 132 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME; in stac9460_dac_mute_put() 147 static int stac9460_dac_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in stac9460_dac_vol_info() argument 156 static int stac9460_dac_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in stac9460_dac_vol_get() argument [all …]
|
D | pontis.c | 114 static int wm_dac_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in wm_dac_vol_info() argument 123 static int wm_dac_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_dac_vol_get() argument 125 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); 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 141 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_dac_vol_put() 169 static int wm_adc_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in wm_adc_vol_info() argument 178 static int wm_adc_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_vol_get() argument 180 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); 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 196 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_adc_vol_put() [all …]
|
D | prodigy_hifi.c | 255 static int ak4396_dac_vol_info(struct snd_kcontrol *kcontrol, in ak4396_dac_vol_info() argument 265 static int ak4396_dac_vol_get(struct snd_kcontrol *kcontrol, in ak4396_dac_vol_get() argument 268 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); 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 280 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in ak4396_dac_vol_put() 383 static int wm_dac_vol_info(struct snd_kcontrol *kcontrol, in wm_dac_vol_info() argument 393 static int wm_dac_vol_get(struct snd_kcontrol *kcontrol, in wm_dac_vol_get() argument 396 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); 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 408 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_dac_vol_put() [all …]
|
/sound/pci/ |
D | ak4531_codec.c | 79 static int snd_ak4531_info_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_ak4531_info_single() argument 81 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_ak4531_info_single() 90 static int snd_ak4531_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ak4531_get_single() argument 92 struct snd_ak4531 *ak4531 = snd_kcontrol_chip(kcontrol); in snd_ak4531_get_single() 93 int reg = kcontrol->private_value & 0xff; in snd_ak4531_get_single() 94 int shift = (kcontrol->private_value >> 16) & 0x07; in snd_ak4531_get_single() 95 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_ak4531_get_single() 96 int invert = (kcontrol->private_value >> 22) & 1; in snd_ak4531_get_single() 109 static int snd_ak4531_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ak4531_put_single() argument 111 struct snd_ak4531 *ak4531 = snd_kcontrol_chip(kcontrol); in snd_ak4531_put_single() [all …]
|
/sound/isa/cs423x/ |
D | cs4236_lib.c | 411 static int snd_cs4236_info_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_cs4236_info_single() argument 413 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_info_single() 422 static int snd_cs4236_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_get_single() argument 424 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_get_single() 426 int reg = kcontrol->private_value & 0xff; in snd_cs4236_get_single() 427 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_get_single() 428 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_get_single() 429 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_get_single() 439 static int snd_cs4236_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_put_single() argument 441 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_put_single() [all …]
|
/sound/pci/ca0106/ |
D | ca0106_mixer.c | 160 static int snd_ca0106_shared_spdif_get(struct snd_kcontrol *kcontrol, in snd_ca0106_shared_spdif_get() argument 163 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in snd_ca0106_shared_spdif_get() 169 static int snd_ca0106_shared_spdif_put(struct snd_kcontrol *kcontrol, in snd_ca0106_shared_spdif_put() argument 172 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in snd_ca0106_shared_spdif_put() 185 static int snd_ca0106_capture_source_info(struct snd_kcontrol *kcontrol, in snd_ca0106_capture_source_info() argument 201 static int snd_ca0106_capture_source_get(struct snd_kcontrol *kcontrol, in snd_ca0106_capture_source_get() argument 204 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in snd_ca0106_capture_source_get() 210 static int snd_ca0106_capture_source_put(struct snd_kcontrol *kcontrol, in snd_ca0106_capture_source_put() argument 213 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in snd_ca0106_capture_source_put() 228 static int snd_ca0106_i2c_capture_source_info(struct snd_kcontrol *kcontrol, in snd_ca0106_i2c_capture_source_info() argument [all …]
|
/sound/isa/sb/ |
D | sb_mixer.c | 60 static int snd_sbmixer_info_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_sbmixer_info_single() argument 62 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_sbmixer_info_single() 71 static int snd_sbmixer_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontro… in snd_sbmixer_get_single() argument 73 struct snd_sb *sb = snd_kcontrol_chip(kcontrol); in snd_sbmixer_get_single() 75 int reg = kcontrol->private_value & 0xff; in snd_sbmixer_get_single() 76 int shift = (kcontrol->private_value >> 16) & 0xff; in snd_sbmixer_get_single() 77 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_sbmixer_get_single() 87 static int snd_sbmixer_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontro… in snd_sbmixer_put_single() argument 89 struct snd_sb *sb = snd_kcontrol_chip(kcontrol); in snd_sbmixer_put_single() 91 int reg = kcontrol->private_value & 0xff; in snd_sbmixer_put_single() [all …]
|
/sound/drivers/pcsp/ |
D | pcsp_mixer.c | 13 static int pcsp_enable_info(struct snd_kcontrol *kcontrol, in pcsp_enable_info() argument 23 static int pcsp_enable_get(struct snd_kcontrol *kcontrol, in pcsp_enable_get() argument 26 struct snd_pcsp *chip = snd_kcontrol_chip(kcontrol); in pcsp_enable_get() 31 static int pcsp_enable_put(struct snd_kcontrol *kcontrol, in pcsp_enable_put() argument 34 struct snd_pcsp *chip = snd_kcontrol_chip(kcontrol); in pcsp_enable_put() 44 static int pcsp_treble_info(struct snd_kcontrol *kcontrol, in pcsp_treble_info() argument 47 struct snd_pcsp *chip = snd_kcontrol_chip(kcontrol); in pcsp_treble_info() 58 static int pcsp_treble_get(struct snd_kcontrol *kcontrol, in pcsp_treble_get() argument 61 struct snd_pcsp *chip = snd_kcontrol_chip(kcontrol); in pcsp_treble_get() 66 static int pcsp_treble_put(struct snd_kcontrol *kcontrol, in pcsp_treble_put() argument [all …]
|
/sound/pci/emu10k1/ |
D | emumixer.c | 46 static int snd_emu10k1_spdif_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_emu10k1_spdif_info() argument 53 static int snd_emu10k1_spdif_get(struct snd_kcontrol *kcontrol, in snd_emu10k1_spdif_get() argument 56 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); in snd_emu10k1_spdif_get() 57 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_spdif_get() 72 static int snd_emu10k1_spdif_get_mask(struct snd_kcontrol *kcontrol, in snd_emu10k1_spdif_get_mask() argument 392 static int snd_emu1010_input_output_source_info(struct snd_kcontrol *kcontrol, in snd_emu1010_input_output_source_info() argument 395 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); in snd_emu1010_input_output_source_info() 415 static int snd_emu1010_output_source_get(struct snd_kcontrol *kcontrol, in snd_emu1010_output_source_get() argument 418 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); in snd_emu1010_output_source_get() 421 channel = (kcontrol->private_value) & 0xff; in snd_emu1010_output_source_get() [all …]
|
/sound/drivers/vx/ |
D | vx_mixer.c | 417 static int vx_output_level_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in vx_output_level_info() argument 419 struct vx_core *chip = snd_kcontrol_chip(kcontrol); in vx_output_level_info() 427 static int vx_output_level_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_output_level_get() argument 429 struct vx_core *chip = snd_kcontrol_chip(kcontrol); in vx_output_level_get() 430 int codec = kcontrol->id.index; in vx_output_level_get() 438 static int vx_output_level_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_output_level_put() argument 440 struct vx_core *chip = snd_kcontrol_chip(kcontrol); in vx_output_level_put() 441 int codec = kcontrol->id.index; in vx_output_level_put() 476 static int vx_audio_src_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in vx_audio_src_info() argument 484 struct vx_core *chip = snd_kcontrol_chip(kcontrol); in vx_audio_src_info() [all …]
|
/sound/usb/6fire/ |
D | control.c | 179 static int usb6fire_control_output_vol_info(struct snd_kcontrol *kcontrol, in usb6fire_control_output_vol_info() argument 189 static int usb6fire_control_output_vol_put(struct snd_kcontrol *kcontrol, in usb6fire_control_output_vol_put() argument 192 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); in usb6fire_control_output_vol_put() 193 unsigned int ch = kcontrol->private_value; in usb6fire_control_output_vol_put() 218 static int usb6fire_control_output_vol_get(struct snd_kcontrol *kcontrol, in usb6fire_control_output_vol_get() argument 221 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); in usb6fire_control_output_vol_get() 222 unsigned int ch = kcontrol->private_value; in usb6fire_control_output_vol_get() 234 static int usb6fire_control_output_mute_put(struct snd_kcontrol *kcontrol, in usb6fire_control_output_mute_put() argument 237 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); in usb6fire_control_output_mute_put() 238 unsigned int ch = kcontrol->private_value; in usb6fire_control_output_mute_put() [all …]
|
/sound/pci/mixart/ |
D | mixart_mixer.c | 341 static int mixart_analog_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in mixart_analog_vol_info() argument 345 if(kcontrol->private_value == 0) { /* playback */ in mixart_analog_vol_info() 355 static int mixart_analog_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_analog_vol_get() argument 357 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_analog_vol_get() 359 if(kcontrol->private_value == 0) { /* playback */ in mixart_analog_vol_get() 370 static int mixart_analog_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_analog_vol_put() argument 372 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_analog_vol_put() 377 is_capture = (kcontrol->private_value != 0); in mixart_analog_vol_put() 419 static int mixart_audio_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_audio_sw_get() argument 421 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_audio_sw_get() [all …]
|
/sound/pci/pcxhr/ |
D | pcxhr_mixer.c | 86 static int pcxhr_analog_vol_info(struct snd_kcontrol *kcontrol, in pcxhr_analog_vol_info() argument 89 struct snd_pcxhr *chip = snd_kcontrol_chip(kcontrol); in pcxhr_analog_vol_info() 93 if (kcontrol->private_value == 0) { /* playback */ in pcxhr_analog_vol_info() 121 static int pcxhr_analog_vol_get(struct snd_kcontrol *kcontrol, in pcxhr_analog_vol_get() argument 124 struct snd_pcxhr *chip = snd_kcontrol_chip(kcontrol); in pcxhr_analog_vol_get() 126 if (kcontrol->private_value == 0) { /* playback */ in pcxhr_analog_vol_get() 137 static int pcxhr_analog_vol_put(struct snd_kcontrol *kcontrol, in pcxhr_analog_vol_put() argument 140 struct snd_pcxhr *chip = snd_kcontrol_chip(kcontrol); in pcxhr_analog_vol_put() 145 is_capture = (kcontrol->private_value != 0); in pcxhr_analog_vol_put() 202 static int pcxhr_audio_sw_get(struct snd_kcontrol *kcontrol, in pcxhr_audio_sw_get() argument [all …]
|
/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 42 struct snd_gus_card *gus = snd_kcontrol_chip(kcontrol); in snd_gf1_get_single() 43 int shift = kcontrol->private_value & 0xff; in snd_gf1_get_single() 44 int invert = (kcontrol->private_value >> 8) & 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 54 struct snd_gus_card *gus = snd_kcontrol_chip(kcontrol); in snd_gf1_put_single() 56 int shift = kcontrol->private_value & 0xff; in snd_gf1_put_single() 57 int invert = (kcontrol->private_value >> 8) & 1; in snd_gf1_put_single() 81 static int snd_ics_info_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_ics_info_double() argument 90 static int snd_ics_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ics_get_double() argument [all …]
|
/sound/aoa/codecs/ |
D | tas.c | 225 static int tas_snd_vol_info(struct snd_kcontrol *kcontrol, in tas_snd_vol_info() argument 235 static int tas_snd_vol_get(struct snd_kcontrol *kcontrol, in tas_snd_vol_get() argument 238 struct tas *tas = snd_kcontrol_chip(kcontrol); in tas_snd_vol_get() 247 static int tas_snd_vol_put(struct snd_kcontrol *kcontrol, in tas_snd_vol_put() argument 250 struct tas *tas = snd_kcontrol_chip(kcontrol); in tas_snd_vol_put() 285 static int tas_snd_mute_get(struct snd_kcontrol *kcontrol, in tas_snd_mute_get() argument 288 struct tas *tas = snd_kcontrol_chip(kcontrol); in tas_snd_mute_get() 297 static int tas_snd_mute_put(struct snd_kcontrol *kcontrol, in tas_snd_mute_put() argument 300 struct tas *tas = snd_kcontrol_chip(kcontrol); in tas_snd_mute_put() 326 static int tas_snd_mixer_info(struct snd_kcontrol *kcontrol, in tas_snd_mixer_info() argument [all …]
|
/sound/core/ |
D | vmaster.c | 185 static int slave_info(struct snd_kcontrol *kcontrol, in slave_info() argument 188 struct link_slave *slave = snd_kcontrol_chip(kcontrol); in slave_info() 192 static int slave_get(struct snd_kcontrol *kcontrol, in slave_get() argument 195 struct link_slave *slave = snd_kcontrol_chip(kcontrol); in slave_get() 199 static int slave_put(struct snd_kcontrol *kcontrol, in slave_put() argument 202 struct link_slave *slave = snd_kcontrol_chip(kcontrol); in slave_put() 222 static int slave_tlv_cmd(struct snd_kcontrol *kcontrol, in slave_tlv_cmd() argument 226 struct link_slave *slave = snd_kcontrol_chip(kcontrol); in slave_tlv_cmd() 231 static void slave_free(struct snd_kcontrol *kcontrol) in slave_free() argument 233 struct link_slave *slave = snd_kcontrol_chip(kcontrol); in slave_free() [all …]
|
/sound/soc/codecs/ |
D | wm8958-dsp2.c | 419 struct snd_kcontrol *kcontrol, int event) in wm8958_aif_ev() argument 456 static int wm8958_put_mbc_enum(struct snd_kcontrol *kcontrol, in wm8958_put_mbc_enum() argument 459 struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); in wm8958_put_mbc_enum() 478 static int wm8958_get_mbc_enum(struct snd_kcontrol *kcontrol, in wm8958_get_mbc_enum() argument 481 struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); in wm8958_get_mbc_enum() 489 static int wm8958_mbc_info(struct snd_kcontrol *kcontrol, in wm8958_mbc_info() argument 499 static int wm8958_mbc_get(struct snd_kcontrol *kcontrol, in wm8958_mbc_get() argument 502 int mbc = kcontrol->private_value; in wm8958_mbc_get() 503 struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); in wm8958_mbc_get() 511 static int wm8958_mbc_put(struct snd_kcontrol *kcontrol, in wm8958_mbc_put() argument [all …]
|
/sound/spi/ |
D | at73c213.c | 401 static int snd_at73c213_mono_get(struct snd_kcontrol *kcontrol, in snd_at73c213_mono_get() argument 404 struct snd_at73c213 *chip = snd_kcontrol_chip(kcontrol); in snd_at73c213_mono_get() 405 int reg = kcontrol->private_value & 0xff; in snd_at73c213_mono_get() 406 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_at73c213_mono_get() 407 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_at73c213_mono_get() 408 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_at73c213_mono_get() 424 static int snd_at73c213_mono_put(struct snd_kcontrol *kcontrol, in snd_at73c213_mono_put() argument 427 struct snd_at73c213 *chip = snd_kcontrol_chip(kcontrol); in snd_at73c213_mono_put() 428 int reg = kcontrol->private_value & 0xff; in snd_at73c213_mono_put() 429 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_at73c213_mono_put() [all …]
|