Home
last modified time | relevance | path

Searched refs:kcontrol (Results 1 – 25 of 265) sorted by relevance

1234567891011

/linux/sound/i2c/other/
H A Dak4xxx-adda.c352 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 …]
H A Dpt2258.c70 static int pt2258_stereo_volume_info(struct snd_kcontrol *kcontrol, in pt2258_stereo_volume_info() argument
80 static int pt2258_stereo_volume_get(struct snd_kcontrol *kcontrol, in pt2258_stereo_volume_get() argument
83 struct snd_pt2258 *pt = snd_kcontrol_chip(kcontrol); in pt2258_stereo_volume_get()
84 int base = kcontrol->private_value; in pt2258_stereo_volume_get()
92 static int pt2258_stereo_volume_put(struct snd_kcontrol *kcontrol, in pt2258_stereo_volume_put() argument
95 struct snd_pt2258 *pt = snd_kcontrol_chip(kcontrol); in pt2258_stereo_volume_put()
96 int base = kcontrol->private_value; in pt2258_stereo_volume_put()
133 static int pt2258_switch_get(struct snd_kcontrol *kcontrol, in pt2258_switch_get() argument
136 struct snd_pt2258 *pt = snd_kcontrol_chip(kcontrol); in pt2258_switch_get()
142 static int pt2258_switch_put(struct snd_kcontrol *kcontrol, in pt2258_switch_put() argument
[all …]
/linux/sound/pci/ca0106/
H A Dca0106_mixer.c146 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/drivers/staging/vc04_services/bcm2835-audio/
H A Dbcm2835-ctl.c30 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 Dcontrol.c18 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/drivers/pcsp/
H A Dpcsp_mixer.c14 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/hda/codecs/side-codecs/
H A Dtas2781_hda.c255 int tasdevice_info_profile(struct snd_kcontrol *kcontrol, in tasdevice_info_profile() argument
258 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); in tasdevice_info_profile()
269 int tasdevice_info_programs(struct snd_kcontrol *kcontrol, in tasdevice_info_programs() argument
272 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); in tasdevice_info_programs()
283 int tasdevice_info_config(struct snd_kcontrol *kcontrol, in tasdevice_info_config() argument
286 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); in tasdevice_info_config()
298 int tasdevice_get_profile_id(struct snd_kcontrol *kcontrol, in tasdevice_get_profile_id() argument
301 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); in tasdevice_get_profile_id()
306 kcontrol->id.name, tas_priv->rcabin.profile_cfg_id); in tasdevice_get_profile_id()
312 int tasdevice_set_profile_id(struct snd_kcontrol *kcontrol, in tasdevice_set_profile_id() argument
[all …]
/linux/sound/usb/6fire/
H A Dcontrol.c175 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/soc/codecs/aw88395/
H A Daw88395.c104 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_kcontrol_chip(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_kcontrol_chip(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_kcontrol_chip(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_kcontrol_chip(kcontrol); in aw88395_set_fade_out_time()
157 (struct soc_mixer_control *)kcontrol in aw88395_set_fade_out_time()
173 aw88395_profile_info(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_info * uinfo) aw88395_profile_info() argument
208 aw88395_profile_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) aw88395_profile_get() argument
219 aw88395_profile_set(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) aw88395_profile_set() argument
245 aw88395_volume_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) aw88395_volume_get() argument
257 aw88395_volume_set(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) aw88395_volume_set() argument
281 aw88395_get_fade_step(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) aw88395_get_fade_step() argument
292 aw88395_set_fade_step(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) aw88395_set_fade_step() argument
313 aw88395_re_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) aw88395_re_get() argument
325 aw88395_re_set(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) aw88395_re_set() argument
[all...]
/linux/sound/soc/mediatek/mt8186/
H A Dmt8186-misc-control.c74 static int mt8186_sgen_get(struct snd_kcontrol *kcontrol, in mt8186_sgen_get() argument
77 struct snd_soc_component *cmpnt = snd_kcontrol_chip(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_kcontrol_chip(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_kcontrol_chip(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_kcontrol_chip(kcontrol); in mt8186_sgen_rate_set()
146 struct soc_enum *e = (struct soc_enum *)kcontrol in mt8186_sgen_rate_set()
172 mt8186_sgen_amplitude_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) mt8186_sgen_amplitude_get() argument
183 mt8186_sgen_amplitude_set(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) mt8186_sgen_amplitude_set() argument
[all...]
/linux/sound/soc/codecs/
H A Dsma1307.c303 static int sma1307_force_mute_get(struct snd_kcontrol *kcontrol, in sma1307_force_mute_get() argument
306 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in sma1307_force_mute_get()
314 static int sma1307_force_mute_put(struct snd_kcontrol *kcontrol,
317 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in sma1307_force_mute_put()
331 static int sma1307_tdm_slot_get(struct snd_kcontrol *kcontrol, in sma1307_force_mute_put()
334 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in sma1307_tdm_slot_get()
341 if (!strcmp(kcontrol->id.name, SMA1307_TDM_RX0_POS_NAME)) { in sma1307_tdm_slot_get()
345 } else if (!strcmp(kcontrol->id.name, SMA1307_TDM_RX1_POS_NAME)) { in sma1307_tdm_slot_get()
349 } else if (!strcmp(kcontrol->id.name, SMA1307_TDM_TX0_POS_NAME)) { in sma1307_tdm_slot_get()
353 } else if (!strcmp(kcontrol in sma1307_tdm_slot_get()
315 sma1307_force_mute_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) sma1307_force_mute_put() argument
333 sma1307_tdm_slot_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) sma1307_tdm_slot_get() argument
367 sma1307_tdm_slot_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) sma1307_tdm_slot_put() argument
421 sma1307_sw_ot1_prot_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) sma1307_sw_ot1_prot_get() argument
433 sma1307_sw_ot1_prot_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) sma1307_sw_ot1_prot_put() argument
451 sma1307_check_fault_status_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) sma1307_check_fault_status_get() argument
463 sma1307_check_fault_status_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) sma1307_check_fault_status_put() argument
481 sma1307_check_fault_period_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) sma1307_check_fault_period_get() argument
493 sma1307_check_fault_period_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) sma1307_check_fault_period_put() argument
516 sma1307_reset_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) sma1307_reset_put() argument
533 sma1307_binary_mode_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) sma1307_binary_mode_put() argument
601 sma1307_aif_in_event(struct snd_soc_dapm_widget * w,struct snd_kcontrol * kcontrol,int event) sma1307_aif_in_event() argument
650 sma1307_sdo_setting_event(struct snd_soc_dapm_widget * w,struct snd_kcontrol * kcontrol,int event) sma1307_sdo_setting_event() argument
724 sma1307_aif_out_event(struct snd_soc_dapm_widget * w,struct snd_kcontrol * kcontrol,int event) sma1307_aif_out_event() argument
754 sma1307_sdo_event(struct snd_soc_dapm_widget * w,struct snd_kcontrol * kcontrol,int event) sma1307_sdo_event() argument
786 sma1307_power_event(struct snd_soc_dapm_widget * w,struct snd_kcontrol * kcontrol,int event) sma1307_power_event() argument
802 sma1307_dapm_aif_in_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) sma1307_dapm_aif_in_get() argument
816 sma1307_dapm_aif_in_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) sma1307_dapm_aif_in_put() argument
842 sma1307_dapm_sdo_setting_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) sma1307_dapm_sdo_setting_get() argument
857 sma1307_dapm_sdo_setting_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) sma1307_dapm_sdo_setting_put() argument
883 sma1307_dapm_aif_out_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) sma1307_dapm_aif_out_get() argument
907 sma1307_dapm_aif_out_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) sma1307_dapm_aif_out_put() argument
945 sma1307_dapm_sdo_enable_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) sma1307_dapm_sdo_enable_get() argument
959 sma1307_dapm_sdo_enable_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) sma1307_dapm_sdo_enable_put() argument
[all...]
H A Dwm8958-dsp2.c412 struct snd_kcontrol *kcontrol, int event) in wm8958_aif_ev() argument
453 static int wm8958_put_mbc_enum(struct snd_kcontrol *kcontrol, in wm8958_put_mbc_enum() argument
456 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in wm8958_put_mbc_enum()
475 static int wm8958_get_mbc_enum(struct snd_kcontrol *kcontrol, in wm8958_get_mbc_enum() argument
478 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in wm8958_get_mbc_enum()
486 static int wm8958_mbc_info(struct snd_kcontrol *kcontrol, in wm8958_mbc_info() argument
496 static int wm8958_mbc_get(struct snd_kcontrol *kcontrol, in wm8958_mbc_get() argument
499 int mbc = kcontrol->private_value; in wm8958_mbc_get()
500 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in wm8958_mbc_get()
508 static int wm8958_mbc_put(struct snd_kcontrol *kcontrol, in wm8958_mbc_put() argument
543 wm8958_put_vss_enum(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) wm8958_put_vss_enum() argument
565 wm8958_get_vss_enum(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) wm8958_get_vss_enum() argument
576 wm8958_put_vss_hpf_enum(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) wm8958_put_vss_hpf_enum() argument
598 wm8958_get_vss_hpf_enum(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) wm8958_get_vss_hpf_enum() argument
609 wm8958_vss_info(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_info * uinfo) wm8958_vss_info() argument
619 wm8958_vss_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) wm8958_vss_get() argument
631 wm8958_vss_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) wm8958_vss_put() argument
670 wm8958_hpf_info(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_info * uinfo) wm8958_hpf_info() argument
680 wm8958_hpf_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) wm8958_hpf_get() argument
695 wm8958_hpf_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) wm8958_hpf_put() argument
743 wm8958_put_enh_eq_enum(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) wm8958_put_enh_eq_enum() argument
765 wm8958_get_enh_eq_enum(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) wm8958_get_enh_eq_enum() argument
776 wm8958_enh_eq_info(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_info * uinfo) wm8958_enh_eq_info() argument
786 wm8958_enh_eq_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) wm8958_enh_eq_get() argument
798 wm8958_enh_eq_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) wm8958_enh_eq_put() argument
[all...]
H A Dtas2781-i2c.c163 static int tas2781_digital_getvol(struct snd_kcontrol *kcontrol, in tas2781_digital_getvol() argument
166 struct snd_soc_component *codec = snd_kcontrol_chip(kcontrol); in tas2781_digital_getvol()
169 (struct soc_mixer_control *)kcontrol->private_value; in tas2781_digital_getvol()
174 static int tas2781_digital_putvol(struct snd_kcontrol *kcontrol, in tas2781_digital_putvol() argument
177 struct snd_soc_component *codec = snd_kcontrol_chip(kcontrol); in tas2781_digital_putvol()
180 (struct soc_mixer_control *)kcontrol->private_value; in tas2781_digital_putvol()
185 static int tas2781_amp_getvol(struct snd_kcontrol *kcontrol, in tas2781_amp_getvol() argument
188 struct snd_soc_component *codec = snd_kcontrol_chip(kcontrol); in tas2781_amp_getvol()
191 (struct soc_mixer_control *)kcontrol->private_value; in tas2781_amp_getvol()
196 static int tas2781_amp_putvol(struct snd_kcontrol *kcontrol, in tas2781_amp_putvol() argument
[all …]
H A Drt715-sdca.c131 static int rt715_sdca_set_amp_gain_put(struct snd_kcontrol *kcontrol, in rt715_sdca_set_amp_gain_put() argument
134 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in rt715_sdca_set_amp_gain_put()
136 (struct soc_mixer_control *)kcontrol->private_value; in rt715_sdca_set_amp_gain_put()
164 static int rt715_sdca_set_amp_gain_4ch_put(struct snd_kcontrol *kcontrol, in rt715_sdca_set_amp_gain_4ch_put() argument
167 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in rt715_sdca_set_amp_gain_4ch_put()
170 (struct rt715_sdca_kcontrol_private *)kcontrol->private_value; in rt715_sdca_set_amp_gain_4ch_put()
200 static int rt715_sdca_set_amp_gain_8ch_put(struct snd_kcontrol *kcontrol, in rt715_sdca_set_amp_gain_8ch_put() argument
203 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in rt715_sdca_set_amp_gain_8ch_put()
206 (struct rt715_sdca_kcontrol_private *)kcontrol->private_value; in rt715_sdca_set_amp_gain_8ch_put()
236 static int rt715_sdca_set_amp_gain_get(struct snd_kcontrol *kcontrol, in rt715_sdca_set_amp_gain_get() argument
259 rt715_sdca_set_amp_gain_4ch_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) rt715_sdca_set_amp_gain_4ch_get() argument
284 rt715_sdca_set_amp_gain_8ch_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) rt715_sdca_set_amp_gain_8ch_get() argument
322 rt715_sdca_get_volsw(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) rt715_sdca_get_volsw() argument
348 rt715_sdca_put_volsw(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) rt715_sdca_put_volsw() argument
401 rt715_sdca_fu_info(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_info * uinfo) rt715_sdca_fu_info() argument
502 rt715_sdca_mux_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) rt715_sdca_mux_get() argument
538 rt715_sdca_mux_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) rt715_sdca_mux_put() argument
652 rt715_sdca_pde23_24_event(struct snd_soc_dapm_widget * w,struct snd_kcontrol * kcontrol,int event) rt715_sdca_pde23_24_event() argument
[all...]
/linux/sound/i2c/
H A Dtea6330t.c68 static int snd_tea6330t_info_master_volume(struct snd_kcontrol *kcontrol, in snd_tea6330t_info_master_volume() argument
78 static int snd_tea6330t_get_master_volume(struct snd_kcontrol *kcontrol, in snd_tea6330t_get_master_volume() argument
81 struct tea6330t *tea = snd_kcontrol_chip(kcontrol); in snd_tea6330t_get_master_volume()
90 static int snd_tea6330t_put_master_volume(struct snd_kcontrol *kcontrol, in snd_tea6330t_put_master_volume() argument
93 struct tea6330t *tea = snd_kcontrol_chip(kcontrol); in snd_tea6330t_put_master_volume()
130 static int snd_tea6330t_get_master_switch(struct snd_kcontrol *kcontrol, in snd_tea6330t_get_master_switch() argument
133 struct tea6330t *tea = snd_kcontrol_chip(kcontrol); in snd_tea6330t_get_master_switch()
142 static int snd_tea6330t_put_master_switch(struct snd_kcontrol *kcontrol, in snd_tea6330t_put_master_switch() argument
145 struct tea6330t *tea = snd_kcontrol_chip(kcontrol); in snd_tea6330t_put_master_switch()
173 static int snd_tea6330t_info_bass(struct snd_kcontrol *kcontrol, in snd_tea6330t_info_bass() argument
[all …]
/linux/sound/soc/tegra/
H A Dtegra210_mbdrc.c233 static int tegra210_mbdrc_get(struct snd_kcontrol *kcontrol, in tegra210_mbdrc_get() argument
237 (struct soc_mixer_control *)kcontrol->private_value; in tegra210_mbdrc_get()
238 struct snd_soc_component *cmpnt = snd_kcontrol_chip(kcontrol); in tegra210_mbdrc_get()
249 static int tegra210_mbdrc_put(struct snd_kcontrol *kcontrol, in tegra210_mbdrc_put() argument
253 (struct soc_mixer_control *)kcontrol->private_value; in tegra210_mbdrc_put()
254 struct snd_soc_component *cmpnt = snd_kcontrol_chip(kcontrol); in tegra210_mbdrc_put()
267 static int tegra210_mbdrc_get_enum(struct snd_kcontrol *kcontrol, in tegra210_mbdrc_get_enum() argument
270 struct snd_soc_component *cmpnt = snd_kcontrol_chip(kcontrol); in tegra210_mbdrc_get_enum()
272 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in tegra210_mbdrc_get_enum()
282 static int tegra210_mbdrc_put_enum(struct snd_kcontrol *kcontrol, in tegra210_mbdrc_put_enum() argument
304 tegra210_mbdrc_band_params_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra210_mbdrc_band_params_get() argument
325 tegra210_mbdrc_band_params_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra210_mbdrc_band_params_put() argument
350 tegra210_mbdrc_threshold_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra210_mbdrc_threshold_get() argument
378 tegra210_mbdrc_threshold_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra210_mbdrc_threshold_put() argument
411 tegra210_mbdrc_biquad_coeffs_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra210_mbdrc_biquad_coeffs_get() argument
423 tegra210_mbdrc_biquad_coeffs_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra210_mbdrc_biquad_coeffs_put() argument
439 tegra210_mbdrc_param_info(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_info * uinfo) tegra210_mbdrc_param_info() argument
450 tegra210_mbdrc_vol_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra210_mbdrc_vol_get() argument
467 tegra210_mbdrc_vol_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra210_mbdrc_vol_put() argument
[all...]
H A Dtegra186_asrc.c239 static int tegra186_asrc_get_ratio_source(struct snd_kcontrol *kcontrol, in tegra186_asrc_get_ratio_source() argument
243 (struct soc_enum *)kcontrol->private_value; in tegra186_asrc_get_ratio_source()
244 struct snd_soc_component *cmpnt = snd_kcontrol_chip(kcontrol); in tegra186_asrc_get_ratio_source()
253 static int tegra186_asrc_put_ratio_source(struct snd_kcontrol *kcontrol, in tegra186_asrc_put_ratio_source() argument
257 (struct soc_enum *)kcontrol->private_value; in tegra186_asrc_put_ratio_source()
258 struct snd_soc_component *cmpnt = snd_kcontrol_chip(kcontrol); in tegra186_asrc_put_ratio_source()
273 static int tegra186_asrc_get_ratio_int(struct snd_kcontrol *kcontrol, in tegra186_asrc_get_ratio_int() argument
277 (struct soc_mixer_control *)kcontrol->private_value; in tegra186_asrc_get_ratio_int()
278 struct snd_soc_component *cmpnt = snd_kcontrol_chip(kcontrol); in tegra186_asrc_get_ratio_int()
291 static int tegra186_asrc_put_ratio_int(struct snd_kcontrol *kcontrol, in tegra186_asrc_put_ratio_int() argument
321 tegra186_asrc_get_ratio_frac(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra186_asrc_get_ratio_frac() argument
339 tegra186_asrc_put_ratio_frac(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra186_asrc_put_ratio_frac() argument
369 tegra186_asrc_get_hwcomp_disable(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra186_asrc_get_hwcomp_disable() argument
383 tegra186_asrc_put_hwcomp_disable(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra186_asrc_put_hwcomp_disable() argument
401 tegra186_asrc_get_input_threshold(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra186_asrc_get_input_threshold() argument
415 tegra186_asrc_put_input_threshold(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra186_asrc_put_input_threshold() argument
434 tegra186_asrc_get_output_threshold(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra186_asrc_get_output_threshold() argument
448 tegra186_asrc_put_output_threshold(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tegra186_asrc_put_output_threshold() argument
468 tegra186_asrc_widget_event(struct snd_soc_dapm_widget * w,struct snd_kcontrol * kcontrol,int event) tegra186_asrc_widget_event() argument
[all...]
/linux/sound/usb/qcom/
H A Dmixer_usb_offload.c23 snd_usb_offload_card_route_get(struct snd_kcontrol *kcontrol, in snd_usb_offload_card_route_get() argument
26 struct device *sysdev = snd_kcontrol_chip(kcontrol); in snd_usb_offload_card_route_get()
30 CARD_IDX(kcontrol->private_value), in snd_usb_offload_card_route_get()
31 PCM_IDX(kcontrol->private_value), in snd_usb_offload_card_route_get()
43 static int snd_usb_offload_card_route_info(struct snd_kcontrol *kcontrol, in snd_usb_offload_card_route_info() argument
62 snd_usb_offload_pcm_route_get(struct snd_kcontrol *kcontrol, in snd_usb_offload_pcm_route_get() argument
65 struct device *sysdev = snd_kcontrol_chip(kcontrol); in snd_usb_offload_pcm_route_get()
69 CARD_IDX(kcontrol->private_value), in snd_usb_offload_pcm_route_get()
70 PCM_IDX(kcontrol->private_value), in snd_usb_offload_pcm_route_get()
82 static int snd_usb_offload_pcm_route_info(struct snd_kcontrol *kcontrol, in snd_usb_offload_pcm_route_info() argument
/linux/sound/core/
H A Dvmaster.c178 static int follower_info(struct snd_kcontrol *kcontrol, in follower_info() argument
181 struct link_follower *follower = snd_kcontrol_chip(kcontrol); in follower_info()
185 static int follower_get(struct snd_kcontrol *kcontrol, in follower_get() argument
188 struct link_follower *follower = snd_kcontrol_chip(kcontrol); in follower_get()
192 static int follower_put(struct snd_kcontrol *kcontrol, in follower_put() argument
195 struct link_follower *follower = snd_kcontrol_chip(kcontrol); in follower_put()
221 static int follower_tlv_cmd(struct snd_kcontrol *kcontrol, in follower_tlv_cmd() argument
225 struct link_follower *follower = snd_kcontrol_chip(kcontrol); in follower_tlv_cmd()
230 static void follower_free(struct snd_kcontrol *kcontrol) in follower_free() argument
232 struct link_follower *follower = snd_kcontrol_chip(kcontrol); in follower_free()
[all …]
/linux/sound/hda/common/
H A Dbeep.c287 static bool ctl_has_mute(struct snd_kcontrol *kcontrol) in ctl_has_mute() argument
289 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ctl_has_mute()
290 return query_amp_caps(codec, get_amp_nid(kcontrol), in ctl_has_mute()
291 get_amp_direction(kcontrol)) & AC_AMPCAP_MUTE; in ctl_has_mute()
301 int snd_hda_mixer_amp_switch_get_beep(struct snd_kcontrol *kcontrol, in snd_hda_mixer_amp_switch_get_beep() argument
304 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_get_beep()
306 int chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_switch_get_beep()
308 if (beep && (!beep->enabled || !ctl_has_mute(kcontrol))) { in snd_hda_mixer_amp_switch_get_beep()
315 return snd_hda_mixer_amp_switch_get(kcontrol, ucontrol); in snd_hda_mixer_amp_switch_get_beep()
324 int snd_hda_mixer_amp_switch_put_beep(struct snd_kcontrol *kcontrol, in snd_hda_mixer_amp_switch_put_beep() argument
[all …]
/linux/sound/pci/au88x0/
H A Dau88x0_a3d.c717 snd_vortex_a3d_hrtf_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_vortex_a3d_hrtf_info() argument
726 snd_vortex_a3d_itd_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_vortex_a3d_itd_info() argument
735 snd_vortex_a3d_ild_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_vortex_a3d_ild_info() argument
744 snd_vortex_a3d_filter_info(struct snd_kcontrol *kcontrol, in snd_vortex_a3d_filter_info() argument
755 snd_vortex_a3d_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_vortex_a3d_get() argument
764 snd_vortex_a3d_hrtf_put(struct snd_kcontrol *kcontrol, in snd_vortex_a3d_hrtf_put() argument
767 a3dsrc_t *a = snd_kcontrol_chip(kcontrol); in snd_vortex_a3d_hrtf_put()
781 snd_vortex_a3d_itd_put(struct snd_kcontrol *kcontrol, in snd_vortex_a3d_itd_put() argument
784 a3dsrc_t *a = snd_kcontrol_chip(kcontrol); in snd_vortex_a3d_itd_put()
800 snd_vortex_a3d_ild_put(struct snd_kcontrol *kcontrol, in snd_vortex_a3d_ild_put() argument
[all …]
/linux/sound/ppc/
H A Ddaca.c82 static int daca_get_deemphasis(struct snd_kcontrol *kcontrol, in daca_get_deemphasis() argument
85 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in daca_get_deemphasis()
94 static int daca_put_deemphasis(struct snd_kcontrol *kcontrol, in daca_put_deemphasis() argument
97 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in daca_put_deemphasis()
113 static int daca_info_volume(struct snd_kcontrol *kcontrol, in daca_info_volume() argument
123 static int daca_get_volume(struct snd_kcontrol *kcontrol, in daca_get_volume() argument
126 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in daca_get_volume()
136 static int daca_put_volume(struct snd_kcontrol *kcontrol, in daca_put_volume() argument
139 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in daca_put_volume()
164 static int daca_get_amp(struct snd_kcontrol *kcontrol, in daca_get_amp() argument
[all …]
/linux/sound/usb/
H A Dmixer_quirks.c298 static int snd_audigy2nx_led_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_audigy2nx_led_get() argument
300 ucontrol->value.integer.value[0] = kcontrol->private_value >> 8; in snd_audigy2nx_led_get()
333 static int snd_audigy2nx_led_put(struct snd_kcontrol *kcontrol, in snd_audigy2nx_led_put() argument
336 struct usb_mixer_elem_list *list = snd_kcontrol_chip(kcontrol); in snd_audigy2nx_led_put()
338 int index = kcontrol->private_value & 0xff; in snd_audigy2nx_led_put()
340 int old_value = kcontrol->private_value >> 8; in snd_audigy2nx_led_put()
347 kcontrol->private_value = (value << 8) | index; in snd_audigy2nx_led_put()
456 static int snd_emu0204_ch_switch_info(struct snd_kcontrol *kcontrol, in snd_emu0204_ch_switch_info() argument
464 static int snd_emu0204_ch_switch_get(struct snd_kcontrol *kcontrol, in snd_emu0204_ch_switch_get() argument
467 ucontrol->value.enumerated.item[0] = kcontrol->private_value; in snd_emu0204_ch_switch_get()
[all …]
/linux/sound/soc/meson/
H A Dg12a-tohdmitx.c38 static int g12a_tohdmitx_i2s_mux_put_enum(struct snd_kcontrol *kcontrol, in g12a_tohdmitx_i2s_mux_put_enum() argument
41 struct snd_soc_component *component = snd_soc_dapm_kcontrol_to_component(kcontrol); in g12a_tohdmitx_i2s_mux_put_enum()
42 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_to_dapm(kcontrol); in g12a_tohdmitx_i2s_mux_put_enum()
43 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in g12a_tohdmitx_i2s_mux_put_enum()
59 snd_soc_dapm_mux_update_power(dapm, kcontrol, 0, NULL, NULL); in g12a_tohdmitx_i2s_mux_put_enum()
69 snd_soc_dapm_mux_update_power(dapm, kcontrol, mux, e, NULL); in g12a_tohdmitx_i2s_mux_put_enum()
87 static int g12a_tohdmitx_spdif_mux_put_enum(struct snd_kcontrol *kcontrol,
90 struct snd_soc_component *component = snd_soc_dapm_kcontrol_to_component(kcontrol); in g12a_tohdmitx_spdif_mux_put_enum()
91 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_to_dapm(kcontrol); in g12a_tohdmitx_spdif_mux_put_enum()
92 struct soc_enum *e = (struct soc_enum *)kcontrol in g12a_tohdmitx_spdif_mux_put_enum()
89 g12a_tohdmitx_spdif_mux_put_enum(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) g12a_tohdmitx_spdif_mux_put_enum() argument
[all...]
/linux/include/sound/
H A Dcontrol.h14 #define snd_kcontrol_chip(kcontrol) ((kcontrol)->private_data) argument
17 typedef int (snd_kcontrol_info_t) (struct snd_kcontrol * kcontrol, struct snd_ctl_elem_info * uinfo…
18 typedef int (snd_kcontrol_get_t) (struct snd_kcontrol * kcontrol, struct snd_ctl_elem_value * ucont…
19 typedef int (snd_kcontrol_put_t) (struct snd_kcontrol * kcontrol, struct snd_ctl_elem_value * ucont…
20 typedef int (snd_kcontrol_tlv_rw_t)(struct snd_kcontrol *kcontrol,
83 void (*private_free)(struct snd_kcontrol *kcontrol);
135 void snd_ctl_free_one(struct snd_kcontrol * kcontrol);
136 int snd_ctl_add(struct snd_card * card, struct snd_kcontrol * kcontrol);
137 int snd_ctl_remove(struct snd_card * card, struct snd_kcontrol * kcontrol);
138 int snd_ctl_replace(struct snd_card *card, struct snd_kcontrol *kcontrol, bool add_on_replace);
[all …]

1234567891011