/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 …]
|
D | ak4117.c | 157 static int snd_ak4117_in_error_info(struct snd_kcontrol *kcontrol, in snd_ak4117_in_error_info() argument 167 static int snd_ak4117_in_error_get(struct snd_kcontrol *kcontrol, in snd_ak4117_in_error_get() argument 170 struct ak4117 *chip = snd_kcontrol_chip(kcontrol); in snd_ak4117_in_error_get() 174 chip->errors[kcontrol->private_value]; in snd_ak4117_in_error_get() 175 chip->errors[kcontrol->private_value] = 0; in snd_ak4117_in_error_get() 182 static int snd_ak4117_in_bit_get(struct snd_kcontrol *kcontrol, in snd_ak4117_in_bit_get() argument 185 struct ak4117 *chip = snd_kcontrol_chip(kcontrol); in snd_ak4117_in_bit_get() 186 unsigned char reg = kcontrol->private_value & 0xff; in snd_ak4117_in_bit_get() 187 unsigned char bit = (kcontrol->private_value >> 8) & 0xff; in snd_ak4117_in_bit_get() 188 unsigned char inv = (kcontrol->private_value >> 31) & 1; in snd_ak4117_in_bit_get() [all …]
|
/sound/soc/ |
D | soc-ops.c | 45 int snd_soc_info_enum_double(struct snd_kcontrol *kcontrol, in snd_soc_info_enum_double() argument 48 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in snd_soc_info_enum_double() 64 int snd_soc_get_enum_double(struct snd_kcontrol *kcontrol, in snd_soc_get_enum_double() argument 67 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in snd_soc_get_enum_double() 68 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in snd_soc_get_enum_double() 98 int snd_soc_put_enum_double(struct snd_kcontrol *kcontrol, in snd_soc_put_enum_double() argument 101 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in snd_soc_put_enum_double() 102 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in snd_soc_put_enum_double() 186 int snd_soc_info_volsw(struct snd_kcontrol *kcontrol, in snd_soc_info_volsw() argument 190 (struct soc_mixer_control *)kcontrol->private_value; in snd_soc_info_volsw() [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/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 195 static int snd_ca0106_capture_source_get(struct snd_kcontrol *kcontrol, in snd_ca0106_capture_source_get() argument 198 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in snd_ca0106_capture_source_get() 204 static int snd_ca0106_capture_source_put(struct snd_kcontrol *kcontrol, in snd_ca0106_capture_source_put() argument 207 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in snd_ca0106_capture_source_put() 222 static int snd_ca0106_i2c_capture_source_info(struct snd_kcontrol *kcontrol, in snd_ca0106_i2c_capture_source_info() argument [all …]
|
/sound/pci/ |
D | ak4531_codec.c | 75 static int snd_ak4531_info_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_ak4531_info_single() argument 77 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_ak4531_info_single() 86 static int snd_ak4531_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ak4531_get_single() argument 88 struct snd_ak4531 *ak4531 = snd_kcontrol_chip(kcontrol); in snd_ak4531_get_single() 89 int reg = kcontrol->private_value & 0xff; in snd_ak4531_get_single() 90 int shift = (kcontrol->private_value >> 16) & 0x07; in snd_ak4531_get_single() 91 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_ak4531_get_single() 92 int invert = (kcontrol->private_value >> 22) & 1; 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 107 struct snd_ak4531 *ak4531 = snd_kcontrol_chip(kcontrol); in snd_ak4531_put_single() [all …]
|
/sound/isa/cs423x/ |
D | cs4236_lib.c | 408 static int snd_cs4236_info_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_cs4236_info_single() argument 410 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_info_single() 419 static int snd_cs4236_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_get_single() argument 421 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_get_single() 423 int reg = kcontrol->private_value & 0xff; in snd_cs4236_get_single() 424 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_get_single() 425 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_get_single() 426 int invert = (kcontrol->private_value >> 24) & 0xff; 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 438 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_put_single() [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/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() 403 static int snd_emu1010_output_source_get(struct snd_kcontrol *kcontrol, in snd_emu1010_output_source_get() argument 406 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); in snd_emu1010_output_source_get() 409 channel = (kcontrol->private_value) & 0xff; in snd_emu1010_output_source_get() [all …]
|
/sound/pci/ice1712/ |
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 | aureon.c | 202 static int aureon_universe_inmux_info(struct snd_kcontrol *kcontrol, in aureon_universe_inmux_info() argument 211 static int aureon_universe_inmux_get(struct snd_kcontrol *kcontrol, in aureon_universe_inmux_get() argument 214 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in aureon_universe_inmux_get() 220 static int aureon_universe_inmux_put(struct snd_kcontrol *kcontrol, in aureon_universe_inmux_put() argument 223 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in aureon_universe_inmux_put() 361 static int aureon_ac97_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in aureon_ac97_vol_info() argument 364 uinfo->count = kcontrol->private_value & AUREON_AC97_STEREO ? 2 : 1; in aureon_ac97_vol_info() 370 static int aureon_ac97_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_ac97_vol_get() argument 372 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in aureon_ac97_vol_get() 377 vol = aureon_ac97_read(ice, kcontrol->private_value & 0x7F); in aureon_ac97_vol_get() [all …]
|
D | wtm.c | 127 static int stac9460_dac_mute_get(struct snd_kcontrol *kcontrol, in stac9460_dac_mute_get() argument 130 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_dac_mute_get() 137 if (kcontrol->private_value) { in stac9460_dac_mute_get() 141 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in stac9460_dac_mute_get() 154 static int stac9460_dac_mute_put(struct snd_kcontrol *kcontrol, in stac9460_dac_mute_put() argument 157 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_dac_mute_put() 162 if (kcontrol->private_value) { in stac9460_dac_mute_put() 173 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in stac9460_dac_mute_put() 195 static int stac9460_dac_vol_info(struct snd_kcontrol *kcontrol, in stac9460_dac_vol_info() argument 205 static int stac9460_dac_vol_get(struct snd_kcontrol *kcontrol, in stac9460_dac_vol_get() argument [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/drivers/pcsp/ |
D | pcsp_mixer.c | 14 static int pcsp_enable_info(struct snd_kcontrol *kcontrol, in pcsp_enable_info() argument 24 static int pcsp_enable_get(struct snd_kcontrol *kcontrol, in pcsp_enable_get() argument 27 struct snd_pcsp *chip = snd_kcontrol_chip(kcontrol); in pcsp_enable_get() 32 static int pcsp_enable_put(struct snd_kcontrol *kcontrol, in pcsp_enable_put() argument 35 struct snd_pcsp *chip = snd_kcontrol_chip(kcontrol); in pcsp_enable_put() 45 static int pcsp_treble_info(struct snd_kcontrol *kcontrol, in pcsp_treble_info() argument 48 struct snd_pcsp *chip = snd_kcontrol_chip(kcontrol); in pcsp_treble_info() 59 static int pcsp_treble_get(struct snd_kcontrol *kcontrol, in pcsp_treble_get() argument 62 struct snd_pcsp *chip = snd_kcontrol_chip(kcontrol); in pcsp_treble_get() 67 static int pcsp_treble_put(struct snd_kcontrol *kcontrol, in pcsp_treble_put() argument [all …]
|
/sound/drivers/vx/ |
D | vx_mixer.c | 413 static int vx_output_level_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in vx_output_level_info() argument 415 struct vx_core *chip = snd_kcontrol_chip(kcontrol); in vx_output_level_info() 423 static int vx_output_level_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_output_level_get() argument 425 struct vx_core *chip = snd_kcontrol_chip(kcontrol); in vx_output_level_get() 426 int codec = kcontrol->id.index; 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 436 struct vx_core *chip = snd_kcontrol_chip(kcontrol); in vx_output_level_put() 437 int codec = kcontrol->id.index; in vx_output_level_put() 472 static int vx_audio_src_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in vx_audio_src_info() argument 480 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() 219 static int usb6fire_control_output_vol_get(struct snd_kcontrol *kcontrol, in usb6fire_control_output_vol_get() argument 222 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); in usb6fire_control_output_vol_get() 223 unsigned int ch = kcontrol->private_value; in usb6fire_control_output_vol_get() 236 static int usb6fire_control_output_mute_put(struct snd_kcontrol *kcontrol, in usb6fire_control_output_mute_put() argument 239 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); in usb6fire_control_output_mute_put() 240 unsigned int ch = kcontrol->private_value; in usb6fire_control_output_mute_put() [all …]
|
/sound/pci/mixart/ |
D | mixart_mixer.c | 343 static int mixart_analog_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in mixart_analog_vol_info() argument 347 if(kcontrol->private_value == 0) { /* playback */ in mixart_analog_vol_info() 357 static int mixart_analog_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_analog_vol_get() argument 359 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_analog_vol_get() 361 if(kcontrol->private_value == 0) { /* playback */ 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 374 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_analog_vol_put() 379 is_capture = (kcontrol->private_value != 0); 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 423 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_audio_sw_get() [all …]
|
/sound/pci/pcxhr/ |
D | pcxhr_mixer.c | 87 static int pcxhr_analog_vol_info(struct snd_kcontrol *kcontrol, in pcxhr_analog_vol_info() argument 90 struct snd_pcxhr *chip = snd_kcontrol_chip(kcontrol); in pcxhr_analog_vol_info() 94 if (kcontrol->private_value == 0) { /* playback */ in pcxhr_analog_vol_info() 122 static int pcxhr_analog_vol_get(struct snd_kcontrol *kcontrol, in pcxhr_analog_vol_get() argument 125 struct snd_pcxhr *chip = snd_kcontrol_chip(kcontrol); in pcxhr_analog_vol_get() 127 if (kcontrol->private_value == 0) { /* playback */ in pcxhr_analog_vol_get() 138 static int pcxhr_analog_vol_put(struct snd_kcontrol *kcontrol, in pcxhr_analog_vol_put() argument 141 struct snd_pcxhr *chip = snd_kcontrol_chip(kcontrol); in pcxhr_analog_vol_put() 146 is_capture = (kcontrol->private_value != 0); in pcxhr_analog_vol_put() 203 static int pcxhr_audio_sw_get(struct snd_kcontrol *kcontrol, in pcxhr_audio_sw_get() argument [all …]
|
/sound/usb/ |
D | mixer_us16x08.c | 184 static int snd_us16x08_route_info(struct snd_kcontrol *kcontrol, in snd_us16x08_route_info() argument 190 static int snd_us16x08_route_get(struct snd_kcontrol *kcontrol, in snd_us16x08_route_get() argument 193 struct usb_mixer_elem_info *elem = kcontrol->private_data; in snd_us16x08_route_get() 202 static int snd_us16x08_route_put(struct snd_kcontrol *kcontrol, in snd_us16x08_route_put() argument 205 struct usb_mixer_elem_info *elem = kcontrol->private_data; in snd_us16x08_route_put() 248 static int snd_us16x08_master_info(struct snd_kcontrol *kcontrol, in snd_us16x08_master_info() argument 253 uinfo->value.integer.max = SND_US16X08_KCMAX(kcontrol); in snd_us16x08_master_info() 254 uinfo->value.integer.min = SND_US16X08_KCMIN(kcontrol); in snd_us16x08_master_info() 255 uinfo->value.integer.step = SND_US16X08_KCSTEP(kcontrol); in snd_us16x08_master_info() 259 static int snd_us16x08_master_get(struct snd_kcontrol *kcontrol, in snd_us16x08_master_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 …]
|