Home
last modified time | relevance | path

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

1234567

/sound/firewire/bebob/
Dbebob_pcm.c20 .min = UINT_MAX, .max = 0, .integer = 1 in hw_rule_rate()
32 t.min = min(t.min, snd_bebob_rate_table[i]); in hw_rule_rate()
48 .min = UINT_MAX, .max = 0, .integer = 1 in hw_rule_channels()
61 t.min = min(t.min, formations[i].pcm); in hw_rule_channels()
86 hw->channels_min = min(hw->channels_min, formations[i].pcm); in limit_channels_and_rates()
89 hw->rate_min = min(hw->rate_min, snd_bebob_rate_table[i]); in limit_channels_and_rates()
/sound/firewire/fireworks/
Dfireworks_pcm.c73 .min = UINT_MAX, .max = 0, .integer = 1 in hw_rule_rate()
82 t.min = min(t.min, freq_table[i]); in hw_rule_rate()
98 .min = UINT_MAX, .max = 0, .integer = 1 in hw_rule_channels()
107 t.min = min(t.min, pcm_channels[mode]); in hw_rule_channels()
127 hw->channels_min = min(hw->channels_min, pcm_channels[mode]); in limit_channels()
/sound/core/
Dpcm_lib.c675 if (i->min < v->min) { in snd_interval_refine()
676 i->min = v->min; in snd_interval_refine()
679 } else if (i->min == v->min && !i->openmin && v->openmin) { in snd_interval_refine()
697 i->min++; in snd_interval_refine()
704 } else if (!i->openmin && !i->openmax && i->min == i->max) in snd_interval_refine()
721 i->max = i->min; in snd_interval_refine_first()
734 i->min = i->max; in snd_interval_refine_last()
737 i->min--; in snd_interval_refine_last()
748 c->min = mul(a->min, b->min); in snd_interval_mul()
773 c->min = div32(a->min, b->max, &r); in snd_interval_div()
[all …]
Dcontrol_compat.c73 s32 min; member
78 u64 min; member
133 if (put_user(data->value.integer.min, &data32->value.integer.min) || in snd_ctl_elem_info_compat()
409 if (get_user(data->value.integer.min, &data32->value.integer.min) || in snd_ctl_elem_add_compat()
/sound/usb/
Dmixer.c153 cval->dBmin = p->dB->min; in check_mapped_dB()
264 if (val < cval->min) in get_relative_value()
267 return (cval->max - cval->min + cval->res - 1) / cval->res; in get_relative_value()
269 return (val - cval->min) / cval->res; in get_relative_value()
275 return cval->min; in get_abs_value()
279 val += cval->min; in get_abs_value()
841 cval->min = 0x0000; in volume_control_quirks()
848 cval->min = 0x00; in volume_control_quirks()
853 cval->min = 0xb706; in volume_control_quirks()
860 cval->min = 0xb5fb; /* -73 dB = 0xb6ff */ in volume_control_quirks()
[all …]
Dpcm.c859 if (fp->channels < ct->min || fp->channels > ct->max) { in hw_check_valid_format()
860 hwc_debug(" > check: no valid channels %d (%d/%d)\n", fp->channels, ct->min, ct->max); in hw_check_valid_format()
868 if (fp->rate_max < it->min || (fp->rate_max == it->min && it->openmin)) { in hw_check_valid_format()
869 hwc_debug(" > check: rate_max %d < min %d\n", fp->rate_max, it->min); in hw_check_valid_format()
892 hwc_debug("hw_rule_rate: (%d,%d)\n", it->min, it->max); in hw_rule_rate()
916 if (it->min < rmin) { in hw_rule_rate()
917 it->min = rmin; in hw_rule_rate()
930 hwc_debug(" --> (%d, %d) (changed = %d)\n", it->min, it->max, changed); in hw_rule_rate()
944 hwc_debug("hw_rule_channels: (%d,%d)\n", it->min, it->max); in hw_rule_channels()
968 if (it->min < rmin) { in hw_rule_channels()
[all …]
Dformat.c237 int min = combine_quad(&data[2 + 12 * i]); in parse_uac2_sample_rate_range() local
242 if ((max < 0) || (min < 0) || (res < 0) || (max < min)) in parse_uac2_sample_rate_range()
251 fp->rate_min = min; in parse_uac2_sample_rate_range()
257 for (rate = min; rate <= max; rate += res) { in parse_uac2_sample_rate_range()
Dendpoint.c156 ret = min(ep->phase >> 16, ep->maxframesize); in snd_usb_endpoint_next_packet_size()
278 urb->iso_frame_desc[0].length = min(4u, ep->syncmaxsize); in prepare_inbound_urb()
631 max_packs_per_urb = min(max_packs_per_urb, in data_ep_set_params()
661 urb_packs = min(max_packs_per_urb, urb_packs); in data_ep_set_params()
695 max_urbs = min((unsigned) MAX_URBS, in data_ep_set_params()
697 ep->nurbs = min(max_urbs, urbs_per_period * periods_per_buffer); in data_ep_set_params()
/sound/soc/omap/
Domap-mcbsp.c51 {.min = xmin, .max = xmax} }
106 frames.min = size / channels->min; in omap_mcbsp_hwrule_min_buffersize()
604 int min = mc->min; in omap_mcbsp_st_info_volsw() local
608 uinfo->value.integer.min = min; in omap_mcbsp_st_info_volsw()
623 int min = mc->min; \
626 if (val < min || val > max) \
/sound/pci/ice1712/
Dwm8776.c181 .min = 0x2f,
339 .min = 3,
380 .min = 1,
390 .min = 10,
492 uinfo->value.integer.min = wm->ctl[n].min; in snd_wm8776_volume_info()
528 val1 = wm->ctl[n].max - (val1 - wm->ctl[n].min); in snd_wm8776_ctl_get()
530 val2 = wm->ctl[n].max - (val2 - wm->ctl[n].min); in snd_wm8776_ctl_get()
550 regval1 = wm->ctl[n].max - (regval1 - wm->ctl[n].min); in snd_wm8776_ctl_put()
551 regval2 = wm->ctl[n].max - (regval2 - wm->ctl[n].min); in snd_wm8776_ctl_put()
Dwm8766.c219 uinfo->value.integer.min = wm->ctl[n].min; in snd_wm8766_volume_info()
255 val1 = wm->ctl[n].max - (val1 - wm->ctl[n].min); in snd_wm8766_ctl_get()
257 val2 = wm->ctl[n].max - (val2 - wm->ctl[n].min); in snd_wm8766_ctl_get()
277 regval1 = wm->ctl[n].max - (regval1 - wm->ctl[n].min); in snd_wm8766_ctl_put()
278 regval2 = wm->ctl[n].max - (regval2 - wm->ctl[n].min); in snd_wm8766_ctl_put()
/sound/pci/asihpi/
Dhpi_version.h23 #define HPI_VERSION_CONSTRUCTOR(maj, min, r) ((maj << 16) + (min << 8) + r) argument
/sound/soc/
Dsoc-core.c168 total = min(total, count - 1); in soc_codec_reg_show()
245 buf_size = min(count, (sizeof(buf)-1)); in codec_reg_write_file()
2513 uinfo->value.integer.min = 0; in snd_soc_info_volsw()
2514 uinfo->value.integer.max = platform_max - mc->min; in snd_soc_info_volsw()
2540 int min = mc->min; in snd_soc_get_volsw() local
2554 ucontrol->value.integer.value[0] = val - min; in snd_soc_get_volsw()
2569 ucontrol->value.integer.value[1] = val - min; in snd_soc_get_volsw()
2600 int min = mc->min; in snd_soc_put_volsw() local
2612 val = ((ucontrol->value.integer.value[0] + min) & mask); in snd_soc_put_volsw()
2618 val2 = ((ucontrol->value.integer.value[1] + min) & mask); in snd_soc_put_volsw()
[all …]
/sound/soc/sh/rcar/
Dadg.c135 unsigned int min, diff; in rsnd_adg_set_convert_clk_gen2() local
144 min = ~0; in rsnd_adg_set_convert_clk_gen2()
156 if (min > diff) { in rsnd_adg_set_convert_clk_gen2()
158 min = diff; in rsnd_adg_set_convert_clk_gen2()
176 if (min == ~0) { in rsnd_adg_set_convert_clk_gen2()
/sound/pci/oxygen/
Dxonar_wm87x6.c612 info->value.integer.min = (ctl->private_value >> 8) & 0xf; in wm8776_field_volume_info()
622 u8 min, max, shift; in wm8776_field_set_from_ctl() local
635 min = (ctl->private_value >> 8) & 0xf; in wm8776_field_set_from_ctl()
643 value = max - (value - min); in wm8776_field_set_from_ctl()
653 u8 min, max; in wm8776_field_set() local
656 min = (ctl->private_value >> 8) & 0xf; in wm8776_field_set()
658 if (value < min || value > max) in wm8776_field_set()
701 info->value.integer.min = 0x79 - 60; in wm8776_hp_vol_info()
815 info->value.integer.min = 0xa5; in wm8776_input_vol_info()
987 #define _WM8776_FIELD_CTL(xname, reg, shift, initval, min, max, mask, flags) \ argument
[all …]
/sound/pci/echoaudio/
Dechoaudio.c128 if (c->min == 2) { in hw_rule_capture_format_by_channels()
134 if (c->min > 2) { in hw_rule_capture_format_by_channels()
156 ch.min = 1; in hw_rule_capture_channels_by_format()
167 ch.min = 1; in hw_rule_capture_channels_by_format()
191 if (c->min > 2) { in hw_rule_playback_format_by_channels()
200 else if (c->min == 2 && c->max == 2) in hw_rule_playback_format_by_channels()
228 ch.min = 1; in hw_rule_playback_channels_by_format()
236 ch.min = ch.max = 2; in hw_rule_playback_channels_by_format()
240 ch.min = 2; in hw_rule_playback_channels_by_format()
261 fixed.min = fixed.max = chip->sample_rate; in hw_rule_sample_rate()
[all …]
/sound/soc/intel/
Dhaswell.c55 rate->min = rate->max = 48000; in haswell_ssp0_fixup()
56 channels->min = channels->max = 2; in haswell_ssp0_fixup()
Dbroadwell.c69 rate->min = rate->max = 48000; in broadwell_ssp0_fixup()
70 channels->min = channels->max = 2; in broadwell_ssp0_fixup()
/sound/firewire/
Ddice.c326 .min = UINT_MAX, .max = 0, .integer = 1 in dice_rate_constraint()
334 allowed_rates.min = min(allowed_rates.min, in dice_rate_constraint()
353 .min = UINT_MAX, .max = 0, .integer = 1 in dice_channels_constraint()
361 allowed_channels.min = min(allowed_channels.min, in dice_channels_constraint()
406 runtime->hw.channels_min = min(runtime->hw.channels_min, in dice_open()
724 count = min(count, (long)sizeof(event.lock_status)); in dice_hwdep_read()
730 count = min(count, (long)sizeof(event.dice_notification)); in dice_hwdep_read()
/sound/pci/cs5535audio/
Dcs5535audio_olpc.c70 uinfo->value.integer.min = 0; in olpc_dc_info()
94 uinfo->value.integer.min = 0; in olpc_mic_info()
/sound/drivers/pcsp/
Dpcsp_mixer.c18 uinfo->value.integer.min = 0; in pcsp_enable_info()
87 uinfo->value.integer.min = 0; in pcsp_pcspkr_info()
Dpcsp.c74 pcsp_chip.max_treble = min(order, PCSP_MAX_TREBLE); in snd_pcsp_create()
75 pcsp_chip.treble = min(pcsp_chip.max_treble, PCSP_DEFAULT_TREBLE); in snd_pcsp_create()
/sound/core/oss/
Dpcm_oss.c83 static int snd_interval_refine_min(struct snd_interval *i, unsigned int min, int openmin) in snd_interval_refine_min() argument
86 if (i->min < min) { in snd_interval_refine_min()
87 i->min = min; in snd_interval_refine_min()
90 } else if (i->min == min && !i->openmin && openmin) { in snd_interval_refine_min()
96 i->min++; in snd_interval_refine_min()
135 t.min = t.max = val; in snd_interval_refine_set()
375 static int boundary_nearer(int min, int mindir, in boundary_nearer() argument
381 boundary_sub(best, bestdir, min, mindir, &dmin, &dmindir); in boundary_nearer()
409 int min, max; in snd_pcm_hw_param_near() local
415 min = max = best; in snd_pcm_hw_param_near()
[all …]
Dmixer_oss.c433 static long snd_mixer_oss_conv1(long val, long min, long max, int *old) in snd_mixer_oss_conv1() argument
435 if (val == snd_mixer_oss_conv(*old, 0, 100, min, max)) in snd_mixer_oss_conv1()
437 return snd_mixer_oss_conv(val, min, max, 0, 100); in snd_mixer_oss_conv1()
441 static long snd_mixer_oss_conv2(long val, long min, long max) in snd_mixer_oss_conv2() argument
443 return snd_mixer_oss_conv(val, 0, 100, min, max); in snd_mixer_oss_conv2()
541 uinfo->value.integer.min == 0 && uinfo->value.integer.max == 1) in snd_mixer_oss_get_volume1_vol()
543 …*left = snd_mixer_oss_conv1(uctl->value.integer.value[0], uinfo->value.integer.min, uinfo->value.i… in snd_mixer_oss_get_volume1_vol()
545 …*right = snd_mixer_oss_conv1(uctl->value.integer.value[1], uinfo->value.integer.min, uinfo->value.… in snd_mixer_oss_get_volume1_vol()
642 uinfo->value.integer.min == 0 && uinfo->value.integer.max == 1) in snd_mixer_oss_put_volume1_vol()
644 …uctl->value.integer.value[0] = snd_mixer_oss_conv2(left, uinfo->value.integer.min, uinfo->value.in… in snd_mixer_oss_put_volume1_vol()
[all …]
/sound/core/seq/
DKconfig1 # define SND_XXX_SEQ to min(SND_SEQUENCER,SND_XXX)

1234567