Home
last modified time | relevance | path

Searched refs:integer (Results 1 – 25 of 276) sorted by relevance

12345678910>>...12

/sound/aoa/codecs/
Dtas.c228 uinfo->value.integer.min = 0; in tas_snd_vol_info()
229 uinfo->value.integer.max = 177; in tas_snd_vol_info()
239 ucontrol->value.integer.value[0] = tas->cached_volume_l; in tas_snd_vol_get()
240 ucontrol->value.integer.value[1] = tas->cached_volume_r; in tas_snd_vol_get()
250 if (ucontrol->value.integer.value[0] < 0 || in tas_snd_vol_put()
251 ucontrol->value.integer.value[0] > 177) in tas_snd_vol_put()
253 if (ucontrol->value.integer.value[1] < 0 || in tas_snd_vol_put()
254 ucontrol->value.integer.value[1] > 177) in tas_snd_vol_put()
258 if (tas->cached_volume_l == ucontrol->value.integer.value[0] in tas_snd_vol_put()
259 && tas->cached_volume_r == ucontrol->value.integer.value[1]) { in tas_snd_vol_put()
[all …]
/sound/usb/6fire/
Dcontrol.c180 uinfo->value.integer.min = 0; in usb6fire_control_output_vol_info()
181 uinfo->value.integer.max = 180; in usb6fire_control_output_vol_info()
198 if (rt->output_vol[ch] != ucontrol->value.integer.value[0]) { in usb6fire_control_output_vol_put()
199 rt->output_vol[ch] = ucontrol->value.integer.value[0]; in usb6fire_control_output_vol_put()
203 if (rt->output_vol[ch + 1] != ucontrol->value.integer.value[1]) { in usb6fire_control_output_vol_put()
204 rt->output_vol[ch + 1] = ucontrol->value.integer.value[1]; in usb6fire_control_output_vol_put()
227 ucontrol->value.integer.value[0] = rt->output_vol[ch]; in usb6fire_control_output_vol_get()
228 ucontrol->value.integer.value[1] = rt->output_vol[ch + 1]; in usb6fire_control_output_vol_get()
247 if (ucontrol->value.integer.value[0]) in usb6fire_control_output_mute_put()
249 if (ucontrol->value.integer.value[1]) in usb6fire_control_output_mute_put()
[all …]
/sound/soc/img/
Dimg-spdif-in.c315 uinfo->value.integer.min = 0; in img_spdif_in_info_multi_freq()
316 uinfo->value.integer.max = LONG_MAX; in img_spdif_in_info_multi_freq()
330 ucontrol->value.integer.value[0] = spdif->multi_freqs[0]; in img_spdif_in_get_multi_freq()
331 ucontrol->value.integer.value[1] = spdif->multi_freqs[1]; in img_spdif_in_get_multi_freq()
332 ucontrol->value.integer.value[2] = spdif->multi_freqs[2]; in img_spdif_in_get_multi_freq()
333 ucontrol->value.integer.value[3] = spdif->multi_freqs[3]; in img_spdif_in_get_multi_freq()
335 ucontrol->value.integer.value[0] = 0; in img_spdif_in_get_multi_freq()
336 ucontrol->value.integer.value[1] = 0; in img_spdif_in_get_multi_freq()
337 ucontrol->value.integer.value[2] = 0; in img_spdif_in_get_multi_freq()
338 ucontrol->value.integer.value[3] = 0; in img_spdif_in_get_multi_freq()
[all …]
/sound/pci/mixart/
Dmixart_mixer.c335 uinfo->value.integer.min = MIXART_ANALOG_PLAYBACK_LEVEL_MIN; /* -96 dB */ in mixart_analog_vol_info()
336 uinfo->value.integer.max = MIXART_ANALOG_PLAYBACK_LEVEL_MAX; /* 0 dB */ in mixart_analog_vol_info()
338 uinfo->value.integer.min = MIXART_ANALOG_CAPTURE_LEVEL_MIN; /* -96 dB */ in mixart_analog_vol_info()
339 uinfo->value.integer.max = MIXART_ANALOG_CAPTURE_LEVEL_MAX; /* 31.5 dB */ in mixart_analog_vol_info()
349 ucontrol->value.integer.value[0] = chip->analog_playback_volume[0]; in mixart_analog_vol_get()
350 ucontrol->value.integer.value[1] = chip->analog_playback_volume[1]; in mixart_analog_vol_get()
352 ucontrol->value.integer.value[0] = chip->analog_capture_volume[0]; in mixart_analog_vol_get()
353 ucontrol->value.integer.value[1] = chip->analog_capture_volume[1]; in mixart_analog_vol_get()
368 int new_volume = ucontrol->value.integer.value[i]; in mixart_analog_vol_put()
413 ucontrol->value.integer.value[0] = chip->analog_playback_active[0]; in mixart_audio_sw_get()
[all …]
/sound/soc/
Dsoc-ops.c192 uinfo->value.integer.min = 0; in snd_soc_info_volsw()
193 uinfo->value.integer.max = platform_max - mc->min; in snd_soc_info_volsw()
220 uinfo->value.integer.max += mc->min; in snd_soc_info_volsw_sx()
261 ucontrol->value.integer.value[0] = val - min; in snd_soc_get_volsw()
263 ucontrol->value.integer.value[0] = in snd_soc_get_volsw()
264 max - ucontrol->value.integer.value[0]; in snd_soc_get_volsw()
276 ucontrol->value.integer.value[1] = val - min; in snd_soc_get_volsw()
278 ucontrol->value.integer.value[1] = in snd_soc_get_volsw()
279 max - ucontrol->value.integer.value[1]; in snd_soc_get_volsw()
319 val = ucontrol->value.integer.value[0]; in snd_soc_put_volsw()
[all …]
/sound/pci/oxygen/
Dxonar_dg_mixer.c99 info->value.integer.min = 0; in hp_stereo_volume_info()
100 info->value.integer.max = 255; in hp_stereo_volume_info()
113 val->value.integer.value[0] = tmp; in hp_stereo_volume_get()
115 val->value.integer.value[1] = tmp; in hp_stereo_volume_get()
127 long new1 = val->value.integer.value[0]; in hp_stereo_volume_put()
128 long new2 = val->value.integer.value[1]; in hp_stereo_volume_put()
157 val->value.integer.value[0] = in hp_mute_get()
171 if (val->value.integer.value[0] > 1) in hp_mute_put()
176 (~val->value.integer.value[0] << 2) & CS4245_MUTE_DAC; in hp_mute_put()
203 info->value.integer.min = 2 * -12; in input_vol_info()
[all …]
Doxygen_mixer.c23 info->value.integer.min = chip->model.dac_volume_min; in dac_volume_info()
24 info->value.integer.max = chip->model.dac_volume_max; in dac_volume_info()
36 value->value.integer.value[i] = chip->dac_volume[i]; in dac_volume_get()
51 if (value->value.integer.value[i] != chip->dac_volume[i]) { in dac_volume_put()
52 chip->dac_volume[i] = value->value.integer.value[i]; in dac_volume_put()
67 value->value.integer.value[0] = !chip->dac_mute; in dac_mute_get()
79 changed = (!value->value.integer.value[0]) != chip->dac_mute; in dac_mute_put()
81 chip->dac_mute = !value->value.integer.value[0]; in dac_mute_put()
207 value->value.integer.value[0] = chip->spdif_playback_enable; in spdif_switch_get()
283 changed = value->value.integer.value[0] != chip->spdif_playback_enable; in spdif_switch_put()
[all …]
/sound/pcmcia/vx/
Dvxp_mixer.c25 uinfo->value.integer.min = 0; in vx_mic_level_info()
26 uinfo->value.integer.max = MIC_LEVEL_MAX; in vx_mic_level_info()
34 ucontrol->value.integer.value[0] = chip->mic_level; in vx_mic_level_get()
42 unsigned int val = ucontrol->value.integer.value[0]; in vx_mic_level_put()
47 if (chip->mic_level != ucontrol->value.integer.value[0]) { in vx_mic_level_put()
48 vx_set_mic_level(_chip, ucontrol->value.integer.value[0]); in vx_mic_level_put()
49 chip->mic_level = ucontrol->value.integer.value[0]; in vx_mic_level_put()
79 ucontrol->value.integer.value[0] = chip->mic_level; in vx_mic_boost_get()
87 int val = !!ucontrol->value.integer.value[0]; in vx_mic_boost_put()
/sound/ppc/
Dburgundy.c166 uinfo->value.integer.min = 0; in snd_pmac_burgundy_info_volume()
167 uinfo->value.integer.max = 100; in snd_pmac_burgundy_info_volume()
178 ucontrol->value.integer.value, shift); in snd_pmac_burgundy_get_volume()
191 ucontrol->value.integer.value, shift); in snd_pmac_burgundy_put_volume()
193 return (nvoices[0] != ucontrol->value.integer.value[0] || in snd_pmac_burgundy_put_volume()
194 nvoices[1] != ucontrol->value.integer.value[1]); in snd_pmac_burgundy_put_volume()
242 uinfo->value.integer.min = 0; in snd_pmac_burgundy_info_volume_2b()
243 uinfo->value.integer.max = 100; in snd_pmac_burgundy_info_volume_2b()
254 ucontrol->value.integer.value, off); in snd_pmac_burgundy_get_volume_2b()
267 ucontrol->value.integer.value, off); in snd_pmac_burgundy_put_volume_2b()
[all …]
Ddaca.c90 ucontrol->value.integer.value[0] = mix->deemphasis ? 1 : 0; in daca_get_deemphasis()
104 change = mix->deemphasis != ucontrol->value.integer.value[0]; in daca_put_deemphasis()
106 mix->deemphasis = !!ucontrol->value.integer.value[0]; in daca_put_deemphasis()
118 uinfo->value.integer.min = 0; in daca_info_volume()
119 uinfo->value.integer.max = DACA_VOL_MAX; in daca_info_volume()
131 ucontrol->value.integer.value[0] = mix->left_vol; in daca_get_volume()
132 ucontrol->value.integer.value[1] = mix->right_vol; in daca_get_volume()
147 vol[0] = ucontrol->value.integer.value[0]; in daca_put_volume()
148 vol[1] = ucontrol->value.integer.value[1]; in daca_put_volume()
172 ucontrol->value.integer.value[0] = mix->amp_on ? 1 : 0; in daca_get_amp()
[all …]
Dawacs.c127 uinfo->value.integer.min = 0; in snd_pmac_awacs_info_volume()
128 uinfo->value.integer.max = 15; in snd_pmac_awacs_info_volume()
150 ucontrol->value.integer.value[0] = vol[0]; in snd_pmac_awacs_get_volume()
151 ucontrol->value.integer.value[1] = vol[1]; in snd_pmac_awacs_get_volume()
166 vol[0] = ucontrol->value.integer.value[0]; in snd_pmac_awacs_put_volume()
167 vol[1] = ucontrol->value.integer.value[1]; in snd_pmac_awacs_put_volume()
213 ucontrol->value.integer.value[0] = val; in snd_pmac_awacs_get_switch()
230 if (ucontrol->value.integer.value[0] != invert) in snd_pmac_awacs_put_switch()
325 uinfo->value.integer.min = 0; in snd_pmac_awacs_info_volume_amp()
326 uinfo->value.integer.max = 31; in snd_pmac_awacs_info_volume_amp()
[all …]
/sound/i2c/
Dtea6330t.c76 uinfo->value.integer.min = 0; in snd_tea6330t_info_master_volume()
77 uinfo->value.integer.max = 43; in snd_tea6330t_info_master_volume()
87 ucontrol->value.integer.value[0] = tea->mleft - 0x14; in snd_tea6330t_get_master_volume()
88 ucontrol->value.integer.value[1] = tea->mright - 0x14; in snd_tea6330t_get_master_volume()
101 val1 = (ucontrol->value.integer.value[0] % 44) + 0x14; in snd_tea6330t_put_master_volume()
102 val2 = (ucontrol->value.integer.value[1] % 44) + 0x14; in snd_tea6330t_put_master_volume()
139 ucontrol->value.integer.value[0] = tea->regs[TEA6330T_SADDR_VOLUME_LEFT] == 0 ? 0 : 1; in snd_tea6330t_get_master_switch()
140 ucontrol->value.integer.value[1] = tea->regs[TEA6330T_SADDR_VOLUME_RIGHT] == 0 ? 0 : 1; in snd_tea6330t_get_master_switch()
153 val1 = ucontrol->value.integer.value[0] & 1; in snd_tea6330t_put_master_switch()
154 val2 = ucontrol->value.integer.value[1] & 1; in snd_tea6330t_put_master_switch()
[all …]
/sound/drivers/vx/
Dvx_mixer.c405 uinfo->value.integer.min = 0; in vx_output_level_info()
406 uinfo->value.integer.max = chip->hw->output_level_max; in vx_output_level_info()
415 ucontrol->value.integer.value[0] = chip->output_level[codec][0]; in vx_output_level_get()
416 ucontrol->value.integer.value[1] = chip->output_level[codec][1]; in vx_output_level_get()
428 val[0] = ucontrol->value.integer.value[0]; in vx_output_level_put()
429 val[1] = ucontrol->value.integer.value[1]; in vx_output_level_put()
563 uinfo->value.integer.min = 0; in vx_audio_gain_info()
564 uinfo->value.integer.max = CVAL_MAX; in vx_audio_gain_info()
575 ucontrol->value.integer.value[0] = chip->audio_gain[capture][audio]; in vx_audio_gain_get()
576 ucontrol->value.integer.value[1] = chip->audio_gain[capture][audio+1]; in vx_audio_gain_get()
[all …]
/sound/isa/cs423x/
Dcs4236_lib.c398 uinfo->value.integer.min = 0; in snd_cs4236_info_single()
399 uinfo->value.integer.max = mask; in snd_cs4236_info_single()
413 ucontrol->value.integer.value[0] = (chip->eimage[CS4236_REG(reg)] >> shift) & mask; in snd_cs4236_get_single()
416 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_cs4236_get_single()
431 val = (ucontrol->value.integer.value[0] & mask); in snd_cs4236_put_single()
459 ucontrol->value.integer.value[0] = (chip->cimage[reg] >> shift) & mask; in snd_cs4236_get_singlec()
462 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_cs4236_get_singlec()
477 val = (ucontrol->value.integer.value[0] & mask); in snd_cs4236_put_singlec()
511 uinfo->value.integer.min = 0; in snd_cs4236_info_double()
512 uinfo->value.integer.max = mask; in snd_cs4236_info_double()
[all …]
/sound/pci/pcxhr/
Dpcxhr_mixer.c83 uinfo->value.integer.min = in pcxhr_analog_vol_info()
85 uinfo->value.integer.max = in pcxhr_analog_vol_info()
88 uinfo->value.integer.min = in pcxhr_analog_vol_info()
90 uinfo->value.integer.max = in pcxhr_analog_vol_info()
95 uinfo->value.integer.min = in pcxhr_analog_vol_info()
97 uinfo->value.integer.max = in pcxhr_analog_vol_info()
100 uinfo->value.integer.min = in pcxhr_analog_vol_info()
102 uinfo->value.integer.max = in pcxhr_analog_vol_info()
115 ucontrol->value.integer.value[0] = chip->analog_playback_volume[0]; in pcxhr_analog_vol_get()
116 ucontrol->value.integer.value[1] = chip->analog_playback_volume[1]; in pcxhr_analog_vol_get()
[all …]
/sound/core/
Dcontrol_compat.c61 } integer; member
113 if (put_user(data->value.integer.min, &data32->value.integer.min) || in snd_ctl_elem_info_compat()
114 put_user(data->value.integer.max, &data32->value.integer.max) || in snd_ctl_elem_info_compat()
115 put_user(data->value.integer.step, &data32->value.integer.step)) in snd_ctl_elem_info_compat()
144 s32 integer[128]; member
159 s32 integer[128]; member
244 data->value.integer.value[i] = val; in copy_ctl_value_from_user()
275 val = data->value.integer.value[i]; in copy_ctl_value_to_user()
386 if (get_user(data->value.integer.min, &data32->value.integer.min) || in snd_ctl_elem_add_compat()
387 get_user(data->value.integer.max, &data32->value.integer.max) || in snd_ctl_elem_add_compat()
[all …]
/sound/pci/
Dak4531_codec.c66 uinfo->value.integer.min = 0; in snd_ak4531_info_single()
67 uinfo->value.integer.max = mask; in snd_ak4531_info_single()
86 ucontrol->value.integer.value[0] = val; in snd_ak4531_get_single()
100 val = ucontrol->value.integer.value[0] & mask; in snd_ak4531_put_single()
133 uinfo->value.integer.min = 0; in snd_ak4531_info_double()
134 uinfo->value.integer.max = mask; in snd_ak4531_info_double()
157 ucontrol->value.integer.value[0] = left; in snd_ak4531_get_double()
158 ucontrol->value.integer.value[1] = right; in snd_ak4531_get_double()
174 left = ucontrol->value.integer.value[0] & mask; in snd_ak4531_put_double()
175 right = ucontrol->value.integer.value[1] & mask; in snd_ak4531_put_double()
[all …]
/sound/pci/ice1712/
Dphase.c291 ucontrol->value.integer.value[0] = (wm_get(ice, WM_MUTE) & 0x10) ? in wm_pcm_mute_get()
306 nval = (oval & ~0x10) | (ucontrol->value.integer.value[0] ? 0 : 0x10); in wm_pcm_mute_put()
323 uinfo->value.integer.min = 0; in wm_master_vol_info()
324 uinfo->value.integer.max = WM_VOL_MAX; in wm_master_vol_info()
335 ucontrol->value.integer.value[i] = spec->master[i] & in wm_master_vol_get()
349 unsigned int vol = ucontrol->value.integer.value[ch]; in wm_master_vol_put()
470 uinfo->value.integer.min = 0; /* mute (-101dB) */ in wm_vol_info()
471 uinfo->value.integer.max = 0x7F; /* 0dB */ in wm_vol_info()
485 ucontrol->value.integer.value[i] = in wm_vol_get()
503 vol = ucontrol->value.integer.value[i]; in wm_vol_put()
[all …]
Dpontis.c104 uinfo->value.integer.min = 0; /* mute */ in wm_dac_vol_info()
105 uinfo->value.integer.max = DAC_RES; /* 0dB, 0.5dB step */ in wm_dac_vol_info()
119 ucontrol->value.integer.value[i] = val; in wm_dac_vol_get()
133 nval = ucontrol->value.integer.value[i]; in wm_dac_vol_put()
159 uinfo->value.integer.min = 0; /* mute (-64dB) */ in wm_adc_vol_info()
160 uinfo->value.integer.max = ADC_RES; /* 0dB, 0.5dB step */ in wm_adc_vol_info()
174 ucontrol->value.integer.value[i] = val; in wm_adc_vol_get()
188 nvol = ucontrol->value.integer.value[i]; in wm_adc_vol_put()
212 ucontrol->value.integer.value[0] = (wm_get(ice, WM_ADC_MUX) & (1 << bit)) ? 1 : 0; in wm_adc_mux_get()
226 if (ucontrol->value.integer.value[0]) in wm_adc_mux_put()
[all …]
Dwtm.c134 ucontrol->value.integer.value[0] = (~val >> 7) & 0x1; in stac9460_dac_mute_get()
151 new = (~ucontrol->value.integer.value[0] << 7 & 0x80) | in stac9460_dac_mute_put()
165 new = (~ucontrol->value.integer.value[0] << 7 & 0x80) | in stac9460_dac_mute_put()
186 uinfo->value.integer.min = 0; /* mute */ in stac9460_dac_vol_info()
187 uinfo->value.integer.max = 0x7f; /* 0dB */ in stac9460_dac_vol_info()
209 ucontrol->value.integer.value[0] = 0x7f - vol; in stac9460_dac_vol_get()
223 nvol = ucontrol->value.integer.value[0] & 0x7f; in stac9460_dac_vol_put()
234 nvol = ucontrol->value.integer.value[0] & 0x7f; in stac9460_dac_vol_put()
269 ucontrol->value.integer.value[i] = ~val>>7 & 0x1; in stac9460_adc_mute_get()
274 ucontrol->value.integer.value[i] = ~val>>7 & 0x1; in stac9460_adc_mute_get()
[all …]
/sound/pci/cs5535audio/
Dcs5535audio_olpc.c66 uinfo->value.integer.min = 0; in olpc_dc_info()
67 uinfo->value.integer.max = 1; in olpc_dc_info()
73 v->value.integer.value[0] = gpio_get_value(OLPC_GPIO_MIC_AC); in olpc_dc_get()
81 olpc_analog_input(cs5535au->ac97, v->value.integer.value[0]); in olpc_dc_put()
90 uinfo->value.integer.min = 0; in olpc_mic_info()
91 uinfo->value.integer.max = 1; in olpc_mic_info()
102 v->value.integer.value[0] = i ? 0 : 1; in olpc_mic_get()
110 olpc_mic_bias(cs5535au->ac97, v->value.integer.value[0]); in olpc_mic_put()
/sound/drivers/pcsp/
Dpcsp_mixer.c19 uinfo->value.integer.min = 0; in pcsp_enable_info()
20 uinfo->value.integer.max = 1; in pcsp_enable_info()
28 ucontrol->value.integer.value[0] = chip->enable; in pcsp_enable_get()
37 int enab = ucontrol->value.integer.value[0]; in pcsp_enable_put()
88 uinfo->value.integer.min = 0; in pcsp_pcspkr_info()
89 uinfo->value.integer.max = 1; in pcsp_pcspkr_info()
97 ucontrol->value.integer.value[0] = chip->pcspkr; in pcsp_pcspkr_get()
106 int spkr = ucontrol->value.integer.value[0]; in pcsp_pcspkr_put()
/sound/drivers/opl4/
Dopl4_mixer.c14 uinfo->value.integer.min = 0; in snd_opl4_ctl_info()
15 uinfo->value.integer.max = 7; in snd_opl4_ctl_info()
29 ucontrol->value.integer.value[0] = 7 - (value & 7); in snd_opl4_ctl_get()
30 ucontrol->value.integer.value[1] = 7 - ((value >> 3) & 7); in snd_opl4_ctl_get()
41 value = (7 - (ucontrol->value.integer.value[0] & 7)) | in snd_opl4_ctl_put()
42 ((7 - (ucontrol->value.integer.value[1] & 7)) << 3); in snd_opl4_ctl_put()
/sound/soc/codecs/
Dwm8958-dsp2.c491 uinfo->value.integer.min = 0; in wm8958_mbc_info()
492 uinfo->value.integer.max = 1; in wm8958_mbc_info()
503 ucontrol->value.integer.value[0] = wm8994->mbc_ena[mbc]; in wm8958_mbc_get()
515 if (wm8994->mbc_ena[mbc] == ucontrol->value.integer.value[0]) in wm8958_mbc_put()
518 if (ucontrol->value.integer.value[0] > 1) in wm8958_mbc_put()
529 wm8994->mbc_ena[mbc] = ucontrol->value.integer.value[0]; in wm8958_mbc_put()
614 uinfo->value.integer.min = 0; in wm8958_vss_info()
615 uinfo->value.integer.max = 1; in wm8958_vss_info()
626 ucontrol->value.integer.value[0] = wm8994->vss_ena[vss]; in wm8958_vss_get()
638 if (wm8994->vss_ena[vss] == ucontrol->value.integer.value[0]) in wm8958_vss_put()
[all …]
/sound/firewire/oxfw/
Doxfw-spkr.c151 value->value.integer.value[0] = !spkr->mute; in spkr_mute_get()
164 mute = !value->value.integer.value[0]; in spkr_mute_put()
186 info->value.integer.min = spkr->volume_min; in spkr_volume_info()
187 info->value.integer.max = spkr->volume_max; in spkr_volume_info()
202 value->value.integer.value[channel_map[i]] = spkr->volume[i]; in spkr_volume_get()
218 if (value->value.integer.value[i] < spkr->volume_min || in spkr_volume_put()
219 value->value.integer.value[i] > spkr->volume_max) in spkr_volume_put()
221 if (value->value.integer.value[i] != in spkr_volume_put()
222 value->value.integer.value[0]) in spkr_volume_put()
228 if (value->value.integer.value[channel_map[i]] != in spkr_volume_put()
[all …]

12345678910>>...12