Home
last modified time | relevance | path

Searched refs:min (Results 1 – 25 of 235) sorted by relevance

12345678910

/sound/soc/
Dsoc-ops.c198 uinfo->value.integer.min = 0; in snd_soc_info_volsw()
199 uinfo->value.integer.max = platform_max - mc->min; in snd_soc_info_volsw()
226 uinfo->value.integer.max += mc->min; in snd_soc_info_volsw_sx()
253 int min = mc->min; in snd_soc_get_volsw() local
267 ucontrol->value.integer.value[0] = val - min; in snd_soc_get_volsw()
282 ucontrol->value.integer.value[1] = val - min; in snd_soc_get_volsw()
313 int min = mc->min; in snd_soc_put_volsw() local
325 val = ((ucontrol->value.integer.value[0] + min) & mask); in snd_soc_put_volsw()
331 val2 = ((ucontrol->value.integer.value[1] + min) & mask); in snd_soc_put_volsw()
375 int min = mc->min; in snd_soc_get_volsw_sx() local
[all …]
/sound/firewire/bebob/
Dbebob_pcm.c19 .min = UINT_MAX, .max = 0, .integer = 1 in hw_rule_rate()
31 t.min = min(t.min, snd_bebob_rate_table[i]); in hw_rule_rate()
47 .min = UINT_MAX, .max = 0, .integer = 1 in hw_rule_channels()
60 t.min = min(t.min, formations[i].pcm); in hw_rule_channels()
85 hw->channels_min = min(hw->channels_min, formations[i].pcm); in limit_channels_and_rates()
88 hw->rate_min = min(hw->rate_min, snd_bebob_rate_table[i]); in limit_channels_and_rates()
/sound/core/
Dpcm_lib.c574 if (i->min < v->min) { in snd_interval_refine()
575 i->min = v->min; in snd_interval_refine()
578 } else if (i->min == v->min && !i->openmin && v->openmin) { in snd_interval_refine()
596 i->min++; in snd_interval_refine()
603 } else if (!i->openmin && !i->openmax && i->min == i->max) in snd_interval_refine()
621 i->max = i->min; in snd_interval_refine_first()
631 const unsigned int last_min = i->min; in snd_interval_refine_last()
637 i->min = i->max; in snd_interval_refine_last()
639 i->min--; in snd_interval_refine_last()
641 i->openmin = (i->openmin && i->min <= last_min); in snd_interval_refine_last()
[all …]
Dpcm_drm_eld.c44 if (c->min <= max_channels) in eld_limit_rates()
58 struct snd_interval t = { .min = 1, .max = 2, .integer = 1, }; in eld_limit_channels()
69 if (r->min <= eld_rates[i] && r->max >= eld_rates[i]) in eld_limit_channels()
Dcontrol_compat.c60 s32 min; member
65 u64 min; member
118 if (put_user(data->value.integer.min, &data32->value.integer.min) || in snd_ctl_elem_info_compat()
391 if (get_user(data->value.integer.min, &data32->value.integer.min) || in snd_ctl_elem_add_compat()
/sound/firewire/fireface/
Dff-pcm.c19 .min = UINT_MAX, .max = 0, .integer = 1 in hw_rule_rate()
34 t.min = min(t.min, amdtp_rate_table[i]); in hw_rule_rate()
50 .min = UINT_MAX, .max = 0, .integer = 1 in hw_rule_channels()
65 t.min = min(t.min, pcm_channels[mode]); in hw_rule_channels()
94 hw->channels_min = min(hw->channels_min, channels); in limit_channels_and_rates()
99 hw->rate_min = min(hw->rate_min, rate); in limit_channels_and_rates()
/sound/firewire/fireworks/
Dfireworks_pcm.c72 .min = UINT_MAX, .max = 0, .integer = 1 in hw_rule_rate()
81 t.min = min(t.min, freq_table[i]); in hw_rule_rate()
97 .min = UINT_MAX, .max = 0, .integer = 1 in hw_rule_channels()
106 t.min = min(t.min, pcm_channels[mode]); in hw_rule_channels()
126 hw->channels_min = min(hw->channels_min, pcm_channels[mode]); in limit_channels()
/sound/soc/codecs/
Dtda7419.c129 int min, max; member
150 uinfo->value.integer.min = tvc->min; in tda7419_vol_info()
157 int min, int thresh, in tda7419_vol_get_value() argument
171 if (val < min) in tda7419_vol_get_value()
172 val = min; in tda7419_vol_get_value()
186 int min = tvc->min; in tda7419_vol_get() local
196 tda7419_vol_get_value(val, mask, min, thresh, invert); in tda7419_vol_get()
203 tda7419_vol_get_value(val, mask, min, thresh, invert); in tda7419_vol_get()
258 {.reg = xreg, .rreg = xreg, .mask = xmask, .min = xmin, \
264 {.reg = xregl, .rreg = xregr, .mask = xmask, .min = xmin, \
/sound/firewire/digi00x/
Ddigi00x-pcm.c18 .min = UINT_MAX, .max = 0, .integer = 1, in hw_rule_rate()
27 t.min = min(t.min, snd_dg00x_stream_rates[i]); in hw_rule_rate()
42 .min = UINT_MAX, .max = 0, .integer = 1, in hw_rule_channels()
50 t.min = min(t.min, snd_dg00x_stream_pcm_channels[i]); in hw_rule_channels()
/sound/firewire/motu/
Dmotu-pcm.c21 .min = UINT_MAX, .max = 0, .integer = 1 in motu_rate_constraint()
34 rates.min = min(rates.min, rate); in motu_rate_constraint()
51 .min = UINT_MAX, .max = 0, .integer = 1 in motu_channels_constraint()
64 channels.min = min(channels.min, pcm_channels); in motu_channels_constraint()
91 hw->channels_min = min(hw->channels_min, pcm_channels); in limit_channels_and_rates()
/sound/xen/
Dxen_snd_front_alsa.c285 req.rates.min = rates->min; in alsa_hw_rule()
288 req.channels.min = channels->min; in alsa_hw_rule()
291 req.buffer.min = buffer->min; in alsa_hw_rule()
294 req.period.min = period->min; in alsa_hw_rule()
322 interval.min = resp.rates.min; in alsa_hw_rule()
329 interval.min = resp.channels.min; in alsa_hw_rule()
336 interval.min = resp.buffer.min; in alsa_hw_rule()
343 interval.min = resp.period.min; in alsa_hw_rule()
/sound/firewire/dice/
Ddice-pcm.c23 .min = UINT_MAX, .max = 0, .integer = 1 in dice_rate_constraint()
42 rates.min = min(rates.min, rate); in dice_rate_constraint()
61 .min = UINT_MAX, .max = 0, .integer = 1 in dice_channels_constraint()
80 channels.min = min(channels.min, pcm_channels[mode]); in dice_channels_constraint()
116 hw->channels_min = min(hw->channels_min, channels); in limit_channels_and_rates()
/sound/pci/ice1712/
Dwm8776.c167 .min = 0x2f,
325 .min = 3,
366 .min = 1,
376 .min = 10,
463 uinfo->value.integer.min = wm->ctl[n].min; in snd_wm8776_volume_info()
499 val1 = wm->ctl[n].max - (val1 - wm->ctl[n].min); in snd_wm8776_ctl_get()
501 val2 = wm->ctl[n].max - (val2 - wm->ctl[n].min); in snd_wm8776_ctl_get()
521 regval1 = wm->ctl[n].max - (regval1 - wm->ctl[n].min); in snd_wm8776_ctl_put()
522 regval2 = wm->ctl[n].max - (regval2 - wm->ctl[n].min); in snd_wm8776_ctl_put()
Dwm8766.c189 uinfo->value.integer.min = wm->ctl[n].min; in snd_wm8766_volume_info()
225 val1 = wm->ctl[n].max - (val1 - wm->ctl[n].min); in snd_wm8766_ctl_get()
227 val2 = wm->ctl[n].max - (val2 - wm->ctl[n].min); in snd_wm8766_ctl_get()
247 regval1 = wm->ctl[n].max - (regval1 - wm->ctl[n].min); in snd_wm8766_ctl_put()
248 regval2 = wm->ctl[n].max - (regval2 - wm->ctl[n].min); in snd_wm8766_ctl_put()
/sound/soc/ti/
Domap-mcbsp-st.c390 int min = mc->min; in omap_mcbsp_st_info_volsw() local
394 uinfo->value.integer.min = min; in omap_mcbsp_st_info_volsw()
409 int min = mc->min; \
412 if (val < min || val > max) \
471 {.min = xmin, .max = xmax} }
/sound/pci/asihpi/
Dhpi_version.h24 #define HPI_VERSION_CONSTRUCTOR(maj, min, r) ((maj << 16) + (min << 8) + r) argument
/sound/usb/
Dmixer.c143 cval->dBmin = p->dB->min; in check_mapped_dB()
254 if (val < cval->min) in get_relative_value()
257 return (cval->max - cval->min + cval->res - 1) / cval->res; in get_relative_value()
259 return (val - cval->min) / cval->res; in get_relative_value()
265 return cval->min; in get_abs_value()
269 val += cval->min; in get_abs_value()
1065 cval->min = 0x0000; in volume_control_quirks()
1072 cval->min = 0x00; in volume_control_quirks()
1077 cval->min = 0xb706; in volume_control_quirks()
1084 cval->min = 0xb5fb; /* -73 dB = 0xb6ff */ in volume_control_quirks()
[all …]
Dmixer_maps.c9 u32 min; member
96 static struct usbmix_dB_map mp3plus_dB_1 = {.min = -4781, .max = 0};
98 static struct usbmix_dB_map mp3plus_dB_2 = {.min = -1781, .max = 618};
Dpcm.c1114 if (fp->channels < ct->min || fp->channels > ct->max) { in hw_check_valid_format()
1115 hwc_debug(" > check: no valid channels %d (%d/%d)\n", fp->channels, ct->min, ct->max); in hw_check_valid_format()
1123 if (fp->rate_max < it->min || (fp->rate_max == it->min && it->openmin)) { in hw_check_valid_format()
1124 hwc_debug(" > check: rate_max %d < min %d\n", fp->rate_max, it->min); in hw_check_valid_format()
1147 hwc_debug("hw_rule_rate: (%d,%d)\n", it->min, it->max); in hw_rule_rate()
1171 if (it->min < rmin) { in hw_rule_rate()
1172 it->min = rmin; in hw_rule_rate()
1185 hwc_debug(" --> (%d, %d) (changed = %d)\n", it->min, it->max, changed); in hw_rule_rate()
1199 hwc_debug("hw_rule_channels: (%d,%d)\n", it->min, it->max); in hw_rule_channels()
1223 if (it->min < rmin) { in hw_rule_channels()
[all …]
Dmixer_us16x08.h23 #define SND_US16X08_KCSET(bias, step, min, max) \ argument
24 (((bias) << 24) | ((step) << 16) | ((min) << 8) | (max))
Dformat.c244 int min = combine_quad(&data[2 + 12 * i]); in parse_uac2_sample_rate_range() local
249 if ((max < 0) || (min < 0) || (res < 0) || (max < min)) in parse_uac2_sample_rate_range()
258 fp->rate_min = min; in parse_uac2_sample_rate_range()
264 for (rate = min; rate <= max; rate += res) { in parse_uac2_sample_rate_range()
/sound/firewire/oxfw/
Doxfw-pcm.c19 .min = UINT_MAX, .max = 0, .integer = 1 in hw_rule_rate()
34 t.min = min(t.min, formation.rate); in hw_rule_rate()
100 hw->channels_min = min(hw->channels_min, formation.pcm); in limit_channels_and_rates()
103 hw->rate_min = min(hw->rate_min, formation.rate); in limit_channels_and_rates()
/sound/pci/oxygen/
Dxonar_wm87x6.c601 info->value.integer.min = (ctl->private_value >> 8) & 0xf; in wm8776_field_volume_info()
611 u8 min, max, shift; in wm8776_field_set_from_ctl() local
624 min = (ctl->private_value >> 8) & 0xf; in wm8776_field_set_from_ctl()
632 value = max - (value - min); in wm8776_field_set_from_ctl()
642 u8 min, max; in wm8776_field_set() local
645 min = (ctl->private_value >> 8) & 0xf; in wm8776_field_set()
647 if (value < min || value > max) in wm8776_field_set()
690 info->value.integer.min = 0x79 - 60; in wm8776_hp_vol_info()
804 info->value.integer.min = 0xa5; in wm8776_input_vol_info()
976 #define _WM8776_FIELD_CTL(xname, reg, shift, initval, min, max, mask, flags) \ argument
[all …]
/sound/pci/echoaudio/
Dechoaudio.c118 if (c->min == 2) { in hw_rule_capture_format_by_channels()
124 if (c->min > 2) { in hw_rule_capture_format_by_channels()
146 ch.min = 1; in hw_rule_capture_channels_by_format()
157 ch.min = 1; in hw_rule_capture_channels_by_format()
181 if (c->min > 2) { in hw_rule_playback_format_by_channels()
190 else if (c->min == 2 && c->max == 2) in hw_rule_playback_format_by_channels()
218 ch.min = 1; in hw_rule_playback_channels_by_format()
226 ch.min = ch.max = 2; in hw_rule_playback_channels_by_format()
230 ch.min = 2; in hw_rule_playback_channels_by_format()
251 fixed.min = fixed.max = chip->sample_rate; in hw_rule_sample_rate()
[all …]
/sound/soc/intel/boards/
Dbytcht_nocodec.c50 rate->min = rate->max = 48000; in codec_fixup()
51 channels->min = channels->max = 2; in codec_fixup()

12345678910