/linux/sound/i2c/other/ |
H A D | ak4xxx-adda.c | 352 static int snd_akm4xxx_volume_info(struct snd_kcontrol *kcontrol, in snd_akm4xxx_volume_info() argument 355 unsigned int mask = AK_GET_MASK(kcontrol->private_value); in snd_akm4xxx_volume_info() 364 static int snd_akm4xxx_volume_get(struct snd_kcontrol *kcontrol, in snd_akm4xxx_volume_get() argument 367 struct snd_akm4xxx *ak = snd_kcontrol_chip(kcontrol); in snd_akm4xxx_volume_get() 368 int chip = AK_GET_CHIP(kcontrol->private_value); in snd_akm4xxx_volume_get() 369 int addr = AK_GET_ADDR(kcontrol->private_value); in snd_akm4xxx_volume_get() 375 static int put_ak_reg(struct snd_kcontrol *kcontrol, int addr, in put_ak_reg() argument 378 struct snd_akm4xxx *ak = snd_kcontrol_chip(kcontrol); in put_ak_reg() 379 unsigned int mask = AK_GET_MASK(kcontrol->private_value); in put_ak_reg() 380 int chip = AK_GET_CHIP(kcontrol->private_value); in put_ak_reg() [all …]
|
/linux/sound/ppc/ |
H A D | burgundy.c | 162 static int snd_pmac_burgundy_info_volume(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_info_volume() argument 172 static int snd_pmac_burgundy_get_volume(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_get_volume() argument 175 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_burgundy_get_volume() 176 unsigned int addr = BASE2ADDR(kcontrol->private_value & 0xff); in snd_pmac_burgundy_get_volume() 177 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_burgundy_get_volume() 183 static int snd_pmac_burgundy_put_volume(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_put_volume() argument 186 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_burgundy_put_volume() 187 unsigned int addr = BASE2ADDR(kcontrol->private_value & 0xff); in snd_pmac_burgundy_put_volume() 188 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_burgundy_put_volume() 238 static int snd_pmac_burgundy_info_volume_2b(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_info_volume_2b() argument [all …]
|
H A D | awacs.c | 123 static int snd_pmac_awacs_info_volume(struct snd_kcontrol *kcontrol, in snd_pmac_awacs_info_volume() argument 133 static int snd_pmac_awacs_get_volume(struct snd_kcontrol *kcontrol, in snd_pmac_awacs_get_volume() argument 136 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_awacs_get_volume() 137 int reg = kcontrol->private_value & 0xff; in snd_pmac_awacs_get_volume() 138 int lshift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_awacs_get_volume() 139 int inverted = (kcontrol->private_value >> 16) & 1; in snd_pmac_awacs_get_volume() 156 static int snd_pmac_awacs_put_volume(struct snd_kcontrol *kcontrol, in snd_pmac_awacs_put_volume() argument 159 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_awacs_put_volume() 160 int reg = kcontrol->private_value & 0xff; in snd_pmac_awacs_put_volume() 161 int lshift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_awacs_put_volume() [all …]
|
/linux/sound/pci/ca0106/ |
H A D | ca0106_mixer.c | 146 static int snd_ca0106_shared_spdif_get(struct snd_kcontrol *kcontrol, in snd_ca0106_shared_spdif_get() argument 149 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in snd_ca0106_shared_spdif_get() 155 static int snd_ca0106_shared_spdif_put(struct snd_kcontrol *kcontrol, in snd_ca0106_shared_spdif_put() argument 158 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in snd_ca0106_shared_spdif_put() 171 static int snd_ca0106_capture_source_info(struct snd_kcontrol *kcontrol, in snd_ca0106_capture_source_info() argument 181 static int snd_ca0106_capture_source_get(struct snd_kcontrol *kcontrol, in snd_ca0106_capture_source_get() argument 184 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in snd_ca0106_capture_source_get() 190 static int snd_ca0106_capture_source_put(struct snd_kcontrol *kcontrol, in snd_ca0106_capture_source_put() argument 193 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in snd_ca0106_capture_source_put() 208 static int snd_ca0106_i2c_capture_source_info(struct snd_kcontrol *kcontrol, in snd_ca0106_i2c_capture_source_info() argument [all …]
|
/linux/sound/pci/ |
H A D | ak4531_codec.c | 60 static int snd_ak4531_info_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_ak4531_info_single() argument 62 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_ak4531_info_single() 71 static int snd_ak4531_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ak4531_get_single() argument 73 struct snd_ak4531 *ak4531 = snd_kcontrol_chip(kcontrol); in snd_ak4531_get_single() 74 int reg = kcontrol->private_value & 0xff; in snd_ak4531_get_single() 75 int shift = (kcontrol->private_value >> 16) & 0x07; in snd_ak4531_get_single() 76 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_ak4531_get_single() 77 int invert = (kcontrol->private_value >> 22) & 1; in snd_ak4531_get_single() 90 static int snd_ak4531_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ak4531_put_single() argument 92 struct snd_ak4531 *ak4531 = snd_kcontrol_chip(kcontrol); in snd_ak4531_put_single() [all …]
|
/linux/sound/isa/cs423x/ |
H A D | cs4236_lib.c | 392 static int snd_cs4236_info_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_cs4236_info_single() argument 394 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_info_single() 403 static int snd_cs4236_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_get_single() argument 405 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_get_single() 407 int reg = kcontrol->private_value & 0xff; in snd_cs4236_get_single() 408 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_get_single() 409 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_get_single() 410 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_get_single() 420 static int snd_cs4236_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_put_single() argument 422 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_put_single() [all …]
|
/linux/sound/soc/ |
H A D | soc-ops.c | 40 int snd_soc_info_enum_double(struct snd_kcontrol *kcontrol, in snd_soc_info_enum_double() argument 43 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in snd_soc_info_enum_double() 59 int snd_soc_get_enum_double(struct snd_kcontrol *kcontrol, in snd_soc_get_enum_double() argument 62 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in snd_soc_get_enum_double() 63 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in snd_soc_get_enum_double() 90 int snd_soc_put_enum_double(struct snd_kcontrol *kcontrol, in snd_soc_put_enum_double() argument 93 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in snd_soc_put_enum_double() 94 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in snd_soc_put_enum_double() 175 int snd_soc_info_volsw(struct snd_kcontrol *kcontrol, in snd_soc_info_volsw() argument 179 (struct soc_mixer_control *)kcontrol->private_value; in snd_soc_info_volsw() [all …]
|
/linux/sound/isa/sb/ |
H A D | sb_mixer.c | 45 static int snd_sbmixer_info_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_sbmixer_info_single() argument 47 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_sbmixer_info_single() 56 static int snd_sbmixer_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontro… in snd_sbmixer_get_single() argument 58 struct snd_sb *sb = snd_kcontrol_chip(kcontrol); in snd_sbmixer_get_single() 60 int reg = kcontrol->private_value & 0xff; in snd_sbmixer_get_single() 61 int shift = (kcontrol->private_value >> 16) & 0xff; in snd_sbmixer_get_single() 62 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_sbmixer_get_single() 72 static int snd_sbmixer_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontro… in snd_sbmixer_put_single() argument 74 struct snd_sb *sb = snd_kcontrol_chip(kcontrol); in snd_sbmixer_put_single() 76 int reg = kcontrol->private_value & 0xff; in snd_sbmixer_put_single() [all …]
|
/linux/drivers/staging/vc04_services/bcm2835-audio/ |
H A D | bcm2835-ctl.c | 30 static int snd_bcm2835_ctl_info(struct snd_kcontrol *kcontrol, in snd_bcm2835_ctl_info() argument 33 if (kcontrol->private_value == PCM_PLAYBACK_VOLUME) { in snd_bcm2835_ctl_info() 38 } else if (kcontrol->private_value == PCM_PLAYBACK_MUTE) { in snd_bcm2835_ctl_info() 43 } else if (kcontrol->private_value == PCM_PLAYBACK_DEVICE) { in snd_bcm2835_ctl_info() 52 static int snd_bcm2835_ctl_get(struct snd_kcontrol *kcontrol, in snd_bcm2835_ctl_get() argument 55 struct bcm2835_chip *chip = snd_kcontrol_chip(kcontrol); in snd_bcm2835_ctl_get() 59 if (kcontrol->private_value == PCM_PLAYBACK_VOLUME) in snd_bcm2835_ctl_get() 61 else if (kcontrol->private_value == PCM_PLAYBACK_MUTE) in snd_bcm2835_ctl_get() 63 else if (kcontrol->private_value == PCM_PLAYBACK_DEVICE) in snd_bcm2835_ctl_get() 70 static int snd_bcm2835_ctl_put(struct snd_kcontrol *kcontrol, in snd_bcm2835_ctl_put() argument [all …]
|
/linux/sound/soc/sof/ |
H A D | control.c | 18 int snd_sof_volume_get(struct snd_kcontrol *kcontrol, in snd_sof_volume_get() argument 21 struct soc_mixer_control *sm = (struct soc_mixer_control *)kcontrol->private_value; in snd_sof_volume_get() 33 int snd_sof_volume_put(struct snd_kcontrol *kcontrol, in snd_sof_volume_put() argument 36 struct soc_mixer_control *sm = (struct soc_mixer_control *)kcontrol->private_value; in snd_sof_volume_put() 48 int snd_sof_volume_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_sof_volume_info() argument 50 struct soc_mixer_control *sm = (struct soc_mixer_control *)kcontrol->private_value; in snd_sof_volume_info() 59 if (platform_max == 1 && !strstr(kcontrol->id.name, " Volume")) in snd_sof_volume_info() 70 int snd_sof_switch_get(struct snd_kcontrol *kcontrol, in snd_sof_switch_get() argument 73 struct soc_mixer_control *sm = (struct soc_mixer_control *)kcontrol->private_value; in snd_sof_switch_get() 85 int snd_sof_switch_put(struct snd_kcontrol *kcontrol, in snd_sof_switch_put() argument [all …]
|
/linux/sound/pci/ice1712/ |
H A D | maya44.c | 157 static int maya_vol_info(struct snd_kcontrol *kcontrol, in maya_vol_info() argument 160 unsigned int idx = kcontrol->private_value; in maya_vol_info() 170 static int maya_vol_get(struct snd_kcontrol *kcontrol, in maya_vol_get() argument 173 struct snd_maya44 *chip = snd_kcontrol_chip(kcontrol); in maya_vol_get() 175 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; in maya_vol_get() 176 unsigned int idx = kcontrol->private_value; in maya_vol_get() 185 static int maya_vol_put(struct snd_kcontrol *kcontrol, in maya_vol_put() argument 188 struct snd_maya44 *chip = snd_kcontrol_chip(kcontrol); in maya_vol_put() 190 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; in maya_vol_put() 191 unsigned int idx = kcontrol->private_value; in maya_vol_put() [all …]
|
H A D | aureon.c | 188 static int aureon_universe_inmux_info(struct snd_kcontrol *kcontrol, in aureon_universe_inmux_info() argument 197 static int aureon_universe_inmux_get(struct snd_kcontrol *kcontrol, in aureon_universe_inmux_get() argument 200 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in aureon_universe_inmux_get() 206 static int aureon_universe_inmux_put(struct snd_kcontrol *kcontrol, in aureon_universe_inmux_put() argument 209 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in aureon_universe_inmux_put() 347 static int aureon_ac97_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in aureon_ac97_vol_info() argument 350 uinfo->count = kcontrol->private_value & AUREON_AC97_STEREO ? 2 : 1; in aureon_ac97_vol_info() 356 static int aureon_ac97_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_ac97_vol_get() argument 358 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in aureon_ac97_vol_get() 363 vol = aureon_ac97_read(ice, kcontrol->private_value & 0x7F); in aureon_ac97_vol_get() [all …]
|
H A D | wtm.c | 113 static int stac9460_dac_mute_get(struct snd_kcontrol *kcontrol, in stac9460_dac_mute_get() argument 116 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_dac_mute_get() 123 if (kcontrol->private_value) { in stac9460_dac_mute_get() 127 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in stac9460_dac_mute_get() 140 static int stac9460_dac_mute_put(struct snd_kcontrol *kcontrol, in stac9460_dac_mute_put() argument 143 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_dac_mute_put() 148 if (kcontrol->private_value) { in stac9460_dac_mute_put() 159 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in stac9460_dac_mute_put() 181 static int stac9460_dac_vol_info(struct snd_kcontrol *kcontrol, in stac9460_dac_vol_info() argument 191 static int stac9460_dac_vol_get(struct snd_kcontrol *kcontrol, in stac9460_dac_vol_get() argument [all …]
|
H A D | phase.c | 285 static int wm_pcm_mute_get(struct snd_kcontrol *kcontrol, in wm_pcm_mute_get() argument 288 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_pcm_mute_get() 297 static int wm_pcm_mute_put(struct snd_kcontrol *kcontrol, in wm_pcm_mute_put() argument 300 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_pcm_mute_put() 318 static int wm_master_vol_info(struct snd_kcontrol *kcontrol, in wm_master_vol_info() argument 328 static int wm_master_vol_get(struct snd_kcontrol *kcontrol, in wm_master_vol_get() argument 331 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_master_vol_get() 340 static int wm_master_vol_put(struct snd_kcontrol *kcontrol, in wm_master_vol_put() argument 343 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_master_vol_put() 464 static int wm_vol_info(struct snd_kcontrol *kcontrol, in wm_vol_info() argument [all …]
|
H A D | pontis.c | 100 static int wm_dac_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in wm_dac_vol_info() argument 109 static int wm_dac_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_dac_vol_get() argument 111 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_dac_vol_get() 125 static int wm_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_dac_vol_put() argument 127 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_dac_vol_put() 155 static int wm_adc_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in wm_adc_vol_info() argument 164 static int wm_adc_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_vol_get() argument 166 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_adc_vol_get() 180 static int wm_adc_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_vol_put() argument 182 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_adc_vol_put() [all …]
|
/linux/sound/drivers/vx/ |
H A D | vx_mixer.c | 400 static int vx_output_level_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in vx_output_level_info() argument 402 struct vx_core *chip = snd_kcontrol_chip(kcontrol); in vx_output_level_info() 410 static int vx_output_level_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_output_level_get() argument 412 struct vx_core *chip = snd_kcontrol_chip(kcontrol); in vx_output_level_get() 413 int codec = kcontrol->id.index; in vx_output_level_get() 421 static int vx_output_level_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_output_level_put() argument 423 struct vx_core *chip = snd_kcontrol_chip(kcontrol); in vx_output_level_put() 424 int codec = kcontrol->id.index; in vx_output_level_put() 459 static int vx_audio_src_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in vx_audio_src_info() argument 467 struct vx_core *chip = snd_kcontrol_chip(kcontrol); in vx_audio_src_info() [all …]
|
/linux/sound/pci/emu10k1/ |
H A D | emumixer.c | 44 static int snd_emu10k1_spdif_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_emu10k1_spdif_info() argument 51 static int snd_emu10k1_spdif_get(struct snd_kcontrol *kcontrol, in snd_emu10k1_spdif_get() argument 54 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); in snd_emu10k1_spdif_get() 55 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_spdif_get() 67 static int snd_emu10k1_spdif_get_mask(struct snd_kcontrol *kcontrol, in snd_emu10k1_spdif_get_mask() argument 623 static int snd_emu1010_input_output_source_info(struct snd_kcontrol *kcontrol, in snd_emu1010_input_output_source_info() argument 626 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); in snd_emu1010_input_output_source_info() 633 static int snd_emu1010_output_source_get(struct snd_kcontrol *kcontrol, in snd_emu1010_output_source_get() argument 636 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); in snd_emu1010_output_source_get() 639 unsigned channel = kcontrol->private_value; in snd_emu1010_output_source_get() [all …]
|
/linux/sound/drivers/pcsp/ |
H A 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 …]
|
/linux/sound/pci/mixart/ |
H A D | mixart_mixer.c | 330 static int mixart_analog_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in mixart_analog_vol_info() argument 334 if(kcontrol->private_value == 0) { /* playback */ in mixart_analog_vol_info() 344 static int mixart_analog_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_analog_vol_get() argument 346 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_analog_vol_get() 348 if(kcontrol->private_value == 0) { /* playback */ in mixart_analog_vol_get() 359 static int mixart_analog_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_analog_vol_put() argument 361 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_analog_vol_put() 366 is_capture = (kcontrol->private_value != 0); in mixart_analog_vol_put() 408 static int mixart_audio_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_audio_sw_get() argument 410 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_audio_sw_get() [all …]
|
/linux/sound/usb/6fire/ |
H A D | control.c | 175 static int usb6fire_control_output_vol_info(struct snd_kcontrol *kcontrol, in usb6fire_control_output_vol_info() argument 185 static int usb6fire_control_output_vol_put(struct snd_kcontrol *kcontrol, in usb6fire_control_output_vol_put() argument 188 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); in usb6fire_control_output_vol_put() 189 unsigned int ch = kcontrol->private_value; in usb6fire_control_output_vol_put() 215 static int usb6fire_control_output_vol_get(struct snd_kcontrol *kcontrol, in usb6fire_control_output_vol_get() argument 218 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); in usb6fire_control_output_vol_get() 219 unsigned int ch = kcontrol->private_value; in usb6fire_control_output_vol_get() 232 static int usb6fire_control_output_mute_put(struct snd_kcontrol *kcontrol, in usb6fire_control_output_mute_put() argument 235 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); in usb6fire_control_output_mute_put() 236 unsigned int ch = kcontrol->private_value; in usb6fire_control_output_mute_put() [all …]
|
/linux/sound/pci/pcxhr/ |
H A D | pcxhr_mixer.c | 74 static int pcxhr_analog_vol_info(struct snd_kcontrol *kcontrol, in pcxhr_analog_vol_info() argument 77 struct snd_pcxhr *chip = snd_kcontrol_chip(kcontrol); in pcxhr_analog_vol_info() 81 if (kcontrol->private_value == 0) { /* playback */ in pcxhr_analog_vol_info() 109 static int pcxhr_analog_vol_get(struct snd_kcontrol *kcontrol, in pcxhr_analog_vol_get() argument 112 struct snd_pcxhr *chip = snd_kcontrol_chip(kcontrol); in pcxhr_analog_vol_get() 114 if (kcontrol->private_value == 0) { /* playback */ in pcxhr_analog_vol_get() 125 static int pcxhr_analog_vol_put(struct snd_kcontrol *kcontrol, in pcxhr_analog_vol_put() argument 128 struct snd_pcxhr *chip = snd_kcontrol_chip(kcontrol); in pcxhr_analog_vol_put() 133 is_capture = (kcontrol->private_value != 0); in pcxhr_analog_vol_put() 190 static int pcxhr_audio_sw_get(struct snd_kcontrol *kcontrol, in pcxhr_audio_sw_get() argument [all …]
|
/linux/sound/soc/codecs/aw88395/ |
H A D | aw88395.c | 104 static int aw88395_get_fade_in_time(struct snd_kcontrol *kcontrol, in aw88395_get_fade_in_time() argument 107 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in aw88395_get_fade_in_time() 116 static int aw88395_set_fade_in_time(struct snd_kcontrol *kcontrol, in aw88395_set_fade_in_time() argument 119 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in aw88395_set_fade_in_time() 122 (struct soc_mixer_control *)kcontrol->private_value; in aw88395_set_fade_in_time() 139 static int aw88395_get_fade_out_time(struct snd_kcontrol *kcontrol, in aw88395_get_fade_out_time() argument 142 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in aw88395_get_fade_out_time() 151 static int aw88395_set_fade_out_time(struct snd_kcontrol *kcontrol, in aw88395_set_fade_out_time() argument 154 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in aw88395_set_fade_out_time() 157 (struct soc_mixer_control *)kcontrol->private_value; in aw88395_set_fade_out_time() [all …]
|
/linux/sound/soc/mediatek/mt8186/ |
H A D | mt8186-misc-control.c | 74 static int mt8186_sgen_get(struct snd_kcontrol *kcontrol, in mt8186_sgen_get() argument 77 struct snd_soc_component *cmpnt = snd_soc_kcontrol_component(kcontrol); in mt8186_sgen_get() 86 static int mt8186_sgen_set(struct snd_kcontrol *kcontrol, in mt8186_sgen_set() argument 89 struct snd_soc_component *cmpnt = snd_soc_kcontrol_component(kcontrol); in mt8186_sgen_set() 92 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in mt8186_sgen_set() 128 static int mt8186_sgen_rate_get(struct snd_kcontrol *kcontrol, in mt8186_sgen_rate_get() argument 131 struct snd_soc_component *cmpnt = snd_soc_kcontrol_component(kcontrol); in mt8186_sgen_rate_get() 140 static int mt8186_sgen_rate_set(struct snd_kcontrol *kcontrol, in mt8186_sgen_rate_set() argument 143 struct snd_soc_component *cmpnt = snd_soc_kcontrol_component(kcontrol); in mt8186_sgen_rate_set() 146 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in mt8186_sgen_rate_set() [all …]
|
/linux/sound/usb/ |
H A D | mixer_us16x08.c | 174 static int snd_us16x08_route_info(struct snd_kcontrol *kcontrol, in snd_us16x08_route_info() argument 180 static int snd_us16x08_route_get(struct snd_kcontrol *kcontrol, in snd_us16x08_route_get() argument 183 struct usb_mixer_elem_info *elem = kcontrol->private_data; in snd_us16x08_route_get() 192 static int snd_us16x08_route_put(struct snd_kcontrol *kcontrol, in snd_us16x08_route_put() argument 195 struct usb_mixer_elem_info *elem = kcontrol->private_data; in snd_us16x08_route_put() 238 static int snd_us16x08_master_info(struct snd_kcontrol *kcontrol, in snd_us16x08_master_info() argument 243 uinfo->value.integer.max = SND_US16X08_KCMAX(kcontrol); in snd_us16x08_master_info() 244 uinfo->value.integer.min = SND_US16X08_KCMIN(kcontrol); in snd_us16x08_master_info() 245 uinfo->value.integer.step = SND_US16X08_KCSTEP(kcontrol); in snd_us16x08_master_info() 249 static int snd_us16x08_master_get(struct snd_kcontrol *kcontrol, in snd_us16x08_master_get() argument [all …]
|
/linux/sound/soc/codecs/ |
H A D | tas2781-i2c.c | 117 * @kcontrol: control pointer 126 static int tas2781_digital_getvol(struct snd_kcontrol *kcontrol, in tas2781_digital_getvol() argument 129 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); in tas2781_digital_getvol() 132 (struct soc_mixer_control *)kcontrol->private_value; in tas2781_digital_getvol() 137 static int tas2781_digital_putvol(struct snd_kcontrol *kcontrol, in tas2781_digital_putvol() argument 140 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); in tas2781_digital_putvol() 143 (struct soc_mixer_control *)kcontrol->private_value; in tas2781_digital_putvol() 148 static int tas2781_amp_getvol(struct snd_kcontrol *kcontrol, in tas2781_amp_getvol() argument 151 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); in tas2781_amp_getvol() 154 (struct soc_mixer_control *)kcontrol in tas2781_amp_getvol() 159 tas2781_amp_putvol(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tas2781_amp_putvol() argument 171 tasdev_force_fwload_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tasdev_force_fwload_get() argument 186 tasdev_force_fwload_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tasdev_force_fwload_put() argument 207 tasdev_cali_data_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tasdev_cali_data_get() argument 417 tas2781_calib_start_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tas2781_calib_start_put() argument 485 tas2563_calib_start_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tas2563_calib_start_put() argument 553 tasdev_calib_stop_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tasdev_calib_stop_put() argument 568 tasdev_cali_data_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tasdev_cali_data_put() argument 611 tas2781_latch_reg_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tas2781_latch_reg_get() argument 644 tasdev_tf_data_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tasdev_tf_data_get() argument 664 tasdev_re_data_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tasdev_re_data_get() argument 683 tasdev_r0_data_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tasdev_r0_data_get() argument 706 tasdev_XMA1_data_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tasdev_XMA1_data_get() argument 721 tasdev_XMA2_data_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tasdev_XMA2_data_get() argument 737 tasdev_nop_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tasdev_nop_get() argument 744 tas2563_digital_gain_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tas2563_digital_gain_get() argument 788 tas2563_digital_gain_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tas2563_digital_gain_put() argument 878 tasdevice_set_profile_id(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tasdevice_set_profile_id() argument 895 tasdevice_info_active_num(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_info * uinfo) tasdevice_info_active_num() argument 909 tasdevice_info_chip_id(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_info * uinfo) tasdevice_info_chip_id() argument 920 tasdevice_info_programs(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_info * uinfo) tasdevice_info_programs() argument 936 tasdevice_info_configurations(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_info * uinfo) tasdevice_info_configurations() argument 951 tasdevice_info_profile(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_info * uinfo) tasdevice_info_profile() argument 965 tasdevice_get_profile_id(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tasdevice_get_profile_id() argument 976 tasdevice_get_chip_id(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tasdevice_get_chip_id() argument 1022 tasdevice_program_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tasdevice_program_get() argument 1033 tasdevice_program_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tasdevice_program_put() argument 1049 tasdevice_configuration_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tasdevice_configuration_get() argument 1062 tasdevice_configuration_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tasdevice_configuration_put() argument 1078 tasdevice_active_num_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tasdevice_active_num_get() argument 1097 tasdevice_active_num_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tasdevice_active_num_put() argument 1417 tasdevice_dapm_event(struct snd_soc_dapm_widget * w,struct snd_kcontrol * kcontrol,int event) tasdevice_dapm_event() argument [all...] |