Home
last modified time | relevance | path

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

12345678910>>...14

/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 Dak4117.c132 static int snd_ak4117_in_error_info(struct snd_kcontrol *kcontrol, in snd_ak4117_in_error_info() argument
142 static int snd_ak4117_in_error_get(struct snd_kcontrol *kcontrol, in snd_ak4117_in_error_get() argument
145 struct ak4117 *chip = snd_kcontrol_chip(kcontrol); in snd_ak4117_in_error_get()
149 chip->errors[kcontrol->private_value]; in snd_ak4117_in_error_get()
150 chip->errors[kcontrol->private_value] = 0; in snd_ak4117_in_error_get()
156 static int snd_ak4117_in_bit_get(struct snd_kcontrol *kcontrol, in snd_ak4117_in_bit_get() argument
159 struct ak4117 *chip = snd_kcontrol_chip(kcontrol); in snd_ak4117_in_bit_get()
160 unsigned char reg = kcontrol->private_value & 0xff; in snd_ak4117_in_bit_get()
161 unsigned char bit = (kcontrol->private_value >> 8) & 0xff; in snd_ak4117_in_bit_get()
162 unsigned char inv = (kcontrol->private_value >> 31) & 1; in snd_ak4117_in_bit_get()
[all …]
/linux/sound/soc/
H A Dsoc-ops.c39 int snd_soc_info_enum_double(struct snd_kcontrol *kcontrol, in snd_soc_info_enum_double() argument
42 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in snd_soc_info_enum_double()
58 int snd_soc_get_enum_double(struct snd_kcontrol *kcontrol, in snd_soc_get_enum_double() argument
61 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in snd_soc_get_enum_double()
62 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in snd_soc_get_enum_double()
89 int snd_soc_put_enum_double(struct snd_kcontrol *kcontrol, in snd_soc_put_enum_double() argument
92 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in snd_soc_put_enum_double()
93 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in snd_soc_put_enum_double()
209 static int soc_info_volsw(struct snd_kcontrol *kcontrol, in soc_info_volsw() argument
217 const char *vol_string = strstr(kcontrol->id.name, " Volume"); in soc_info_volsw()
[all …]
/linux/sound/pci/
H A Dak4531_codec.c60 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()
89 static int snd_ak4531_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ak4531_put_single() argument
91 struct snd_ak4531 *ak4531 = snd_kcontrol_chip(kcontrol); in snd_ak4531_put_single()
[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/pci/ice1712/
H A Dmaya44.c157 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()
184 static int maya_vol_put(struct snd_kcontrol *kcontrol, in maya_vol_put() argument
187 struct snd_maya44 *chip = snd_kcontrol_chip(kcontrol); in maya_vol_put()
189 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; in maya_vol_put()
190 unsigned int idx = kcontrol->private_value; in maya_vol_put()
[all …]
H A Daureon.c188 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 Dwtm.c113 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()
139 static int stac9460_dac_mute_put(struct snd_kcontrol *kcontrol, in stac9460_dac_mute_put() argument
142 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_dac_mute_put()
147 if (kcontrol->private_value) { in stac9460_dac_mute_put()
158 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in stac9460_dac_mute_put()
180 static int stac9460_dac_vol_info(struct snd_kcontrol *kcontrol, in stac9460_dac_vol_info() argument
190 static int stac9460_dac_vol_get(struct snd_kcontrol *kcontrol, in stac9460_dac_vol_get() argument
[all …]
H A Dphase.c285 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()
296 static int wm_pcm_mute_put(struct snd_kcontrol *kcontrol, in wm_pcm_mute_put() argument
299 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_pcm_mute_put()
317 static int wm_master_vol_info(struct snd_kcontrol *kcontrol, in wm_master_vol_info() argument
327 static int wm_master_vol_get(struct snd_kcontrol *kcontrol, in wm_master_vol_get() argument
330 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_master_vol_get()
339 static int wm_master_vol_put(struct snd_kcontrol *kcontrol, in wm_master_vol_put() argument
342 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_master_vol_put()
463 static int wm_vol_info(struct snd_kcontrol *kcontrol, in wm_vol_info() argument
[all …]
H A Dpontis.c100 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()
124 static int wm_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_dac_vol_put() argument
126 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_dac_vol_put()
153 static int wm_adc_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in wm_adc_vol_info() argument
162 static int wm_adc_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_vol_get() argument
164 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_adc_vol_get()
177 static int wm_adc_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_vol_put() argument
179 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_adc_vol_put()
[all …]
H A Dprodigy192.c94 static int stac9460_dac_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in stac9460_dac_mute_get() argument
96 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_dac_mute_get()
100 if (kcontrol->private_value) in stac9460_dac_mute_get()
103 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME; in stac9460_dac_mute_get()
109 static int stac9460_dac_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in stac9460_dac_mute_put() argument
111 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_dac_mute_put()
115 if (kcontrol->private_value) in stac9460_dac_mute_put()
118 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME; in stac9460_dac_mute_put()
131 static int stac9460_dac_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in stac9460_dac_vol_info() argument
140 static int stac9460_dac_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in stac9460_dac_vol_get() argument
[all …]
H A Dprodigy_hifi.c241 static int ak4396_dac_vol_info(struct snd_kcontrol *kcontrol, in ak4396_dac_vol_info() argument
251 static int ak4396_dac_vol_get(struct snd_kcontrol *kcontrol, in ak4396_dac_vol_get() argument
254 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in ak4396_dac_vol_get()
264 static int ak4396_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in ak4396_dac_vol_put() argument
266 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in ak4396_dac_vol_put()
349 static int wm_dac_vol_info(struct snd_kcontrol *kcontrol, in wm_dac_vol_info() argument
359 static int wm_dac_vol_get(struct snd_kcontrol *kcontrol, in wm_dac_vol_get() argument
362 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_dac_vol_get()
372 static int wm_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_dac_vol_put() argument
374 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_dac_vol_put()
[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
100 snd_sof_enum_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) snd_sof_enum_get() argument
115 snd_sof_enum_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) snd_sof_enum_put() argument
130 snd_sof_bytes_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) snd_sof_bytes_get() argument
145 snd_sof_bytes_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) snd_sof_bytes_put() argument
160 snd_sof_bytes_ext_put(struct snd_kcontrol * kcontrol,const unsigned int __user * binary_data,unsigned int size) snd_sof_bytes_ext_put() argument
180 snd_sof_bytes_ext_volatile_get(struct snd_kcontrol * kcontrol,unsigned int __user * binary_data,unsigned int size) snd_sof_bytes_ext_volatile_get() argument
206 snd_sof_bytes_ext_get(struct snd_kcontrol * kcontrol,unsigned int __user * binary_data,unsigned int size) snd_sof_bytes_ext_get() 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.c260 int tasdevice_info_profile(struct snd_kcontrol *kcontrol, in tasdevice_info_profile()
263 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); in tasdevice_info_profile()
274 int tasdevice_info_programs(struct snd_kcontrol *kcontrol, in tasdevice_info_programs()
277 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); in tasdevice_info_programs()
288 int tasdevice_info_config(struct snd_kcontrol *kcontrol, in tasdevice_info_config()
291 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); in tasdevice_info_config()
303 int tasdevice_get_profile_id(struct snd_kcontrol *kcontrol, in tasdevice_get_profile_id()
306 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); in tasdevice_get_profile_id()
310 dev_dbg(tas_priv->dev, "%s: kcontrol %s: %d\n", __func__,
311 kcontrol
255 tasdevice_info_profile(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_info * uinfo) tasdevice_info_profile() argument
269 tasdevice_info_programs(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_info * uinfo) tasdevice_info_programs() argument
283 tasdevice_info_config(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_info * uinfo) tasdevice_info_config() argument
298 tasdevice_get_profile_id(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tasdevice_get_profile_id() argument
312 tasdevice_set_profile_id(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tasdevice_set_profile_id() argument
336 tasdevice_program_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tasdevice_program_get() argument
350 tasdevice_program_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tasdevice_program_put() argument
375 tasdevice_config_get(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tasdevice_config_get() argument
389 tasdevice_config_put(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) tasdevice_config_put() 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/ppc/
H A Dawacs.c123 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()
154 static int snd_pmac_awacs_put_volume(struct snd_kcontrol *kcontrol, in snd_pmac_awacs_put_volume() argument
157 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_awacs_put_volume()
158 int reg = kcontrol->private_value & 0xff; in snd_pmac_awacs_put_volume()
159 int lshift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_awacs_put_volume()
[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/usb/
H A Dmixer_us16x08.c173 static int snd_us16x08_route_info(struct snd_kcontrol *kcontrol, in snd_us16x08_route_info() argument
179 static int snd_us16x08_route_get(struct snd_kcontrol *kcontrol, in snd_us16x08_route_get() argument
182 struct usb_mixer_elem_info *elem = snd_kcontrol_chip(kcontrol); in snd_us16x08_route_get()
191 static int snd_us16x08_route_put(struct snd_kcontrol *kcontrol, in snd_us16x08_route_put() argument
194 struct usb_mixer_elem_info *elem = snd_kcontrol_chip(kcontrol); in snd_us16x08_route_put()
237 static int snd_us16x08_master_info(struct snd_kcontrol *kcontrol, in snd_us16x08_master_info() argument
242 uinfo->value.integer.max = SND_US16X08_KCMAX(kcontrol); in snd_us16x08_master_info()
243 uinfo->value.integer.min = SND_US16X08_KCMIN(kcontrol); in snd_us16x08_master_info()
244 uinfo->value.integer.step = SND_US16X08_KCSTEP(kcontrol); in snd_us16x08_master_info()
248 static int snd_us16x08_master_get(struct snd_kcontrol *kcontrol, in snd_us16x08_master_get() argument
[all …]
/linux/sound/aoa/codecs/
H A Dtas.c223 static int tas_snd_vol_info(struct snd_kcontrol *kcontrol, in tas_snd_vol_info() argument
233 static int tas_snd_vol_get(struct snd_kcontrol *kcontrol, in tas_snd_vol_get() argument
236 struct tas *tas = snd_kcontrol_chip(kcontrol); in tas_snd_vol_get()
244 static int tas_snd_vol_put(struct snd_kcontrol *kcontrol, in tas_snd_vol_put() argument
247 struct tas *tas = snd_kcontrol_chip(kcontrol); in tas_snd_vol_put()
279 static int tas_snd_mute_get(struct snd_kcontrol *kcontrol, in tas_snd_mute_get() argument
282 struct tas *tas = snd_kcontrol_chip(kcontrol); in tas_snd_mute_get()
290 static int tas_snd_mute_put(struct snd_kcontrol *kcontrol, in tas_snd_mute_put() argument
293 struct tas *tas = snd_kcontrol_chip(kcontrol); in tas_snd_mute_put()
316 static int tas_snd_mixer_info(struct snd_kcontrol *kcontrol, in tas_snd_mixer_info() 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...]
/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 …]

12345678910>>...14