/sound/soc/ |
D | soc-ops.c | 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() 231 uinfo->value.integer.max += mc->min; in snd_soc_info_volsw_sx() 258 int min = mc->min; in snd_soc_get_volsw() local 272 ucontrol->value.integer.value[0] = val - min; in snd_soc_get_volsw() 287 ucontrol->value.integer.value[1] = val - min; in snd_soc_get_volsw() 318 int min = mc->min; in snd_soc_put_volsw() local 330 val = ((ucontrol->value.integer.value[0] + min) & mask); in snd_soc_put_volsw() 336 val2 = ((ucontrol->value.integer.value[1] + min) & mask); in snd_soc_put_volsw() 380 int min = mc->min; in snd_soc_get_volsw_sx() local [all …]
|
/sound/firewire/bebob/ |
D | bebob_pcm.c | 20 .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/core/ |
D | pcm_lib.c | 610 if (i->min < v->min) { in snd_interval_refine() 611 i->min = v->min; in snd_interval_refine() 614 } else if (i->min == v->min && !i->openmin && v->openmin) { in snd_interval_refine() 632 i->min++; in snd_interval_refine() 639 } else if (!i->openmin && !i->openmax && i->min == i->max) in snd_interval_refine() 658 i->max = i->min; in snd_interval_refine_first() 668 const unsigned int last_min = i->min; in snd_interval_refine_last() 674 i->min = i->max; in snd_interval_refine_last() 676 i->min--; in snd_interval_refine_last() 678 i->openmin = (i->openmin && i->min <= last_min); in snd_interval_refine_last() [all …]
|
D | pcm_drm_eld.c | 47 if (c->min <= max_channels) in eld_limit_rates() 61 struct snd_interval t = { .min = 1, .max = 2, .integer = 1, }; in eld_limit_channels() 72 if (r->min <= eld_rates[i] && r->max >= eld_rates[i]) in eld_limit_channels()
|
D | control_compat.c | 73 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() 411 if (get_user(data->value.integer.min, &data32->value.integer.min) || in snd_ctl_elem_add_compat()
|
/sound/firewire/fireworks/ |
D | fireworks_pcm.c | 73 .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/firewire/digi00x/ |
D | digi00x-pcm.c | 19 .min = UINT_MAX, .max = 0, .integer = 1, in hw_rule_rate() 28 t.min = min(t.min, snd_dg00x_stream_rates[i]); in hw_rule_rate() 43 .min = UINT_MAX, .max = 0, .integer = 1, in hw_rule_channels() 51 t.min = min(t.min, snd_dg00x_stream_pcm_channels[i]); in hw_rule_channels()
|
/sound/firewire/dice/ |
D | dice-pcm.c | 23 .min = UINT_MAX, .max = 0, .integer = 1 in dice_rate_constraint() 40 rates.min = min(rates.min, rate); in dice_rate_constraint() 58 .min = UINT_MAX, .max = 0, .integer = 1 in dice_channels_constraint() 75 channels.min = min(channels.min, pcm_channels[mode]); in dice_channels_constraint() 100 hw->channels_min = min(hw->channels_min, pcm_channels[mode]); in limit_channels_and_rates()
|
/sound/usb/ |
D | mixer.c | 158 cval->dBmin = p->dB->min; in check_mapped_dB() 269 if (val < cval->min) in get_relative_value() 272 return (cval->max - cval->min + cval->res - 1) / cval->res; in get_relative_value() 274 return (val - cval->min) / cval->res; in get_relative_value() 280 return cval->min; in get_abs_value() 284 val += cval->min; in get_abs_value() 883 cval->min = 0x0000; in volume_control_quirks() 890 cval->min = 0x00; in volume_control_quirks() 895 cval->min = 0xb706; in volume_control_quirks() 902 cval->min = 0xb5fb; /* -73 dB = 0xb6ff */ in volume_control_quirks() [all …]
|
D | pcm.c | 897 if (fp->channels < ct->min || fp->channels > ct->max) { in hw_check_valid_format() 898 hwc_debug(" > check: no valid channels %d (%d/%d)\n", fp->channels, ct->min, ct->max); in hw_check_valid_format() 906 if (fp->rate_max < it->min || (fp->rate_max == it->min && it->openmin)) { in hw_check_valid_format() 907 hwc_debug(" > check: rate_max %d < min %d\n", fp->rate_max, it->min); in hw_check_valid_format() 930 hwc_debug("hw_rule_rate: (%d,%d)\n", it->min, it->max); in hw_rule_rate() 954 if (it->min < rmin) { in hw_rule_rate() 955 it->min = rmin; in hw_rule_rate() 968 hwc_debug(" --> (%d, %d) (changed = %d)\n", it->min, it->max, changed); in hw_rule_rate() 982 hwc_debug("hw_rule_channels: (%d,%d)\n", it->min, it->max); in hw_rule_channels() 1006 if (it->min < rmin) { in hw_rule_channels() [all …]
|
D | format.c | 290 int min = combine_quad(&data[2 + 12 * i]); in parse_uac2_sample_rate_range() local 295 if ((max < 0) || (min < 0) || (res < 0) || (max < min)) in parse_uac2_sample_rate_range() 304 fp->rate_min = min; in parse_uac2_sample_rate_range() 310 for (rate = min; rate <= max; rate += res) { in parse_uac2_sample_rate_range()
|
/sound/pci/asihpi/ |
D | hpi_version.h | 23 #define HPI_VERSION_CONSTRUCTOR(maj, min, r) ((maj << 16) + (min << 8) + r) argument
|
/sound/pci/ice1712/ |
D | wm8776.c | 181 .min = 0x2f, 339 .min = 3, 380 .min = 1, 390 .min = 10, 477 uinfo->value.integer.min = wm->ctl[n].min; in snd_wm8776_volume_info() 513 val1 = wm->ctl[n].max - (val1 - wm->ctl[n].min); in snd_wm8776_ctl_get() 515 val2 = wm->ctl[n].max - (val2 - wm->ctl[n].min); in snd_wm8776_ctl_get() 535 regval1 = wm->ctl[n].max - (regval1 - wm->ctl[n].min); in snd_wm8776_ctl_put() 536 regval2 = wm->ctl[n].max - (regval2 - wm->ctl[n].min); in snd_wm8776_ctl_put()
|
D | wm8766.c | 203 uinfo->value.integer.min = wm->ctl[n].min; in snd_wm8766_volume_info() 239 val1 = wm->ctl[n].max - (val1 - wm->ctl[n].min); in snd_wm8766_ctl_get() 241 val2 = wm->ctl[n].max - (val2 - wm->ctl[n].min); in snd_wm8766_ctl_get() 261 regval1 = wm->ctl[n].max - (regval1 - wm->ctl[n].min); in snd_wm8766_ctl_put() 262 regval2 = wm->ctl[n].max - (regval2 - wm->ctl[n].min); in snd_wm8766_ctl_put()
|
/sound/soc/omap/ |
D | omap-mcbsp.c | 51 {.min = xmin, .max = xmax} } 106 frames.min = size / channels->min; in omap_mcbsp_hwrule_min_buffersize() 615 int min = mc->min; in omap_mcbsp_st_info_volsw() local 619 uinfo->value.integer.min = min; in omap_mcbsp_st_info_volsw() 634 int min = mc->min; \ 637 if (val < min || val > max) \
|
/sound/firewire/oxfw/ |
D | oxfw-pcm.c | 19 .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/ |
D | xonar_wm87x6.c | 612 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/ |
D | echoaudio.c | 130 if (c->min == 2) { in hw_rule_capture_format_by_channels() 136 if (c->min > 2) { in hw_rule_capture_format_by_channels() 158 ch.min = 1; in hw_rule_capture_channels_by_format() 169 ch.min = 1; in hw_rule_capture_channels_by_format() 193 if (c->min > 2) { in hw_rule_playback_format_by_channels() 202 else if (c->min == 2 && c->max == 2) in hw_rule_playback_format_by_channels() 230 ch.min = 1; in hw_rule_playback_channels_by_format() 238 ch.min = ch.max = 2; in hw_rule_playback_channels_by_format() 242 ch.min = 2; in hw_rule_playback_channels_by_format() 263 fixed.min = fixed.max = chip->sample_rate; in hw_rule_sample_rate() [all …]
|
/sound/soc/intel/boards/ |
D | haswell.c | 55 rate->min = rate->max = 48000; in haswell_ssp0_fixup() 56 channels->min = channels->max = 2; in haswell_ssp0_fixup()
|
D | bytcr_rt5640.c | 112 rate->min = rate->max = 48000; in byt_codec_fixup() 113 channels->min = channels->max = 2; in byt_codec_fixup()
|
D | skl_rt286.c | 117 rate->min = rate->max = 48000; in skylake_ssp0_fixup() 118 channels->min = channels->max = 2; in skylake_ssp0_fixup()
|
/sound/soc/sh/rcar/ |
D | adg.c | 174 unsigned int min, diff; in rsnd_adg_set_convert_clk_gen2() local 185 min = ~0; in rsnd_adg_set_convert_clk_gen2() 197 if (min > diff) { in rsnd_adg_set_convert_clk_gen2() 199 min = diff; in rsnd_adg_set_convert_clk_gen2() 217 if (min == ~0) { in rsnd_adg_set_convert_clk_gen2()
|
/sound/pci/cs5535audio/ |
D | cs5535audio_olpc.c | 70 uinfo->value.integer.min = 0; in olpc_dc_info() 94 uinfo->value.integer.min = 0; in olpc_mic_info()
|
/sound/drivers/pcsp/ |
D | pcsp_mixer.c | 18 uinfo->value.integer.min = 0; in pcsp_enable_info() 87 uinfo->value.integer.min = 0; in pcsp_pcspkr_info()
|
/sound/core/oss/ |
D | pcm_oss.c | 83 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 …]
|