/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 …]
|
D | soc-dai.c | 140 int i, max = 0; in snd_soc_dai_get_fmt_max_priority() local 148 max = max(max, dai->driver->ops->num_auto_selectable_formats); in snd_soc_dai_get_fmt_max_priority() 153 return max; in snd_soc_dai_get_fmt_max_priority() 173 int i, max = 0, until = priority; in snd_soc_dai_get_fmt() local 189 max = ops->num_auto_selectable_formats; in snd_soc_dai_get_fmt() 191 if (max < until) in snd_soc_dai_get_fmt() 192 until = max; in snd_soc_dai_get_fmt()
|
/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() 125 sm->platform_max = sm->max; in snd_sof_volume_info() 135 uinfo->value.integer.max = platform_max - sm->min; in snd_sof_volume_info() 247 if (be->max > sizeof(ucontrol->value.bytes.data)) { in snd_sof_bytes_get() 250 be->max); in snd_sof_bytes_get() 255 if (data->size > be->max - sizeof(*data)) { in snd_sof_bytes_get() 258 data->size, be->max - sizeof(*data)); in snd_sof_bytes_get() 281 if (be->max > sizeof(ucontrol->value.bytes.data)) { in snd_sof_bytes_put() 284 be->max); in snd_sof_bytes_put() [all …]
|
D | pcm.c | 670 rate->max = 48000; in sof_pcm_dai_link_fixup() 673 channels->max = 2; in sof_pcm_dai_link_fixup() 706 rate->max = dai->dai_config[dai->current_config].ssp.fsync_rate; in sof_pcm_dai_link_fixup() 708 channels->max = dai->dai_config[dai->current_config].ssp.tdm_slots; in sof_pcm_dai_link_fixup() 711 "rate_min: %d rate_max: %d\n", rate->min, rate->max); in sof_pcm_dai_link_fixup() 714 channels->min, channels->max); in sof_pcm_dai_link_fixup() 744 channels->max = dai->dai_config->alh.channels; in sof_pcm_dai_link_fixup() 748 rate->max = dai->dai_config->esai.fsync_rate; in sof_pcm_dai_link_fixup() 750 channels->max = dai->dai_config->esai.tdm_slots; in sof_pcm_dai_link_fixup() 753 "rate_min: %d rate_max: %d\n", rate->min, rate->max); in sof_pcm_dai_link_fixup() [all …]
|
/sound/core/ |
D | pcm_memory.c | 261 size_t size, size_t max, bool managed) in preallocate_pages() argument 272 if (!max) { in preallocate_pages() 287 substream->dma_max = max; in preallocate_pages() 288 if (max > 0) in preallocate_pages() 296 void *data, size_t size, size_t max, in preallocate_pages_for_all() argument 303 err = preallocate_pages(substream, type, data, size, max, managed); in preallocate_pages_for_all() 322 size_t size, size_t max) in snd_pcm_lib_preallocate_pages() argument 324 preallocate_pages(substream, type, data, size, max, false); in snd_pcm_lib_preallocate_pages() 341 size_t size, size_t max) in snd_pcm_lib_preallocate_pages_for_all() argument 343 preallocate_pages_for_all(pcm, type, data, size, max, false); in snd_pcm_lib_preallocate_pages_for_all() [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()
|
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 …]
|
/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 | 482 int max = array ? array_size : RSND_MOD_MAX; in rsnd_mod_next() local 484 for (; *iterator < max; (*iterator)++) { in rsnd_mod_next() 880 p.max = 0; in rsnd_soc_hw_rule() 891 p.max = max(p.max, list[i]); in rsnd_soc_hw_rule() 895 baseline->max, list[i], NULL); in rsnd_soc_hw_rule() 898 p.max = max(p.max, list[i]); in rsnd_soc_hw_rule() 921 ic.max = rsnd_runtime_channel_for_ssi_with_params(io, params); in rsnd_soc_hw_rule_rate() 944 ic.max = rsnd_runtime_channel_for_ssi_with_params(io, params); in rsnd_soc_hw_rule_channels() 1579 hw_param_interval(hw_params, SNDRV_PCM_HW_PARAM_RATE)->max = in rsnd_hw_params() 1585 hw_param_interval(hw_params, SNDRV_PCM_HW_PARAM_RATE)->max = in rsnd_hw_params() [all …]
|
/sound/soc/codecs/ |
D | rt715-sdca.c | 150 rt715_sdca_vol_gain(ucontrol->value.integer.value[i], mc->max, in rt715_sdca_set_amp_gain_put() 185 rt715_sdca_vol_gain(ucontrol->value.integer.value[i], p->max, in rt715_sdca_set_amp_gain_4ch_put() 221 rt715_sdca_boost_gain(ucontrol->value.integer.value[i], p->max, in rt715_sdca_set_amp_gain_8ch_put() 335 ucontrol->value.integer.value[i] = invert ? p->max - val : val; in rt715_sdca_get_volsw() 341 invert ? p->max - val : val; in rt715_sdca_get_volsw() 357 unsigned int max = p->max; in rt715_sdca_put_volsw() local 358 unsigned int mask = (1 << fls(max)) - 1; in rt715_sdca_put_volsw() 373 val[i * 2] = max - val[i * 2]; in rt715_sdca_put_volsw() 382 val[i * 2 + 1] = max - val[i * 2 + 1]; in rt715_sdca_put_volsw() 406 if (p->max == 1) in rt715_sdca_fu_info() [all …]
|
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/soc/fsl/ |
D | imx-card.c | 50 unsigned int max; member 147 { .min = 128, .max = 128, .mul = 256 }, /* TDM128 */ 148 { .min = 256, .max = 256, .mul = 512 }, /* TDM256 */ 149 { .min = 512, .max = 512, .mul = 1024 }, /* TDM512 */ 184 { .min = 128, .max = 128, .mul = 256 }, 185 { .min = 256, .max = 256, .mul = 512 }, 186 { .min = 512, .max = 512, .mul = 1024 }, 275 width = max(width, plat_data->fs_mul[i].wmin); in akcodec_get_mclk_rate() 381 struct snd_interval t = { .min = 8000, .max = 8000, }; in ak5558_hw_rule_rate() 399 if (t.max < akcodec_rates[i]) in ak5558_hw_rule_rate() [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/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() 412 int max = 128; in snd_wavefront_midi_interrupt() local 423 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()
|