/sound/soc/ |
D | soc-ops.c | 189 mc->platform_max = mc->max; 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() 252 int max = mc->max; in snd_soc_get_volsw() local 255 unsigned int mask = (1ULL << fls(max)) - 1; in snd_soc_get_volsw() 270 max - ucontrol->value.integer.value[0]; in snd_soc_get_volsw() 285 max - ucontrol->value.integer.value[1]; in snd_soc_get_volsw() 312 int max = mc->max; in snd_soc_put_volsw() local 315 unsigned int mask = (1 << fls(max)) - 1; in snd_soc_put_volsw() 328 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 | 49 scontrol->volume_table, sm->max + 1); in snd_sof_volume_get() 69 scontrol->volume_table, sm->max + 1); in snd_sof_volume_put() 191 if (be->max > sizeof(ucontrol->value.bytes.data)) { in snd_sof_bytes_get() 194 be->max); in snd_sof_bytes_get() 199 if (size > be->max) { in snd_sof_bytes_get() 202 size, be->max); in snd_sof_bytes_get() 225 if (be->max > sizeof(ucontrol->value.bytes.data)) { in snd_sof_bytes_put() 228 be->max); in snd_sof_bytes_put() 232 if (size > be->max) { in snd_sof_bytes_put() 235 size, be->max); in snd_sof_bytes_put() [all …]
|
/sound/core/ |
D | pcm_lib.c | 583 if (i->max > v->max) { in snd_interval_refine() 584 i->max = v->max; in snd_interval_refine() 587 } else if (i->max == v->max && !i->openmax && v->openmax) { in snd_interval_refine() 601 i->max--; in snd_interval_refine() 604 } else if (!i->openmin && !i->openmax && i->min == i->max) in snd_interval_refine() 616 const unsigned int last_max = i->max; in snd_interval_refine_first() 622 i->max = i->min; in snd_interval_refine_first() 624 i->max++; in snd_interval_refine_first() 626 i->openmax = (i->openmax && i->max >= last_max); in snd_interval_refine_first() 638 i->min = i->max; in snd_interval_refine_last() [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_memory.c | 200 size_t size, size_t max) in snd_pcm_lib_preallocate_pages1() argument 208 substream->dma_max = max; in snd_pcm_lib_preallocate_pages1() 225 size_t size, size_t max) in snd_pcm_lib_preallocate_pages() argument 229 snd_pcm_lib_preallocate_pages1(substream, size, max); in snd_pcm_lib_preallocate_pages() 246 size_t size, size_t max) in snd_pcm_lib_preallocate_pages_for_all() argument 253 snd_pcm_lib_preallocate_pages(substream, type, data, size, max); in snd_pcm_lib_preallocate_pages_for_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_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()
|
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()
|
/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/motu/ |
D | motu-pcm.c | 21 .min = UINT_MAX, .max = 0, .integer = 1 in motu_rate_constraint() 35 rates.max = max(rates.max, rate); in motu_rate_constraint() 51 .min = UINT_MAX, .max = 0, .integer = 1 in motu_channels_constraint() 65 channels.max = max(channels.max, pcm_channels); in motu_channels_constraint() 92 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/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 | 496 int max = array ? array_size : RSND_MOD_MAX; in rsnd_mod_next() local 498 for (; *iterator < max; (*iterator)++) { in rsnd_mod_next() 890 p.max = 0; in rsnd_soc_hw_rule() 901 p.max = max(p.max, list[i]); in rsnd_soc_hw_rule() 905 baseline->max, list[i], NULL); in rsnd_soc_hw_rule() 908 p.max = max(p.max, list[i]); in rsnd_soc_hw_rule() 931 ic.max = rsnd_runtime_channel_for_ssi_with_params(io, params); in rsnd_soc_hw_rule_rate() 954 ic.max = rsnd_runtime_channel_for_ssi_with_params(io, params); in rsnd_soc_hw_rule_channels() 1478 hw_param_interval(hw_params, SNDRV_PCM_HW_PARAM_RATE)->max = in rsnd_hw_params() 1484 hw_param_interval(hw_params, SNDRV_PCM_HW_PARAM_RATE)->max = in rsnd_hw_params() [all …]
|
/sound/soc/ti/ |
D | omap-mcbsp-st.c | 389 int max = mc->max; in omap_mcbsp_st_info_volsw() local 395 uinfo->value.integer.max = max; in omap_mcbsp_st_info_volsw() 408 int max = mc->max; \ 412 if (val < min || val > max) \ 471 {.min = xmin, .max = xmax} }
|
/sound/soc/codecs/ |
D | rl6231.c | 108 unsigned int max, unsigned int div) in find_best_div() argument 112 if (in <= max) in find_best_div() 115 d = in / max; in find_best_div() 116 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/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()
|
/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() 1076 cval->max = 0xffff; in volume_control_quirks() 1083 cval->max = 0xff; in volume_control_quirks() 1088 cval->max = 0xff7b; in volume_control_quirks() 1095 cval->max = 0xfcfe; in volume_control_quirks() 1106 cval->max = 0x7f00; in volume_control_quirks() [all …]
|
/sound/pci/oxygen/ |
D | xonar_wm87x6.c | 566 u8 max; in wm8776_field_enum_info() local 569 max = (ctl->private_value >> 12) & 0xf; in wm8776_field_enum_info() 593 return snd_ctl_enum_info(info, 1, max + 1, names); in wm8776_field_enum_info() 602 info->value.integer.max = (ctl->private_value >> 12) & 0xf; in wm8776_field_volume_info() 611 u8 min, max, shift; in wm8776_field_set_from_ctl() local 625 max = (ctl->private_value >> 12) & 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 646 max = (ctl->private_value >> 12) & 0xf; in wm8776_field_set() 647 if (value < min || value > max) in wm8776_field_set() [all …]
|
/sound/soc/fsl/ |
D | mx27vis-aic32x4.c | 72 int max = mc->max; in mx27vis_amp_set() local 74 if (value > max) in mx27vis_amp_set()
|