Home
last modified time | relevance | path

Searched refs:uinfo (Results 1 – 25 of 145) sorted by relevance

123456

/sound/drivers/pcsp/
Dpcsp_mixer.c14 struct snd_ctl_elem_info *uinfo) in pcsp_enable_info() argument
16 uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; in pcsp_enable_info()
17 uinfo->count = 1; in pcsp_enable_info()
18 uinfo->value.integer.min = 0; in pcsp_enable_info()
19 uinfo->value.integer.max = 1; in pcsp_enable_info()
45 struct snd_ctl_elem_info *uinfo) in pcsp_treble_info() argument
48 uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED; in pcsp_treble_info()
49 uinfo->count = 1; in pcsp_treble_info()
50 uinfo->value.enumerated.items = chip->max_treble + 1; in pcsp_treble_info()
51 if (uinfo->value.enumerated.item > chip->max_treble) in pcsp_treble_info()
[all …]
/sound/core/oss/
Dmixer_oss.c526 struct snd_ctl_elem_info *uinfo; in snd_mixer_oss_get_volume1_vol() local
538 uinfo = kzalloc(sizeof(*uinfo), GFP_KERNEL); in snd_mixer_oss_get_volume1_vol()
540 if (uinfo == NULL || uctl == NULL) in snd_mixer_oss_get_volume1_vol()
542 if (kctl->info(kctl, uinfo)) in snd_mixer_oss_get_volume1_vol()
546 if (uinfo->type == SNDRV_CTL_ELEM_TYPE_BOOLEAN && in snd_mixer_oss_get_volume1_vol()
547 uinfo->value.integer.min == 0 && uinfo->value.integer.max == 1) in snd_mixer_oss_get_volume1_vol()
549 …*left = snd_mixer_oss_conv1(uctl->value.integer.value[0], uinfo->value.integer.min, uinfo->value.i… in snd_mixer_oss_get_volume1_vol()
550 if (uinfo->count > 1) in snd_mixer_oss_get_volume1_vol()
551 …*right = snd_mixer_oss_conv1(uctl->value.integer.value[1], uinfo->value.integer.min, uinfo->value.… in snd_mixer_oss_get_volume1_vol()
555 kfree(uinfo); in snd_mixer_oss_get_volume1_vol()
[all …]
/sound/i2c/other/
Dak4117.c158 struct snd_ctl_elem_info *uinfo) in snd_ak4117_in_error_info() argument
160 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in snd_ak4117_in_error_info()
161 uinfo->count = 1; in snd_ak4117_in_error_info()
162 uinfo->value.integer.min = 0; in snd_ak4117_in_error_info()
163 uinfo->value.integer.max = LONG_MAX; in snd_ak4117_in_error_info()
196 struct snd_ctl_elem_info *uinfo) in snd_ak4117_rx_info() argument
198 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in snd_ak4117_rx_info()
199 uinfo->count = 1; in snd_ak4117_rx_info()
200 uinfo->value.integer.min = 0; in snd_ak4117_rx_info()
201 uinfo->value.integer.max = 1; in snd_ak4117_rx_info()
[all …]
Dak4113.c189 struct snd_ctl_elem_info *uinfo) in snd_ak4113_in_error_info() argument
191 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in snd_ak4113_in_error_info()
192 uinfo->count = 1; in snd_ak4113_in_error_info()
193 uinfo->value.integer.min = 0; in snd_ak4113_in_error_info()
194 uinfo->value.integer.max = LONG_MAX; in snd_ak4113_in_error_info()
228 struct snd_ctl_elem_info *uinfo) in snd_ak4113_rx_info() argument
230 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in snd_ak4113_rx_info()
231 uinfo->count = 1; in snd_ak4113_rx_info()
232 uinfo->value.integer.min = 0; in snd_ak4113_rx_info()
233 uinfo->value.integer.max = 5; in snd_ak4113_rx_info()
[all …]
Dak4114.c184 struct snd_ctl_elem_info *uinfo) in snd_ak4114_in_error_info() argument
186 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in snd_ak4114_in_error_info()
187 uinfo->count = 1; in snd_ak4114_in_error_info()
188 uinfo->value.integer.min = 0; in snd_ak4114_in_error_info()
189 uinfo->value.integer.max = LONG_MAX; in snd_ak4114_in_error_info()
222 struct snd_ctl_elem_info *uinfo) in snd_ak4114_rate_info() argument
224 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in snd_ak4114_rate_info()
225 uinfo->count = 1; in snd_ak4114_rate_info()
226 uinfo->value.integer.min = 0; in snd_ak4114_rate_info()
227 uinfo->value.integer.max = 192000; in snd_ak4114_rate_info()
[all …]
/sound/pci/cs5535audio/
Dcs5535audio_olpc.c66 struct snd_ctl_elem_info *uinfo) in olpc_dc_info() argument
68 uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; in olpc_dc_info()
69 uinfo->count = 1; in olpc_dc_info()
70 uinfo->value.integer.min = 0; in olpc_dc_info()
71 uinfo->value.integer.max = 1; in olpc_dc_info()
90 struct snd_ctl_elem_info *uinfo) in olpc_mic_info() argument
92 uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; in olpc_mic_info()
93 uinfo->count = 1; in olpc_mic_info()
94 uinfo->value.integer.min = 0; in olpc_mic_info()
95 uinfo->value.integer.max = 1; in olpc_mic_info()
/sound/core/
Dvmaster.c80 struct snd_ctl_elem_info *uinfo; in slave_init() local
90 uinfo = kmalloc(sizeof(*uinfo), GFP_KERNEL); in slave_init()
91 if (!uinfo) in slave_init()
93 uinfo->id = slave->slave.id; in slave_init()
94 err = slave->slave.info(&slave->slave, uinfo); in slave_init()
96 kfree(uinfo); in slave_init()
99 slave->info.type = uinfo->type; in slave_init()
100 slave->info.count = uinfo->count; in slave_init()
105 kfree(uinfo); in slave_init()
108 slave->info.min_val = uinfo->value.integer.min; in slave_init()
[all …]
/sound/i2c/
Dtea6330t.c87 struct snd_ctl_elem_info *uinfo) in snd_tea6330t_info_master_volume() argument
89 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in snd_tea6330t_info_master_volume()
90 uinfo->count = 2; in snd_tea6330t_info_master_volume()
91 uinfo->value.integer.min = 0; in snd_tea6330t_info_master_volume()
92 uinfo->value.integer.max = 43; in snd_tea6330t_info_master_volume()
190 struct snd_ctl_elem_info *uinfo) in snd_tea6330t_info_bass() argument
194 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in snd_tea6330t_info_bass()
195 uinfo->count = 1; in snd_tea6330t_info_bass()
196 uinfo->value.integer.min = 0; in snd_tea6330t_info_bass()
197 uinfo->value.integer.max = tea->max_bass; in snd_tea6330t_info_bass()
[all …]
/sound/soc/img/
Dimg-spdif-in.c248 struct snd_ctl_elem_info *uinfo) in img_spdif_in_iec958_info() argument
250 uinfo->type = SNDRV_CTL_ELEM_TYPE_IEC958; in img_spdif_in_iec958_info()
251 uinfo->count = 1; in img_spdif_in_iec958_info()
288 struct snd_ctl_elem_info *uinfo) in img_spdif_in_info_multi_freq() argument
290 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in img_spdif_in_info_multi_freq()
291 uinfo->count = IMG_SPDIF_IN_NUM_ACLKGEN; in img_spdif_in_info_multi_freq()
292 uinfo->value.integer.min = 0; in img_spdif_in_info_multi_freq()
293 uinfo->value.integer.max = LONG_MAX; in img_spdif_in_info_multi_freq()
362 struct snd_ctl_elem_info *uinfo) in img_spdif_in_info_lock_freq() argument
364 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in img_spdif_in_info_lock_freq()
[all …]
/sound/ppc/
Dburgundy.c175 struct snd_ctl_elem_info *uinfo) in snd_pmac_burgundy_info_volume() argument
177 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in snd_pmac_burgundy_info_volume()
178 uinfo->count = 2; in snd_pmac_burgundy_info_volume()
179 uinfo->value.integer.min = 0; in snd_pmac_burgundy_info_volume()
180 uinfo->value.integer.max = 100; in snd_pmac_burgundy_info_volume()
251 struct snd_ctl_elem_info *uinfo) in snd_pmac_burgundy_info_volume_2b() argument
253 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in snd_pmac_burgundy_info_volume_2b()
254 uinfo->count = 2; in snd_pmac_burgundy_info_volume_2b()
255 uinfo->value.integer.min = 0; in snd_pmac_burgundy_info_volume_2b()
256 uinfo->value.integer.max = 100; in snd_pmac_burgundy_info_volume_2b()
[all …]
Dawacs.c136 struct snd_ctl_elem_info *uinfo) in snd_pmac_awacs_info_volume() argument
138 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in snd_pmac_awacs_info_volume()
139 uinfo->count = 2; in snd_pmac_awacs_info_volume()
140 uinfo->value.integer.min = 0; in snd_pmac_awacs_info_volume()
141 uinfo->value.integer.max = 15; in snd_pmac_awacs_info_volume()
334 struct snd_ctl_elem_info *uinfo) in snd_pmac_awacs_info_volume_amp() argument
336 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in snd_pmac_awacs_info_volume_amp()
337 uinfo->count = 2; in snd_pmac_awacs_info_volume_amp()
338 uinfo->value.integer.min = 0; in snd_pmac_awacs_info_volume_amp()
339 uinfo->value.integer.max = 31; in snd_pmac_awacs_info_volume_amp()
[all …]
/sound/aoa/codecs/
Dtas.c226 struct snd_ctl_elem_info *uinfo) in tas_snd_vol_info() argument
228 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in tas_snd_vol_info()
229 uinfo->count = 2; in tas_snd_vol_info()
230 uinfo->value.integer.min = 0; in tas_snd_vol_info()
231 uinfo->value.integer.max = 177; in tas_snd_vol_info()
327 struct snd_ctl_elem_info *uinfo) in tas_snd_mixer_info() argument
329 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in tas_snd_mixer_info()
330 uinfo->count = 2; in tas_snd_mixer_info()
331 uinfo->value.integer.min = 0; in tas_snd_mixer_info()
332 uinfo->value.integer.max = 177; in tas_snd_mixer_info()
[all …]
/sound/pci/asihpi/
Dasihpi.c1496 struct snd_ctl_elem_info *uinfo) in snd_asihpi_volume_info() argument
1518 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in snd_asihpi_volume_info()
1519 uinfo->count = count; in snd_asihpi_volume_info()
1520 uinfo->value.integer.min = min_gain_mB / VOL_STEP_mB; in snd_asihpi_volume_info()
1521 uinfo->value.integer.max = max_gain_mB / VOL_STEP_mB; in snd_asihpi_volume_info()
1522 uinfo->value.integer.step = step_gain_mB / VOL_STEP_mB; in snd_asihpi_volume_info()
1622 struct snd_ctl_elem_info *uinfo) in snd_asihpi_level_info() argument
1639 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in snd_asihpi_level_info()
1640 uinfo->count = 2; in snd_asihpi_level_info()
1641 uinfo->value.integer.min = min_gain_mB / HPI_UNITS_PER_dB; in snd_asihpi_level_info()
[all …]
/sound/usb/line6/
Dtoneport.c148 struct snd_ctl_elem_info *uinfo) in snd_toneport_monitor_info() argument
150 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in snd_toneport_monitor_info()
151 uinfo->count = 1; in snd_toneport_monitor_info()
152 uinfo->value.integer.min = 0; in snd_toneport_monitor_info()
153 uinfo->value.integer.max = 256; in snd_toneport_monitor_info()
195 struct snd_ctl_elem_info *uinfo) in snd_toneport_source_info() argument
199 uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED; in snd_toneport_source_info()
200 uinfo->count = 1; in snd_toneport_source_info()
201 uinfo->value.enumerated.items = size; in snd_toneport_source_info()
203 if (uinfo->value.enumerated.item >= size) in snd_toneport_source_info()
[all …]
Dpcm.c25 struct snd_ctl_elem_info *uinfo) in snd_line6_impulse_volume_info() argument
27 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in snd_line6_impulse_volume_info()
28 uinfo->count = 1; in snd_line6_impulse_volume_info()
29 uinfo->value.integer.min = 0; in snd_line6_impulse_volume_info()
30 uinfo->value.integer.max = 255; in snd_line6_impulse_volume_info()
68 struct snd_ctl_elem_info *uinfo) in snd_line6_impulse_period_info() argument
70 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in snd_line6_impulse_period_info()
71 uinfo->count = 1; in snd_line6_impulse_period_info()
72 uinfo->value.integer.min = 0; in snd_line6_impulse_period_info()
73 uinfo->value.integer.max = 2000; in snd_line6_impulse_period_info()
[all …]
/sound/soc/
Dsoc-ops.c46 struct snd_ctl_elem_info *uinfo) in snd_soc_info_enum_double() argument
50 return snd_ctl_enum_info(uinfo, e->shift_l == e->shift_r ? 1 : 2, in snd_soc_info_enum_double()
187 struct snd_ctl_elem_info *uinfo) in snd_soc_info_volsw() argument
198 uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; in snd_soc_info_volsw()
200 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in snd_soc_info_volsw()
202 uinfo->count = snd_soc_volsw_is_stereo(mc) ? 2 : 1; in snd_soc_info_volsw()
203 uinfo->value.integer.min = 0; in snd_soc_info_volsw()
204 uinfo->value.integer.max = platform_max - mc->min; in snd_soc_info_volsw()
222 struct snd_ctl_elem_info *uinfo) in snd_soc_info_volsw_sx() argument
227 snd_soc_info_volsw(kcontrol, uinfo); in snd_soc_info_volsw_sx()
[all …]
/sound/pci/ice1712/
Dphase.c333 struct snd_ctl_elem_info *uinfo) in wm_master_vol_info() argument
335 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in wm_master_vol_info()
336 uinfo->count = 2; in wm_master_vol_info()
337 uinfo->value.integer.min = 0; in wm_master_vol_info()
338 uinfo->value.integer.max = WM_VOL_MAX; in wm_master_vol_info()
479 struct snd_ctl_elem_info *uinfo) in wm_vol_info() argument
482 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in wm_vol_info()
483 uinfo->count = voices; in wm_vol_info()
484 uinfo->value.integer.min = 0; /* mute (-101dB) */ in wm_vol_info()
485 uinfo->value.integer.max = 0x7F; /* 0dB */ in wm_vol_info()
[all …]
Daureon.c203 struct snd_ctl_elem_info *uinfo) in aureon_universe_inmux_info() argument
208 return snd_ctl_enum_info(uinfo, 1, 3, texts); in aureon_universe_inmux_info()
361 static int aureon_ac97_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in aureon_ac97_vol_info() argument
363 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in aureon_ac97_vol_info()
364 uinfo->count = kcontrol->private_value & AUREON_AC97_STEREO ? 2 : 1; in aureon_ac97_vol_info()
365 uinfo->value.integer.min = 0; in aureon_ac97_vol_info()
366 uinfo->value.integer.max = 31; in aureon_ac97_vol_info()
747 static int wm_master_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in wm_master_vol_info() argument
749 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in wm_master_vol_info()
750 uinfo->count = 2; in wm_master_vol_info()
[all …]
Dprodigy_hifi.c256 struct snd_ctl_elem_info *uinfo) in ak4396_dac_vol_info() argument
258 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in ak4396_dac_vol_info()
259 uinfo->count = 2; in ak4396_dac_vol_info()
260 uinfo->value.integer.min = 0; /* mute */ in ak4396_dac_vol_info()
261 uinfo->value.integer.max = 0xFF; /* linear */ in ak4396_dac_vol_info()
384 struct snd_ctl_elem_info *uinfo) in wm_dac_vol_info() argument
386 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in wm_dac_vol_info()
387 uinfo->count = 2; in wm_dac_vol_info()
388 uinfo->value.integer.min = 0; /* mute */ in wm_dac_vol_info()
389 uinfo->value.integer.max = DAC_RES; /* 0dB, 0.5dB step */ in wm_dac_vol_info()
[all …]
/sound/pci/emu10k1/
Demumixer.c46 static int snd_emu10k1_spdif_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_emu10k1_spdif_info() argument
48 uinfo->type = SNDRV_CTL_ELEM_TYPE_IEC958; in snd_emu10k1_spdif_info()
49 uinfo->count = 1; in snd_emu10k1_spdif_info()
393 struct snd_ctl_elem_info *uinfo) in snd_emu1010_input_output_source_info() argument
398 return snd_ctl_enum_info(uinfo, 1, 49, emu1616_src_texts); in snd_emu1010_input_output_source_info()
400 return snd_ctl_enum_info(uinfo, 1, 53, emu1010_src_texts); in snd_emu1010_input_output_source_info()
688 struct snd_ctl_elem_info *uinfo) in snd_emu1010_internal_clock_info() argument
694 return snd_ctl_enum_info(uinfo, 1, 4, texts); in snd_emu1010_internal_clock_info()
810 struct snd_ctl_elem_info *uinfo) in snd_emu1010_optical_out_info() argument
816 return snd_ctl_enum_info(uinfo, 1, 2, texts); in snd_emu1010_optical_out_info()
[all …]
/sound/pci/echoaudio/
Dechoaudio.c991 struct snd_ctl_elem_info *uinfo) in snd_echo_output_gain_info() argument
996 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in snd_echo_output_gain_info()
997 uinfo->count = num_busses_out(chip); in snd_echo_output_gain_info()
998 uinfo->value.integer.min = ECHOGAIN_MINOUT; in snd_echo_output_gain_info()
999 uinfo->value.integer.max = ECHOGAIN_MAXOUT; in snd_echo_output_gain_info()
1072 struct snd_ctl_elem_info *uinfo) in snd_echo_input_gain_info() argument
1077 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in snd_echo_input_gain_info()
1078 uinfo->count = num_analog_busses_in(chip); in snd_echo_input_gain_info()
1079 uinfo->value.integer.min = ECHOGAIN_MININP; in snd_echo_input_gain_info()
1080 uinfo->value.integer.max = ECHOGAIN_MAXINP; in snd_echo_input_gain_info()
[all …]
/sound/pci/ca0106/
Dca0106_mixer.c186 struct snd_ctl_elem_info *uinfo) in snd_ca0106_capture_source_info() argument
192 return snd_ctl_enum_info(uinfo, 1, 6, texts); in snd_ca0106_capture_source_info()
223 struct snd_ctl_elem_info *uinfo) in snd_ca0106_i2c_capture_source_info() argument
229 return snd_ctl_enum_info(uinfo, 1, 4, texts); in snd_ca0106_i2c_capture_source_info()
262 struct snd_ctl_elem_info *uinfo) in snd_ca0106_capture_line_in_side_out_info() argument
266 return snd_ctl_enum_info(uinfo, 1, 2, texts); in snd_ca0106_capture_line_in_side_out_info()
270 struct snd_ctl_elem_info *uinfo) in snd_ca0106_capture_mic_line_in_info() argument
274 return snd_ctl_enum_info(uinfo, 1, 2, texts); in snd_ca0106_capture_mic_line_in_info()
324 struct snd_ctl_elem_info *uinfo) in snd_ca0106_spdif_info() argument
326 uinfo->type = SNDRV_CTL_ELEM_TYPE_IEC958; in snd_ca0106_spdif_info()
[all …]
/sound/usb/
Dmixer_scarlett.c233 struct snd_ctl_elem_info *uinfo) in scarlett_ctl_switch_info() argument
237 uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; in scarlett_ctl_switch_info()
238 uinfo->count = elem->channels; in scarlett_ctl_switch_info()
239 uinfo->value.integer.min = 0; in scarlett_ctl_switch_info()
240 uinfo->value.integer.max = 1; in scarlett_ctl_switch_info()
302 struct snd_ctl_elem_info *uinfo) in scarlett_ctl_info() argument
306 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in scarlett_ctl_info()
307 uinfo->count = elem->channels; in scarlett_ctl_info()
308 uinfo->value.integer.min = 0; in scarlett_ctl_info()
309 uinfo->value.integer.max = (int)kctl->private_value + in scarlett_ctl_info()
[all …]
/sound/drivers/opl4/
Dopl4_mixer.c23 static int snd_opl4_ctl_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_opl4_ctl_info() argument
25 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in snd_opl4_ctl_info()
26 uinfo->count = 2; in snd_opl4_ctl_info()
27 uinfo->value.integer.min = 0; in snd_opl4_ctl_info()
28 uinfo->value.integer.max = 7; in snd_opl4_ctl_info()
/sound/pci/pcxhr/
Dpcxhr_mixer.c88 struct snd_ctl_elem_info *uinfo) in pcxhr_analog_vol_info() argument
92 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in pcxhr_analog_vol_info()
93 uinfo->count = 2; in pcxhr_analog_vol_info()
96 uinfo->value.integer.min = in pcxhr_analog_vol_info()
98 uinfo->value.integer.max = in pcxhr_analog_vol_info()
101 uinfo->value.integer.min = in pcxhr_analog_vol_info()
103 uinfo->value.integer.max = in pcxhr_analog_vol_info()
108 uinfo->value.integer.min = in pcxhr_analog_vol_info()
110 uinfo->value.integer.max = in pcxhr_analog_vol_info()
113 uinfo->value.integer.min = in pcxhr_analog_vol_info()
[all …]

123456