/sound/soc/ |
D | soc-ops.c | 183 mc->platform_max = mc->max; 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() 246 int max = mc->max; in snd_soc_get_volsw() local 249 unsigned int mask = (1 << fls(max)) - 1; in snd_soc_get_volsw() 264 max - ucontrol->value.integer.value[0]; in snd_soc_get_volsw() 279 max - ucontrol->value.integer.value[1]; in snd_soc_get_volsw() 306 int max = mc->max; in snd_soc_put_volsw() local 309 unsigned int mask = (1 << fls(max)) - 1; in snd_soc_put_volsw() 322 if (val > max - min) in snd_soc_put_volsw() [all …]
|
/sound/pci/ice1712/ |
D | wm8776.c | 141 .max = 0xff, 168 .max = 0x7f, 228 .max = 0xff, 275 .max = 5, /* .enum_names item count */ 285 .max = 15, 293 .max = 11, /* .enum_names item count */ 304 .max = 11, /* .enum_names item count */ 314 .max = 8, /* .enum_names item count */ 326 .max = 12, 335 .max = 15, [all …]
|
D | wm8766.c | 38 .max = 0xff, 49 .max = 0xff, 60 .max = 0xff, 190 uinfo->value.integer.max = wm->ctl[n].max; in snd_wm8766_volume_info() 201 return snd_ctl_enum_info(uinfo, 1, wm->ctl[n].max, in snd_wm8766_enum_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() 300 wm->ctl[num].max = 1; in snd_wm8766_add_control()
|
/sound/soc/sof/ |
D | control.c | 81 scontrol->volume_table, sm->max + 1); in snd_sof_volume_get() 101 scontrol->volume_table, sm->max + 1); in snd_sof_volume_put() 225 if (be->max > sizeof(ucontrol->value.bytes.data)) { in snd_sof_bytes_get() 228 be->max); in snd_sof_bytes_get() 233 if (data->size > be->max - sizeof(*data)) { in snd_sof_bytes_get() 236 data->size, be->max - sizeof(*data)); in snd_sof_bytes_get() 259 if (be->max > sizeof(ucontrol->value.bytes.data)) { in snd_sof_bytes_put() 262 be->max); in snd_sof_bytes_put() 267 if (data->size > be->max - sizeof(*data)) { in snd_sof_bytes_put() 270 data->size, be->max - sizeof(*data)); in snd_sof_bytes_put() [all …]
|
D | pcm.c | 652 rate->max = 48000; in sof_pcm_dai_link_fixup() 655 channels->max = 2; in sof_pcm_dai_link_fixup() 685 rate->max = dai->dai_config->ssp.fsync_rate; in sof_pcm_dai_link_fixup() 687 channels->max = dai->dai_config->ssp.tdm_slots; in sof_pcm_dai_link_fixup() 690 "rate_min: %d rate_max: %d\n", rate->min, rate->max); in sof_pcm_dai_link_fixup() 693 channels->min, channels->max); in sof_pcm_dai_link_fixup() 722 rate->max = dai->dai_config->esai.fsync_rate; in sof_pcm_dai_link_fixup() 724 channels->max = dai->dai_config->esai.tdm_slots; in sof_pcm_dai_link_fixup() 727 "rate_min: %d rate_max: %d\n", rate->min, rate->max); in sof_pcm_dai_link_fixup() 730 channels->min, channels->max); in sof_pcm_dai_link_fixup() [all …]
|
/sound/core/ |
D | pcm_lib.c | 593 if (i->max > v->max) { in snd_interval_refine() 594 i->max = v->max; in snd_interval_refine() 597 } else if (i->max == v->max && !i->openmax && v->openmax) { in snd_interval_refine() 611 i->max--; in snd_interval_refine() 614 } else if (!i->openmin && !i->openmax && i->min == i->max) in snd_interval_refine() 626 const unsigned int last_max = i->max; in snd_interval_refine_first() 632 i->max = i->min; in snd_interval_refine_first() 634 i->max++; in snd_interval_refine_first() 636 i->openmax = (i->openmax && i->max >= last_max); in snd_interval_refine_first() 648 i->min = i->max; in snd_interval_refine_last() [all …]
|
D | pcm_memory.c | 261 size_t size, size_t max, bool managed) in preallocate_pages() argument 274 substream->dma_max = max; in preallocate_pages() 275 if (max > 0) in preallocate_pages() 282 void *data, size_t size, size_t max, in preallocate_pages_for_all() argument 291 preallocate_pages(substream, type, data, size, max, in preallocate_pages_for_all() 307 size_t size, size_t max) in snd_pcm_lib_preallocate_pages() argument 309 preallocate_pages(substream, type, data, size, max, false); in snd_pcm_lib_preallocate_pages() 326 size_t size, size_t max) in snd_pcm_lib_preallocate_pages_for_all() argument 328 preallocate_pages_for_all(pcm, type, data, size, max, false); in snd_pcm_lib_preallocate_pages_for_all() 351 struct device *data, size_t size, size_t max) in snd_pcm_set_managed_buffer() argument [all …]
|
D | pcm_drm_eld.c | 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() 74 t.max = max(t.max, sad_max_channels(sad)); in eld_limit_channels()
|
/sound/firewire/bebob/ |
D | bebob_pcm.c | 19 .min = UINT_MAX, .max = 0, .integer = 1 in hw_rule_rate() 32 t.max = max(t.max, snd_bebob_rate_table[i]); in hw_rule_rate() 47 .min = UINT_MAX, .max = 0, .integer = 1 in hw_rule_channels() 61 t.max = max(t.max, formations[i].pcm); in hw_rule_channels() 86 hw->channels_max = max(hw->channels_max, formations[i].pcm); in limit_channels_and_rates() 89 hw->rate_max = max(hw->rate_max, snd_bebob_rate_table[i]); in limit_channels_and_rates()
|
/sound/firewire/fireface/ |
D | ff-pcm.c | 19 .min = UINT_MAX, .max = 0, .integer = 1 in hw_rule_rate() 35 t.max = max(t.max, amdtp_rate_table[i]); in hw_rule_rate() 50 .min = UINT_MAX, .max = 0, .integer = 1 in hw_rule_channels() 66 t.max = max(t.max, pcm_channels[mode]); in hw_rule_channels() 95 hw->channels_max = max(hw->channels_max, channels); in limit_channels_and_rates() 100 hw->rate_max = max(hw->rate_max, rate); in limit_channels_and_rates()
|
/sound/firewire/fireworks/ |
D | fireworks_proc.c | 132 unsigned int g, c, m, max, size; in proc_read_phys_meters() local 150 max = min(efw->phys_out, meters->out_meters); in proc_read_phys_meters() 152 snd_iprintf(buffer, " %d Outputs:\n", max); in proc_read_phys_meters() 156 if (m < max) in proc_read_phys_meters() 163 max = min(efw->phys_in, meters->in_meters); in proc_read_phys_meters() 165 snd_iprintf(buffer, " %d Inputs:\n", max); in proc_read_phys_meters() 169 if (m < max) in proc_read_phys_meters()
|
D | fireworks_pcm.c | 72 .min = UINT_MAX, .max = 0, .integer = 1 in hw_rule_rate() 82 t.max = max(t.max, freq_table[i]); in hw_rule_rate() 97 .min = UINT_MAX, .max = 0, .integer = 1 in hw_rule_channels() 107 t.max = max(t.max, pcm_channels[mode]); in hw_rule_channels() 127 hw->channels_max = max(hw->channels_max, pcm_channels[mode]); in limit_channels()
|
/sound/firewire/motu/ |
D | motu-pcm.c | 21 .min = UINT_MAX, .max = 0, .integer = 1 in motu_rate_constraint() 34 rates.max = max(rates.max, rate); in motu_rate_constraint() 50 .min = UINT_MAX, .max = 0, .integer = 1 in motu_channels_constraint() 63 channels.max = max(channels.max, pcm_channels); in motu_channels_constraint() 89 hw->channels_max = max(hw->channels_max, pcm_channels); in limit_channels_and_rates()
|
/sound/xen/ |
D | xen_snd_front_alsa.c | 286 req.rates.max = rates->max; in alsa_hw_rule() 289 req.channels.max = channels->max; in alsa_hw_rule() 292 req.buffer.max = buffer->max; in alsa_hw_rule() 295 req.period.max = period->max; in alsa_hw_rule() 323 interval.max = resp.rates.max; in alsa_hw_rule() 330 interval.max = resp.channels.max; in alsa_hw_rule() 337 interval.max = resp.buffer.max; in alsa_hw_rule() 344 interval.max = resp.period.max; in alsa_hw_rule()
|
/sound/firewire/digi00x/ |
D | digi00x-pcm.c | 18 .min = UINT_MAX, .max = 0, .integer = 1, in hw_rule_rate() 28 t.max = max(t.max, snd_dg00x_stream_rates[i]); in hw_rule_rate() 42 .min = UINT_MAX, .max = 0, .integer = 1, in hw_rule_channels() 51 t.max = max(t.max, 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() 43 rates.max = max(rates.max, rate); in dice_rate_constraint() 61 .min = UINT_MAX, .max = 0, .integer = 1 in dice_channels_constraint() 81 channels.max = max(channels.max, pcm_channels[mode]); in dice_channels_constraint() 117 hw->channels_max = max(hw->channels_max, channels); in limit_channels_and_rates()
|
/sound/soc/sh/rcar/ |
D | core.c | 491 int max = array ? array_size : RSND_MOD_MAX; in rsnd_mod_next() local 493 for (; *iterator < max; (*iterator)++) { in rsnd_mod_next() 885 p.max = 0; in rsnd_soc_hw_rule() 896 p.max = max(p.max, list[i]); in rsnd_soc_hw_rule() 900 baseline->max, list[i], NULL); in rsnd_soc_hw_rule() 903 p.max = max(p.max, list[i]); in rsnd_soc_hw_rule() 926 ic.max = rsnd_runtime_channel_for_ssi_with_params(io, params); in rsnd_soc_hw_rule_rate() 949 ic.max = rsnd_runtime_channel_for_ssi_with_params(io, params); in rsnd_soc_hw_rule_channels() 1480 hw_param_interval(hw_params, SNDRV_PCM_HW_PARAM_RATE)->max = in rsnd_hw_params() 1486 hw_param_interval(hw_params, SNDRV_PCM_HW_PARAM_RATE)->max = in rsnd_hw_params() [all …]
|
/sound/soc/ti/ |
D | omap-mcbsp-st.c | 386 int max = mc->max; in omap_mcbsp_st_info_volsw() local 392 uinfo->value.integer.max = max; in omap_mcbsp_st_info_volsw() 405 int max = mc->max; \ 409 if (val < min || val > max) \ 468 {.min = xmin, .max = xmax} }
|
/sound/soc/codecs/ |
D | rl6231.c | 112 unsigned int max, unsigned int div) in find_best_div() argument 116 if (in <= max) in find_best_div() 119 d = in / max; in find_best_div() 120 if (in % max) in find_best_div()
|
D | twl4030.c | 835 int max = mc->max; in snd_soc_get_volsw_twl4030() local 836 int mask = (1 << fls(max)) - 1; in snd_soc_get_volsw_twl4030() 842 max + 1 - ucontrol->value.integer.value[0]; in snd_soc_get_volsw_twl4030() 849 max + 1 - ucontrol->value.integer.value[1]; in snd_soc_get_volsw_twl4030() 864 int max = mc->max; in snd_soc_put_volsw_twl4030() local 865 int mask = (1 << fls(max)) - 1; in snd_soc_put_volsw_twl4030() 872 val = max + 1 - val; in snd_soc_put_volsw_twl4030() 878 val2 = max + 1 - val2; in snd_soc_put_volsw_twl4030() 893 int max = mc->max; in snd_soc_get_volsw_r2_twl4030() local 894 int mask = (1<<fls(max))-1; in snd_soc_get_volsw_r2_twl4030() [all …]
|
/sound/isa/wavefront/ |
D | wavefront_midi.c | 118 int max = 256, mask = 1; in snd_wavefront_midi_output_write() local 136 while (max > 0) { in snd_wavefront_midi_output_write() 156 max--; in snd_wavefront_midi_output_write() 179 while (max > 0) { in snd_wavefront_midi_output_write() 210 max--; in snd_wavefront_midi_output_write() 408 int max = 128; in snd_wavefront_midi_interrupt() local 419 while (--max) { in snd_wavefront_midi_interrupt()
|
/sound/isa/gus/ |
D | gus_mixer.c | 71 uinfo->value.integer.max = 127; in snd_ics_info_double() 143 unsigned int idx, max; in snd_gf1_new_mixer() local 163 max = gus->ess_flag ? 1 : ARRAY_SIZE(snd_gf1_controls); in snd_gf1_new_mixer() 164 for (idx = 0; idx < max; idx++) { in snd_gf1_new_mixer()
|
/sound/usb/ |
D | mixer.c | 144 cval->dBmax = p->dB->max; in check_mapped_dB() 256 else if (val >= cval->max) in get_relative_value() 257 return (cval->max - cval->min + cval->res - 1) / cval->res; in get_relative_value() 270 if (val > cval->max) in get_abs_value() 271 return cval->max; in get_abs_value() 1087 cval->max = 0xffff; in volume_control_quirks() 1094 cval->max = 0xff; in volume_control_quirks() 1099 cval->max = 0xff7b; in volume_control_quirks() 1106 cval->max = 0xfcfe; in volume_control_quirks() 1117 cval->max = 0x7f00; in volume_control_quirks() [all …]
|
/sound/pci/oxygen/ |
D | xonar_wm87x6.c | 568 u8 max; in wm8776_field_enum_info() local 571 max = (ctl->private_value >> 12) & 0xf; in wm8776_field_enum_info() 595 return snd_ctl_enum_info(info, 1, max + 1, names); in wm8776_field_enum_info() 604 info->value.integer.max = (ctl->private_value >> 12) & 0xf; in wm8776_field_volume_info() 613 u8 min, max, shift; in wm8776_field_set_from_ctl() local 627 max = (ctl->private_value >> 12) & 0xf; in wm8776_field_set_from_ctl() 634 value = max - (value - min); in wm8776_field_set_from_ctl() 644 u8 min, max; in wm8776_field_set() local 648 max = (ctl->private_value >> 12) & 0xf; in wm8776_field_set() 649 if (value < min || value > max) in wm8776_field_set() [all …]
|
/sound/firewire/oxfw/ |
D | oxfw-pcm.c | 19 .min = UINT_MAX, .max = 0, .integer = 1 in hw_rule_rate() 35 t.max = max(t.max, formation.rate); in hw_rule_rate() 101 hw->channels_max = max(hw->channels_max, formation.pcm); in limit_channels_and_rates() 104 hw->rate_max = max(hw->rate_max, formation.rate); in limit_channels_and_rates()
|