/linux-master/sound/soc/intel/avs/ |
H A D | control.h | 20 int avs_control_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol); 21 int avs_control_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol);
|
H A D | control.c | 15 static struct avs_dev *avs_get_kcontrol_adev(struct snd_kcontrol *kcontrol) argument 19 w = snd_soc_dapm_kcontrol_widget(kcontrol); 47 int avs_control_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 49 struct soc_mixer_control *mc = (struct soc_mixer_control *)kcontrol->private_value; 51 struct avs_dev *adev = avs_get_kcontrol_adev(kcontrol); 78 int avs_control_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 80 struct soc_mixer_control *mc = (struct soc_mixer_control *)kcontrol->private_value; 82 struct avs_dev *adev = avs_get_kcontrol_adev(kcontrol);
|
/linux-master/sound/drivers/pcsp/ |
H A D | pcsp_mixer.c | 14 static int pcsp_enable_info(struct snd_kcontrol *kcontrol, argument 24 static int pcsp_enable_get(struct snd_kcontrol *kcontrol, argument 27 struct snd_pcsp *chip = snd_kcontrol_chip(kcontrol); 32 static int pcsp_enable_put(struct snd_kcontrol *kcontrol, argument 35 struct snd_pcsp *chip = snd_kcontrol_chip(kcontrol); 45 static int pcsp_treble_info(struct snd_kcontrol *kcontrol, argument 48 struct snd_pcsp *chip = snd_kcontrol_chip(kcontrol); 59 static int pcsp_treble_get(struct snd_kcontrol *kcontrol, argument 62 struct snd_pcsp *chip = snd_kcontrol_chip(kcontrol); 67 static int pcsp_treble_put(struct snd_kcontrol *kcontrol, argument 83 pcsp_pcspkr_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 93 pcsp_pcspkr_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 101 pcsp_pcspkr_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument [all...] |
/linux-master/sound/drivers/opl4/ |
H A D | opl4_mixer.c | 10 static int snd_opl4_ctl_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 19 static int snd_opl4_ctl_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 21 struct snd_opl4 *opl4 = snd_kcontrol_chip(kcontrol); 23 u8 reg = kcontrol->private_value; 34 static int snd_opl4_ctl_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 36 struct snd_opl4 *opl4 = snd_kcontrol_chip(kcontrol); 38 u8 reg = kcontrol->private_value;
|
/linux-master/drivers/staging/vc04_services/bcm2835-audio/ |
H A D | bcm2835-ctl.c | 30 static int snd_bcm2835_ctl_info(struct snd_kcontrol *kcontrol, argument 33 if (kcontrol->private_value == PCM_PLAYBACK_VOLUME) { 38 } else if (kcontrol->private_value == PCM_PLAYBACK_MUTE) { 43 } else if (kcontrol->private_value == PCM_PLAYBACK_DEVICE) { 52 static int snd_bcm2835_ctl_get(struct snd_kcontrol *kcontrol, argument 55 struct bcm2835_chip *chip = snd_kcontrol_chip(kcontrol); 59 if (kcontrol->private_value == PCM_PLAYBACK_VOLUME) 61 else if (kcontrol->private_value == PCM_PLAYBACK_MUTE) 63 else if (kcontrol->private_value == PCM_PLAYBACK_DEVICE) 70 static int snd_bcm2835_ctl_put(struct snd_kcontrol *kcontrol, argument 122 snd_bcm2835_spdif_default_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 130 snd_bcm2835_spdif_default_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 146 snd_bcm2835_spdif_default_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 165 snd_bcm2835_spdif_mask_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 173 snd_bcm2835_spdif_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument [all...] |
/linux-master/sound/pcmcia/vx/ |
H A D | vxp_mixer.c | 21 static int vx_mic_level_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 30 static int vx_mic_level_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 32 struct vx_core *_chip = snd_kcontrol_chip(kcontrol); 38 static int vx_mic_level_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 40 struct vx_core *_chip = snd_kcontrol_chip(kcontrol); 75 static int vx_mic_boost_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 77 struct vx_core *_chip = snd_kcontrol_chip(kcontrol); 83 static int vx_mic_boost_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 85 struct vx_core *_chip = snd_kcontrol_chip(kcontrol);
|
/linux-master/sound/soc/sof/ |
H A D | control.c | 18 int snd_sof_volume_get(struct snd_kcontrol *kcontrol, argument 21 struct soc_mixer_control *sm = (struct soc_mixer_control *)kcontrol->private_value; 33 int snd_sof_volume_put(struct snd_kcontrol *kcontrol, argument 36 struct soc_mixer_control *sm = (struct soc_mixer_control *)kcontrol->private_value; 48 int snd_sof_volume_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 50 struct soc_mixer_control *sm = (struct soc_mixer_control *)kcontrol->private_value; 59 if (platform_max == 1 && !strstr(kcontrol->id.name, " Volume")) 70 int snd_sof_switch_get(struct snd_kcontrol *kcontrol, argument 73 struct soc_mixer_control *sm = (struct soc_mixer_control *)kcontrol->private_value; 85 int snd_sof_switch_put(struct snd_kcontrol *kcontrol, argument 100 snd_sof_enum_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 115 snd_sof_enum_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 130 snd_sof_bytes_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 145 snd_sof_bytes_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 160 snd_sof_bytes_ext_put(struct snd_kcontrol *kcontrol, const unsigned int __user *binary_data, unsigned int size) argument 180 snd_sof_bytes_ext_volatile_get(struct snd_kcontrol *kcontrol, unsigned int __user *binary_data, unsigned int size) argument 207 snd_sof_bytes_ext_get(struct snd_kcontrol *kcontrol, unsigned int __user *binary_data, unsigned int size) argument [all...] |
/linux-master/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) argument 62 int mask = (kcontrol->private_value >> 24) & 0xff; 71 static int snd_ak4531_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 73 struct snd_ak4531 *ak4531 = snd_kcontrol_chip(kcontrol); 74 int reg = kcontrol->private_value & 0xff; 75 int shift = (kcontrol->private_value >> 16) & 0x07; 76 int mask = (kcontrol->private_value >> 24) & 0xff; 77 int invert = (kcontrol->private_value >> 22) & 1; 90 static int snd_ak4531_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 92 struct snd_ak4531 *ak4531 = snd_kcontrol_chip(kcontrol); 127 snd_ak4531_info_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 138 snd_ak4531_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 162 snd_ak4531_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 204 snd_ak4531_info_input_sw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 213 snd_ak4531_get_input_sw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 230 snd_ak4531_put_input_sw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument [all...] |
/linux-master/sound/i2c/other/ |
H A D | ak4xxx-adda.c | 352 static int snd_akm4xxx_volume_info(struct snd_kcontrol *kcontrol, argument 355 unsigned int mask = AK_GET_MASK(kcontrol->private_value); 364 static int snd_akm4xxx_volume_get(struct snd_kcontrol *kcontrol, argument 367 struct snd_akm4xxx *ak = snd_kcontrol_chip(kcontrol); 368 int chip = AK_GET_CHIP(kcontrol->private_value); 369 int addr = AK_GET_ADDR(kcontrol->private_value); 375 static int put_ak_reg(struct snd_kcontrol *kcontrol, int addr, argument 378 struct snd_akm4xxx *ak = snd_kcontrol_chip(kcontrol); 379 unsigned int mask = AK_GET_MASK(kcontrol->private_value); 380 int chip = AK_GET_CHIP(kcontrol 400 snd_akm4xxx_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 410 snd_akm4xxx_stereo_volume_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 422 snd_akm4xxx_stereo_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 434 snd_akm4xxx_stereo_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 451 snd_akm4xxx_deemphasis_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 460 snd_akm4xxx_deemphasis_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 472 snd_akm4xxx_deemphasis_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 492 ak4xxx_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 508 ak4xxx_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 547 ak4xxx_capture_source_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 561 ak4xxx_capture_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 575 ak4xxx_capture_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument [all...] |
/linux-master/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) argument 402 struct vx_core *chip = snd_kcontrol_chip(kcontrol); 410 static int vx_output_level_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 412 struct vx_core *chip = snd_kcontrol_chip(kcontrol); 413 int codec = kcontrol->id.index; 421 static int vx_output_level_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 423 struct vx_core *chip = snd_kcontrol_chip(kcontrol); 424 int codec = kcontrol->id.index; 459 static int vx_audio_src_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 467 struct vx_core *chip = snd_kcontrol_chip(kcontrol); 475 vx_audio_src_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 482 vx_audio_src_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 515 vx_clock_mode_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 524 vx_clock_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 531 vx_clock_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 559 vx_audio_gain_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 568 vx_audio_gain_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 581 vx_audio_gain_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 604 vx_audio_monitor_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 616 vx_audio_monitor_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 643 vx_audio_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 655 vx_audio_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 674 vx_monitor_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 686 vx_monitor_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 746 vx_iec958_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 753 vx_iec958_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 766 vx_iec958_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 775 vx_iec958_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 819 vx_vu_meter_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 828 vx_vu_meter_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 841 vx_peak_meter_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 856 vx_saturation_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument [all...] |
/linux-master/sound/soc/ |
H A D | soc-ops.c | 31 * @kcontrol: mixer control 39 int snd_soc_info_enum_double(struct snd_kcontrol *kcontrol, argument 42 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; 51 * @kcontrol: mixer control 58 int snd_soc_get_enum_double(struct snd_kcontrol *kcontrol, argument 61 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); 62 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; 82 * @kcontrol: mixer control 89 int snd_soc_put_enum_double(struct snd_kcontrol *kcontrol, argument 92 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); 174 snd_soc_info_volsw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 218 snd_soc_info_volsw_sx(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 253 snd_soc_get_volsw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 313 snd_soc_put_volsw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 395 snd_soc_get_volsw_sx(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 432 snd_soc_put_volsw_sx(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 500 snd_soc_info_volsw_range(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 530 snd_soc_put_volsw_range(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 603 snd_soc_get_volsw_range(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 673 snd_soc_bytes_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 686 snd_soc_bytes_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 723 snd_soc_bytes_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 806 snd_soc_bytes_info_ext(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *ucontrol) argument 818 snd_soc_bytes_tlv_callback(struct snd_kcontrol *kcontrol, int op_flag, unsigned int size, unsigned int __user *tlv) argument 850 snd_soc_info_xr_sx(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 877 snd_soc_get_xr_sx(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 922 snd_soc_put_xr_sx(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 968 snd_soc_get_strobe(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 1001 snd_soc_put_strobe(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument [all...] |
/linux-master/sound/pci/ice1712/ |
H A D | maya44.c | 157 static int maya_vol_info(struct snd_kcontrol *kcontrol, argument 160 unsigned int idx = kcontrol->private_value; 170 static int maya_vol_get(struct snd_kcontrol *kcontrol, argument 173 struct snd_maya44 *chip = snd_kcontrol_chip(kcontrol); 175 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; 176 unsigned int idx = kcontrol->private_value; 185 static int maya_vol_put(struct snd_kcontrol *kcontrol, argument 188 struct snd_maya44 *chip = snd_kcontrol_chip(kcontrol); 190 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; 191 unsigned int idx = kcontrol 231 maya_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 243 maya_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 296 maya_gpio_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 310 maya_gpio_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 343 maya_rec_src_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 351 maya_rec_src_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 365 maya_rec_src_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 384 maya_pb_route_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 402 maya_pb_route_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 412 maya_pb_route_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument [all...] |
H A D | wtm.c | 113 static int stac9460_dac_mute_get(struct snd_kcontrol *kcontrol, argument 116 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); 123 if (kcontrol->private_value) { 127 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); 140 static int stac9460_dac_mute_put(struct snd_kcontrol *kcontrol, argument 143 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); 148 if (kcontrol->private_value) { 159 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); 181 static int stac9460_dac_vol_info(struct snd_kcontrol *kcontrol, argument 191 static int stac9460_dac_vol_get(struct snd_kcontrol *kcontrol, argument 213 stac9460_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 258 stac9460_adc_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 280 stac9460_adc_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 316 stac9460_adc_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 326 stac9460_adc_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 350 stac9460_adc_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 386 stac9460_mic_sw_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 395 stac9460_mic_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 411 stac9460_mic_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument [all...] |
H A D | prodigy192.c | 94 static int stac9460_dac_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 96 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); 100 if (kcontrol->private_value) 103 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME; 109 static int stac9460_dac_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 111 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); 115 if (kcontrol->private_value) 118 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME; 133 static int stac9460_dac_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 142 static int stac9460_dac_vol_get(struct snd_kcontrol *kcontrol, struc argument 158 stac9460_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 189 stac9460_adc_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 203 stac9460_adc_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 225 stac9460_adc_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 234 stac9460_adc_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 249 stac9460_adc_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 268 stac9460_mic_sw_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 277 stac9460_mic_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 288 stac9460_mic_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 539 ak4114_input_sw_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 548 ak4114_input_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 562 ak4114_input_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument [all...] |
/linux-master/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) argument 394 int mask = (kcontrol->private_value >> 16) & 0xff; 403 static int snd_cs4236_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 405 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); 407 int reg = kcontrol->private_value & 0xff; 408 int shift = (kcontrol->private_value >> 8) & 0xff; 409 int mask = (kcontrol->private_value >> 16) & 0xff; 410 int invert = (kcontrol->private_value >> 24) & 0xff; 420 static int snd_cs4236_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 422 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); 449 snd_cs4236_get_singlec(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 466 snd_cs4236_put_singlec(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 505 snd_cs4236_info_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 516 snd_cs4236_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 538 snd_cs4236_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 592 snd_cs4236_get_double1(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 614 snd_cs4236_put_double1(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 658 snd_cs4236_get_master_digital(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 670 snd_cs4236_put_master_digital(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 719 snd_cs4235_get_output_accu(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 731 snd_cs4235_put_output_accu(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 929 snd_cs4236_get_iec958_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 950 snd_cs4236_put_iec958_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 1021 const struct snd_kcontrol_new *kcontrol; local [all...] |
/linux-master/sound/isa/gus/ |
H A D | gus_mixer.c | 25 static int snd_gf1_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 27 struct snd_gus_card *gus = snd_kcontrol_chip(kcontrol); 28 int shift = kcontrol->private_value & 0xff; 29 int invert = (kcontrol->private_value >> 8) & 1; 37 static int snd_gf1_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 39 struct snd_gus_card *gus = snd_kcontrol_chip(kcontrol); 41 int shift = kcontrol->private_value & 0xff; 42 int invert = (kcontrol->private_value >> 8) & 1; 66 static int snd_ics_info_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 75 static int snd_ics_get_double(struct snd_kcontrol *kcontrol, struc argument 91 snd_ics_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument [all...] |
/linux-master/sound/soc/mediatek/mt8186/ |
H A D | mt8186-misc-control.c | 74 static int mt8186_sgen_get(struct snd_kcontrol *kcontrol, argument 77 struct snd_soc_component *cmpnt = snd_soc_kcontrol_component(kcontrol); 86 static int mt8186_sgen_set(struct snd_kcontrol *kcontrol, argument 89 struct snd_soc_component *cmpnt = snd_soc_kcontrol_component(kcontrol); 92 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; 128 static int mt8186_sgen_rate_get(struct snd_kcontrol *kcontrol, argument 131 struct snd_soc_component *cmpnt = snd_soc_kcontrol_component(kcontrol); 140 static int mt8186_sgen_rate_set(struct snd_kcontrol *kcontrol, argument 143 struct snd_soc_component *cmpnt = snd_soc_kcontrol_component(kcontrol); 146 struct soc_enum *e = (struct soc_enum *)kcontrol 172 mt8186_sgen_amplitude_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 183 mt8186_sgen_amplitude_set(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument [all...] |
/linux-master/sound/ppc/ |
H A D | burgundy.c | 162 static int snd_pmac_burgundy_info_volume(struct snd_kcontrol *kcontrol, argument 172 static int snd_pmac_burgundy_get_volume(struct snd_kcontrol *kcontrol, argument 175 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); 176 unsigned int addr = BASE2ADDR(kcontrol->private_value & 0xff); 177 int shift = (kcontrol->private_value >> 8) & 0xff; 183 static int snd_pmac_burgundy_put_volume(struct snd_kcontrol *kcontrol, argument 186 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); 187 unsigned int addr = BASE2ADDR(kcontrol->private_value & 0xff); 188 int shift = (kcontrol->private_value >> 8) & 0xff; 238 static int snd_pmac_burgundy_info_volume_2b(struct snd_kcontrol *kcontrol, argument 248 snd_pmac_burgundy_get_volume_2b(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 259 snd_pmac_burgundy_put_volume_2b(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 284 snd_pmac_burgundy_info_gain(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 295 snd_pmac_burgundy_get_gain(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 313 snd_pmac_burgundy_put_gain(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 346 snd_pmac_burgundy_info_switch_w(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 357 snd_pmac_burgundy_get_switch_w(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 372 snd_pmac_burgundy_put_switch_w(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 402 snd_pmac_burgundy_info_switch_b(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 413 snd_pmac_burgundy_get_switch_b(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 428 snd_pmac_burgundy_put_switch_b(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument [all...] |
/linux-master/sound/pci/ca0106/ |
H A D | ca0106_mixer.c | 146 static int snd_ca0106_shared_spdif_get(struct snd_kcontrol *kcontrol, argument 149 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); 155 static int snd_ca0106_shared_spdif_put(struct snd_kcontrol *kcontrol, argument 158 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); 171 static int snd_ca0106_capture_source_info(struct snd_kcontrol *kcontrol, argument 181 static int snd_ca0106_capture_source_get(struct snd_kcontrol *kcontrol, argument 184 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); 190 static int snd_ca0106_capture_source_put(struct snd_kcontrol *kcontrol, argument 193 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); 208 static int snd_ca0106_i2c_capture_source_info(struct snd_kcontrol *kcontrol, argument 218 snd_ca0106_i2c_capture_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 227 snd_ca0106_i2c_capture_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 247 snd_ca0106_capture_line_in_side_out_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 255 snd_ca0106_capture_mic_line_in_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 263 snd_ca0106_capture_mic_line_in_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 272 snd_ca0106_capture_mic_line_in_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 309 snd_ca0106_spdif_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 325 snd_ca0106_spdif_get_default(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 336 snd_ca0106_spdif_get_stream(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 347 snd_ca0106_spdif_get_mask(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 365 snd_ca0106_spdif_put_default(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 385 snd_ca0106_spdif_put_stream(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 401 snd_ca0106_volume_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 411 snd_ca0106_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 427 snd_ca0106_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 448 snd_ca0106_i2c_volume_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 458 snd_ca0106_i2c_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 471 snd_ca0106_i2c_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 507 spi_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 518 spi_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument [all...] |
/linux-master/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) argument 47 int mask = (kcontrol->private_value >> 24) & 0xff; 56 static int snd_sbmixer_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 58 struct snd_sb *sb = snd_kcontrol_chip(kcontrol); 60 int reg = kcontrol->private_value & 0xff; 61 int shift = (kcontrol->private_value >> 16) & 0xff; 62 int mask = (kcontrol->private_value >> 24) & 0xff; 72 static int snd_sbmixer_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 74 struct snd_sb *sb = snd_kcontrol_chip(kcontrol); 76 int reg = kcontrol 97 snd_sbmixer_info_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 108 snd_sbmixer_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 128 snd_sbmixer_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 168 snd_dt019x_input_sw_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 177 snd_dt019x_input_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 213 snd_dt019x_input_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 254 snd_als4k_mono_capture_route_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 264 snd_als4k_mono_capture_route_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 282 snd_als4k_mono_capture_route_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 308 snd_sb8mixer_info_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 318 snd_sb8mixer_get_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 341 snd_sb8mixer_put_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 375 snd_sb16mixer_info_input_sw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 384 snd_sb16mixer_get_input_sw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 405 snd_sb16mixer_put_input_sw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument [all...] |
/linux-master/sound/pci/hda/ |
H A D | hda_beep.c | 284 static bool ctl_has_mute(struct snd_kcontrol *kcontrol) argument 286 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); 287 return query_amp_caps(codec, get_amp_nid(kcontrol), 288 get_amp_direction(kcontrol)) & AC_AMPCAP_MUTE; 295 * @kcontrol: ctl element 298 int snd_hda_mixer_amp_switch_get_beep(struct snd_kcontrol *kcontrol, argument 301 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); 303 int chs = get_amp_channels(kcontrol); 305 if (beep && (!beep->enabled || !ctl_has_mute(kcontrol))) { 312 return snd_hda_mixer_amp_switch_get(kcontrol, ucontro 321 snd_hda_mixer_amp_switch_put_beep(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument [all...] |
/linux-master/sound/soc/codecs/ |
H A D | tas2781-i2c.c | 52 * @kcontrol: control pointer 61 static int tas2781_digital_getvol(struct snd_kcontrol *kcontrol, argument 64 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); 67 (struct soc_mixer_control *)kcontrol->private_value; 72 static int tas2781_digital_putvol(struct snd_kcontrol *kcontrol, argument 75 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); 78 (struct soc_mixer_control *)kcontrol->private_value; 83 static int tas2781_amp_getvol(struct snd_kcontrol *kcontrol, argument 86 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); 89 (struct soc_mixer_control *)kcontrol 94 tas2781_amp_putvol(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 106 tas2781_force_fwload_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 121 tas2781_force_fwload_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 153 tasdevice_set_profile_id(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 170 tasdevice_info_programs(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 185 tasdevice_info_configurations( struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 201 tasdevice_info_profile(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) argument 215 tasdevice_get_profile_id(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 263 tasdevice_program_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 274 tasdevice_program_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 290 tasdevice_configuration_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 302 tasdevice_configuration_put( struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument 430 tasdevice_dapm_event(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol, int event) argument [all...] |
H A D | simple-mux.c | 23 static int simple_mux_control_get(struct snd_kcontrol *kcontrol, argument 26 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kcontrol); 35 static int simple_mux_control_put(struct snd_kcontrol *kcontrol, argument 38 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kcontrol); 39 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; 53 return snd_soc_dapm_mux_update_power(dapm, kcontrol,
|
/linux-master/sound/pci/ac97/ |
H A D | ac97_patch.h | 56 static int snd_ac97_info_volsw(struct snd_kcontrol *kcontrol, 58 static int snd_ac97_get_volsw(struct snd_kcontrol *kcontrol, 60 static int snd_ac97_put_volsw(struct snd_kcontrol *kcontrol, 75 static int snd_ac97_info_enum_double(struct snd_kcontrol *kcontrol, 77 static int snd_ac97_get_enum_double(struct snd_kcontrol *kcontrol, 79 static int snd_ac97_put_enum_double(struct snd_kcontrol *kcontrol,
|
/linux-master/include/sound/ |
H A D | soc-topology.h | 50 struct snd_kcontrol *kcontrol; member in struct:snd_soc_dobj_control 57 unsigned int *kcontrol_type; /* kcontrol type: mixer, enum, bytes */ 78 int (*get)(struct snd_kcontrol *kcontrol, 80 int (*put)(struct snd_kcontrol *kcontrol, 82 int (*info)(struct snd_kcontrol *kcontrol, 89 int (*get)(struct snd_kcontrol *kcontrol, unsigned int __user *bytes, 91 int (*put)(struct snd_kcontrol *kcontrol, 110 /* external kcontrol init - used for any driver specific init */ 160 /* vendor specific kcontrol handlers available for binding */
|