Home
last modified time | relevance | path

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

12345678910>>...14

/sound/i2c/other/
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 …]
Dak4117.c142 static int snd_ak4117_in_error_info(struct snd_kcontrol *kcontrol, in snd_ak4117_in_error_info() argument
152 static int snd_ak4117_in_error_get(struct snd_kcontrol *kcontrol, in snd_ak4117_in_error_get() argument
155 struct ak4117 *chip = snd_kcontrol_chip(kcontrol); in snd_ak4117_in_error_get()
159 chip->errors[kcontrol->private_value]; in snd_ak4117_in_error_get()
160 chip->errors[kcontrol->private_value] = 0; in snd_ak4117_in_error_get()
167 static int snd_ak4117_in_bit_get(struct snd_kcontrol *kcontrol, in snd_ak4117_in_bit_get() argument
170 struct ak4117 *chip = snd_kcontrol_chip(kcontrol); in snd_ak4117_in_bit_get()
171 unsigned char reg = kcontrol->private_value & 0xff; in snd_ak4117_in_bit_get()
172 unsigned char bit = (kcontrol->private_value >> 8) & 0xff; in snd_ak4117_in_bit_get()
173 unsigned char inv = (kcontrol->private_value >> 31) & 1; in snd_ak4117_in_bit_get()
[all …]
/sound/soc/
Dsoc-ops.c40 int snd_soc_info_enum_double(struct snd_kcontrol *kcontrol, in snd_soc_info_enum_double() argument
43 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in snd_soc_info_enum_double()
59 int snd_soc_get_enum_double(struct snd_kcontrol *kcontrol, in snd_soc_get_enum_double() argument
62 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in snd_soc_get_enum_double()
63 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in snd_soc_get_enum_double()
93 int snd_soc_put_enum_double(struct snd_kcontrol *kcontrol, in snd_soc_put_enum_double() argument
96 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in snd_soc_put_enum_double()
97 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in snd_soc_put_enum_double()
181 int snd_soc_info_volsw(struct snd_kcontrol *kcontrol, in snd_soc_info_volsw() argument
185 (struct soc_mixer_control *)kcontrol->private_value; in snd_soc_info_volsw()
[all …]
/sound/ppc/
Dburgundy.c161 static int snd_pmac_burgundy_info_volume(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_info_volume() argument
171 static int snd_pmac_burgundy_get_volume(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_get_volume() argument
174 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_burgundy_get_volume()
175 unsigned int addr = BASE2ADDR(kcontrol->private_value & 0xff); in snd_pmac_burgundy_get_volume()
176 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_burgundy_get_volume()
182 static int snd_pmac_burgundy_put_volume(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_put_volume() argument
185 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_burgundy_put_volume()
186 unsigned int addr = BASE2ADDR(kcontrol->private_value & 0xff); in snd_pmac_burgundy_put_volume()
187 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_burgundy_put_volume()
237 static int snd_pmac_burgundy_info_volume_2b(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_info_volume_2b() argument
[all …]
Dawacs.c122 static int snd_pmac_awacs_info_volume(struct snd_kcontrol *kcontrol, in snd_pmac_awacs_info_volume() argument
132 static int snd_pmac_awacs_get_volume(struct snd_kcontrol *kcontrol, in snd_pmac_awacs_get_volume() argument
135 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_awacs_get_volume()
136 int reg = kcontrol->private_value & 0xff; in snd_pmac_awacs_get_volume()
137 int lshift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_awacs_get_volume()
138 int inverted = (kcontrol->private_value >> 16) & 1; in snd_pmac_awacs_get_volume()
155 static int snd_pmac_awacs_put_volume(struct snd_kcontrol *kcontrol, in snd_pmac_awacs_put_volume() argument
158 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_awacs_put_volume()
159 int reg = kcontrol->private_value & 0xff; in snd_pmac_awacs_put_volume()
160 int lshift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_awacs_put_volume()
[all …]
/sound/pci/ca0106/
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 …]
/sound/pci/
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()
90 static int snd_ak4531_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ak4531_put_single() argument
92 struct snd_ak4531 *ak4531 = snd_kcontrol_chip(kcontrol); in snd_ak4531_put_single()
[all …]
/sound/isa/cs423x/
Dcs4236_lib.c394 static int snd_cs4236_info_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_cs4236_info_single() argument
396 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_info_single()
405 static int snd_cs4236_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_get_single() argument
407 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_get_single()
409 int reg = kcontrol->private_value & 0xff; in snd_cs4236_get_single()
410 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_get_single()
411 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_get_single()
412 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_get_single()
422 static int snd_cs4236_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_put_single() argument
424 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_put_single()
[all …]
/sound/isa/sb/
Dsb_mixer.c45 static int snd_sbmixer_info_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_sbmixer_info_single() argument
47 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_sbmixer_info_single()
56 static int snd_sbmixer_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontro… in snd_sbmixer_get_single() argument
58 struct snd_sb *sb = snd_kcontrol_chip(kcontrol); in snd_sbmixer_get_single()
60 int reg = kcontrol->private_value & 0xff; in snd_sbmixer_get_single()
61 int shift = (kcontrol->private_value >> 16) & 0xff; in snd_sbmixer_get_single()
62 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_sbmixer_get_single()
72 static int snd_sbmixer_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontro… in snd_sbmixer_put_single() argument
74 struct snd_sb *sb = snd_kcontrol_chip(kcontrol); in snd_sbmixer_put_single()
76 int reg = kcontrol->private_value & 0xff; in snd_sbmixer_put_single()
[all …]
/sound/pci/emu10k1/
Demumixer.c32 static int snd_emu10k1_spdif_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_emu10k1_spdif_info() argument
39 static int snd_emu10k1_spdif_get(struct snd_kcontrol *kcontrol, in snd_emu10k1_spdif_get() argument
42 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); in snd_emu10k1_spdif_get()
43 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_spdif_get()
58 static int snd_emu10k1_spdif_get_mask(struct snd_kcontrol *kcontrol, in snd_emu10k1_spdif_get_mask() argument
378 static int snd_emu1010_input_output_source_info(struct snd_kcontrol *kcontrol, in snd_emu1010_input_output_source_info() argument
381 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); in snd_emu1010_input_output_source_info()
389 static int snd_emu1010_output_source_get(struct snd_kcontrol *kcontrol, in snd_emu1010_output_source_get() argument
392 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); in snd_emu1010_output_source_get()
395 channel = (kcontrol->private_value) & 0xff; in snd_emu1010_output_source_get()
[all …]
/sound/pci/ice1712/
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()
185 static int maya_vol_put(struct snd_kcontrol *kcontrol, in maya_vol_put() argument
188 struct snd_maya44 *chip = snd_kcontrol_chip(kcontrol); in maya_vol_put()
190 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; in maya_vol_put()
191 unsigned int idx = kcontrol->private_value; in maya_vol_put()
[all …]
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 …]
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()
140 static int stac9460_dac_mute_put(struct snd_kcontrol *kcontrol, in stac9460_dac_mute_put() argument
143 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_dac_mute_put()
148 if (kcontrol->private_value) { in stac9460_dac_mute_put()
159 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in stac9460_dac_mute_put()
181 static int stac9460_dac_vol_info(struct snd_kcontrol *kcontrol, in stac9460_dac_vol_info() argument
191 static int stac9460_dac_vol_get(struct snd_kcontrol *kcontrol, in stac9460_dac_vol_get() argument
[all …]
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()
297 static int wm_pcm_mute_put(struct snd_kcontrol *kcontrol, in wm_pcm_mute_put() argument
300 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_pcm_mute_put()
318 static int wm_master_vol_info(struct snd_kcontrol *kcontrol, in wm_master_vol_info() argument
328 static int wm_master_vol_get(struct snd_kcontrol *kcontrol, in wm_master_vol_get() argument
331 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_master_vol_get()
340 static int wm_master_vol_put(struct snd_kcontrol *kcontrol, in wm_master_vol_put() argument
343 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_master_vol_put()
464 static int wm_vol_info(struct snd_kcontrol *kcontrol, in wm_vol_info() argument
[all …]
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()
125 static int wm_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_dac_vol_put() argument
127 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_dac_vol_put()
155 static int wm_adc_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in wm_adc_vol_info() argument
164 static int wm_adc_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_vol_get() argument
166 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_adc_vol_get()
180 static int wm_adc_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_vol_put() argument
182 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_adc_vol_put()
[all …]
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()
133 static int stac9460_dac_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in stac9460_dac_vol_info() argument
142 static int stac9460_dac_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in stac9460_dac_vol_get() argument
[all …]
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()
350 static int wm_dac_vol_info(struct snd_kcontrol *kcontrol, in wm_dac_vol_info() argument
360 static int wm_dac_vol_get(struct snd_kcontrol *kcontrol, in wm_dac_vol_get() argument
363 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_dac_vol_get()
373 static int wm_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_dac_vol_put() argument
375 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_dac_vol_put()
[all …]
/sound/drivers/pcsp/
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 …]
/sound/drivers/vx/
Dvx_mixer.c400 static int vx_output_level_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in vx_output_level_info() argument
402 struct vx_core *chip = snd_kcontrol_chip(kcontrol); in vx_output_level_info()
410 static int vx_output_level_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_output_level_get() argument
412 struct vx_core *chip = snd_kcontrol_chip(kcontrol); in vx_output_level_get()
413 int codec = kcontrol->id.index; in vx_output_level_get()
421 static int vx_output_level_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_output_level_put() argument
423 struct vx_core *chip = snd_kcontrol_chip(kcontrol); in vx_output_level_put()
424 int codec = kcontrol->id.index; in vx_output_level_put()
459 static int vx_audio_src_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in vx_audio_src_info() argument
467 struct vx_core *chip = snd_kcontrol_chip(kcontrol); in vx_audio_src_info()
[all …]
/sound/usb/6fire/
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 …]
/sound/pci/mixart/
Dmixart_mixer.c330 static int mixart_analog_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in mixart_analog_vol_info() argument
334 if(kcontrol->private_value == 0) { /* playback */ in mixart_analog_vol_info()
344 static int mixart_analog_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_analog_vol_get() argument
346 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_analog_vol_get()
348 if(kcontrol->private_value == 0) { /* playback */ in mixart_analog_vol_get()
359 static int mixart_analog_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_analog_vol_put() argument
361 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_analog_vol_put()
366 is_capture = (kcontrol->private_value != 0); in mixart_analog_vol_put()
408 static int mixart_audio_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_audio_sw_get() argument
410 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_audio_sw_get()
[all …]
/sound/pci/pcxhr/
Dpcxhr_mixer.c74 static int pcxhr_analog_vol_info(struct snd_kcontrol *kcontrol, in pcxhr_analog_vol_info() argument
77 struct snd_pcxhr *chip = snd_kcontrol_chip(kcontrol); in pcxhr_analog_vol_info()
81 if (kcontrol->private_value == 0) { /* playback */ in pcxhr_analog_vol_info()
109 static int pcxhr_analog_vol_get(struct snd_kcontrol *kcontrol, in pcxhr_analog_vol_get() argument
112 struct snd_pcxhr *chip = snd_kcontrol_chip(kcontrol); in pcxhr_analog_vol_get()
114 if (kcontrol->private_value == 0) { /* playback */ in pcxhr_analog_vol_get()
125 static int pcxhr_analog_vol_put(struct snd_kcontrol *kcontrol, in pcxhr_analog_vol_put() argument
128 struct snd_pcxhr *chip = snd_kcontrol_chip(kcontrol); in pcxhr_analog_vol_put()
133 is_capture = (kcontrol->private_value != 0); in pcxhr_analog_vol_put()
190 static int pcxhr_audio_sw_get(struct snd_kcontrol *kcontrol, in pcxhr_audio_sw_get() argument
[all …]
/sound/usb/
Dmixer_us16x08.c174 static int snd_us16x08_route_info(struct snd_kcontrol *kcontrol, in snd_us16x08_route_info() argument
180 static int snd_us16x08_route_get(struct snd_kcontrol *kcontrol, in snd_us16x08_route_get() argument
183 struct usb_mixer_elem_info *elem = kcontrol->private_data; in snd_us16x08_route_get()
192 static int snd_us16x08_route_put(struct snd_kcontrol *kcontrol, in snd_us16x08_route_put() argument
195 struct usb_mixer_elem_info *elem = kcontrol->private_data; in snd_us16x08_route_put()
238 static int snd_us16x08_master_info(struct snd_kcontrol *kcontrol, in snd_us16x08_master_info() argument
243 uinfo->value.integer.max = SND_US16X08_KCMAX(kcontrol); in snd_us16x08_master_info()
244 uinfo->value.integer.min = SND_US16X08_KCMIN(kcontrol); in snd_us16x08_master_info()
245 uinfo->value.integer.step = SND_US16X08_KCSTEP(kcontrol); in snd_us16x08_master_info()
249 static int snd_us16x08_master_get(struct snd_kcontrol *kcontrol, in snd_us16x08_master_get() argument
[all …]
/sound/isa/gus/
Dgus_mixer.c25 static int snd_gf1_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_gf1_get_single() argument
27 struct snd_gus_card *gus = snd_kcontrol_chip(kcontrol); in snd_gf1_get_single()
28 int shift = kcontrol->private_value & 0xff; in snd_gf1_get_single()
29 int invert = (kcontrol->private_value >> 8) & 1; in snd_gf1_get_single()
37 static int snd_gf1_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_gf1_put_single() argument
39 struct snd_gus_card *gus = snd_kcontrol_chip(kcontrol); in snd_gf1_put_single()
41 int shift = kcontrol->private_value & 0xff; in snd_gf1_put_single()
42 int invert = (kcontrol->private_value >> 8) & 1; in snd_gf1_put_single()
66 static int snd_ics_info_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_ics_info_double() argument
75 static int snd_ics_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ics_get_double() argument
[all …]
/sound/aoa/codecs/
Dtas.c224 static int tas_snd_vol_info(struct snd_kcontrol *kcontrol, in tas_snd_vol_info() argument
234 static int tas_snd_vol_get(struct snd_kcontrol *kcontrol, in tas_snd_vol_get() argument
237 struct tas *tas = snd_kcontrol_chip(kcontrol); in tas_snd_vol_get()
246 static int tas_snd_vol_put(struct snd_kcontrol *kcontrol, in tas_snd_vol_put() argument
249 struct tas *tas = snd_kcontrol_chip(kcontrol); in tas_snd_vol_put()
284 static int tas_snd_mute_get(struct snd_kcontrol *kcontrol, in tas_snd_mute_get() argument
287 struct tas *tas = snd_kcontrol_chip(kcontrol); in tas_snd_mute_get()
296 static int tas_snd_mute_put(struct snd_kcontrol *kcontrol, in tas_snd_mute_put() argument
299 struct tas *tas = snd_kcontrol_chip(kcontrol); in tas_snd_mute_put()
325 static int tas_snd_mixer_info(struct snd_kcontrol *kcontrol, in tas_snd_mixer_info() argument
[all …]

12345678910>>...14