/sound/soc/ |
D | soc-ops.c | 194 mc->platform_max = mc->max; 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() 257 int max = mc->max; in snd_soc_get_volsw() local 260 unsigned int mask = (1 << fls(max)) - 1; in snd_soc_get_volsw() 275 max - ucontrol->value.integer.value[0]; in snd_soc_get_volsw() 290 max - ucontrol->value.integer.value[1]; in snd_soc_get_volsw() 317 int max = mc->max; in snd_soc_put_volsw() local 320 unsigned int mask = (1 << fls(max)) - 1; in snd_soc_put_volsw() 332 val = max - val; in snd_soc_put_volsw() [all …]
|
/sound/pci/ice1712/ |
D | wm8776.c | 155 .max = 0xff, 182 .max = 0x7f, 242 .max = 0xff, 289 .max = 5, /* .enum_names item count */ 299 .max = 15, 307 .max = 11, /* .enum_names item count */ 318 .max = 11, /* .enum_names item count */ 328 .max = 8, /* .enum_names item count */ 340 .max = 12, 349 .max = 15, [all …]
|
D | wm8766.c | 52 .max = 0xff, 63 .max = 0xff, 74 .max = 0xff, 204 uinfo->value.integer.max = wm->ctl[n].max; in snd_wm8766_volume_info() 215 return snd_ctl_enum_info(uinfo, 1, wm->ctl[n].max, in snd_wm8766_enum_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() 314 wm->ctl[num].max = 1; in snd_wm8766_add_control()
|
/sound/core/ |
D | pcm_drm_eld.c | 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() 77 t.max = max(t.max, sad_max_channels(sad)); in eld_limit_channels()
|
D | pcm_lib.c | 618 if (i->max > v->max) { in snd_interval_refine() 619 i->max = v->max; in snd_interval_refine() 622 } else if (i->max == v->max && !i->openmax && v->openmax) { in snd_interval_refine() 636 i->max--; in snd_interval_refine() 639 } else if (!i->openmin && !i->openmax && i->min == i->max) in snd_interval_refine() 652 const unsigned int last_max = i->max; in snd_interval_refine_first() 658 i->max = i->min; in snd_interval_refine_first() 660 i->max++; in snd_interval_refine_first() 662 i->openmax = (i->openmax && i->max >= last_max); in snd_interval_refine_first() 674 i->min = i->max; in snd_interval_refine_last() [all …]
|
D | pcm_memory.c | 232 size_t size, size_t max) in snd_pcm_lib_preallocate_pages1() argument 240 substream->dma_max = max; in snd_pcm_lib_preallocate_pages1() 260 size_t size, size_t max) in snd_pcm_lib_preallocate_pages() argument 264 return snd_pcm_lib_preallocate_pages1(substream, size, max); in snd_pcm_lib_preallocate_pages() 284 size_t size, size_t max) in snd_pcm_lib_preallocate_pages_for_all() argument 291 if ((err = snd_pcm_lib_preallocate_pages(substream, type, data, size, max)) < 0) in snd_pcm_lib_preallocate_pages_for_all()
|
D | control_compat.c | 74 s32 max; member 79 u64 max; member 134 put_user(data->value.integer.max, &data32->value.integer.max) || in snd_ctl_elem_info_compat() 412 get_user(data->value.integer.max, &data32->value.integer.max) || in snd_ctl_elem_add_compat()
|
/sound/firewire/bebob/ |
D | bebob_pcm.c | 20 .min = UINT_MAX, .max = 0, .integer = 1 in hw_rule_rate() 33 t.max = max(t.max, snd_bebob_rate_table[i]); in hw_rule_rate() 48 .min = UINT_MAX, .max = 0, .integer = 1 in hw_rule_channels() 62 t.max = max(t.max, formations[i].pcm); in hw_rule_channels() 87 hw->channels_max = max(hw->channels_max, formations[i].pcm); in limit_channels_and_rates() 90 hw->rate_max = max(hw->rate_max, snd_bebob_rate_table[i]); in limit_channels_and_rates()
|
/sound/firewire/fireworks/ |
D | fireworks_proc.c | 133 unsigned int g, c, m, max, size; in proc_read_phys_meters() local 151 max = min(efw->phys_out, meters->out_meters); in proc_read_phys_meters() 153 snd_iprintf(buffer, " %d Outputs:\n", max); in proc_read_phys_meters() 157 if (m < max) in proc_read_phys_meters() 164 max = min(efw->phys_in, meters->in_meters); in proc_read_phys_meters() 166 snd_iprintf(buffer, " %d Inputs:\n", max); in proc_read_phys_meters() 170 if (m < max) in proc_read_phys_meters()
|
D | fireworks_pcm.c | 73 .min = UINT_MAX, .max = 0, .integer = 1 in hw_rule_rate() 83 t.max = max(t.max, freq_table[i]); in hw_rule_rate() 98 .min = UINT_MAX, .max = 0, .integer = 1 in hw_rule_channels() 108 t.max = max(t.max, pcm_channels[mode]); in hw_rule_channels() 128 hw->channels_max = max(hw->channels_max, 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() 29 t.max = max(t.max, snd_dg00x_stream_rates[i]); in hw_rule_rate() 43 .min = UINT_MAX, .max = 0, .integer = 1, in hw_rule_channels() 52 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() 41 rates.max = max(rates.max, rate); in dice_rate_constraint() 58 .min = UINT_MAX, .max = 0, .integer = 1 in dice_channels_constraint() 76 channels.max = max(channels.max, pcm_channels[mode]); in dice_channels_constraint() 101 hw->channels_max = max(hw->channels_max, pcm_channels[mode]); in limit_channels_and_rates()
|
/sound/soc/codecs/ |
D | tpa6130a2.c | 199 int max = mc->max; in tpa6130a2_get_volsw() local 200 unsigned int mask = (1 << fls(max)) - 1; in tpa6130a2_get_volsw() 214 max - ucontrol->value.integer.value[0]; in tpa6130a2_get_volsw() 228 int max = mc->max; in tpa6130a2_put_volsw() local 229 unsigned int mask = (1 << fls(max)) - 1; in tpa6130a2_put_volsw() 239 val = max - val; in tpa6130a2_put_volsw()
|
D | twl4030.c | 850 int max = mc->max; in snd_soc_get_volsw_twl4030() local 851 int mask = (1 << fls(max)) - 1; in snd_soc_get_volsw_twl4030() 857 max + 1 - ucontrol->value.integer.value[0]; in snd_soc_get_volsw_twl4030() 864 max + 1 - ucontrol->value.integer.value[1]; in snd_soc_get_volsw_twl4030() 879 int max = mc->max; in snd_soc_put_volsw_twl4030() local 880 int mask = (1 << fls(max)) - 1; in snd_soc_put_volsw_twl4030() 887 val = max + 1 - val; in snd_soc_put_volsw_twl4030() 893 val2 = max + 1 - val2; in snd_soc_put_volsw_twl4030() 908 int max = mc->max; in snd_soc_get_volsw_r2_twl4030() local 909 int mask = (1<<fls(max))-1; in snd_soc_get_volsw_r2_twl4030() [all …]
|
/sound/usb/ |
D | mixer.c | 159 cval->dBmax = p->dB->max; in check_mapped_dB() 271 else if (val >= cval->max) in get_relative_value() 272 return (cval->max - cval->min + cval->res - 1) / cval->res; in get_relative_value() 285 if (val > cval->max) in get_abs_value() 286 return cval->max; in get_abs_value() 884 cval->max = 0xffff; in volume_control_quirks() 891 cval->max = 0xff; in volume_control_quirks() 896 cval->max = 0xff7b; in volume_control_quirks() 903 cval->max = 0xfcfe; in volume_control_quirks() 914 cval->max = 0x7f00; 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() 902 if (fp->rate_min > it->max || (fp->rate_min == it->max && it->openmax)) { in hw_check_valid_format() 903 hwc_debug(" > check: rate_min %d > max %d\n", fp->rate_min, it->max); in hw_check_valid_format() 913 if (ptime > pt->max || (ptime == pt->max && pt->openmax)) { in hw_check_valid_format() 914 hwc_debug(" > check: ptime %u > max %u\n", ptime, pt->max); in hw_check_valid_format() 930 hwc_debug("hw_rule_rate: (%d,%d)\n", it->min, it->max); in hw_rule_rate() 959 if (it->max > rmax) { in hw_rule_rate() 960 it->max = rmax; in hw_rule_rate() 968 hwc_debug(" --> (%d, %d) (changed = %d)\n", it->min, it->max, changed); in hw_rule_rate() [all …]
|
/sound/isa/wavefront/ |
D | wavefront_midi.c | 121 int max = 256, mask = 1; in snd_wavefront_midi_output_write() local 139 while (max > 0) { in snd_wavefront_midi_output_write() 159 max--; in snd_wavefront_midi_output_write() 182 while (max > 0) { in snd_wavefront_midi_output_write() 213 max--; in snd_wavefront_midi_output_write() 411 int max = 128; in snd_wavefront_midi_interrupt() local 422 while (--max) { in snd_wavefront_midi_interrupt()
|
/sound/soc/sh/rcar/ |
D | core.c | 970 uinfo->value.enumerated.items = cfg->max; in rsnd_kctrl_info() 971 if (uinfo->value.enumerated.item >= cfg->max) in rsnd_kctrl_info() 972 uinfo->value.enumerated.item = cfg->max - 1; in rsnd_kctrl_info() 979 uinfo->value.integer.max = cfg->max; in rsnd_kctrl_info() 980 uinfo->type = (cfg->max == 1) ? in rsnd_kctrl_info() 1076 u32 max) in rsnd_kctrl_new_m() argument 1078 _cfg->cfg.max = max; in rsnd_kctrl_new_m() 1091 u32 max) in rsnd_kctrl_new_s() argument 1093 _cfg->cfg.max = max; in rsnd_kctrl_new_s() 1107 u32 max) in rsnd_kctrl_new_e() argument [all …]
|
/sound/isa/gus/ |
D | gus_mixer.c | 86 uinfo->value.integer.max = 127; in snd_ics_info_double() 158 unsigned int idx, max; in snd_gf1_new_mixer() local 178 max = gus->ess_flag ? 1 : ARRAY_SIZE(snd_gf1_controls); in snd_gf1_new_mixer() 179 for (idx = 0; idx < max; idx++) { in snd_gf1_new_mixer()
|
/sound/pci/oxygen/ |
D | xonar_wm87x6.c | 577 u8 max; in wm8776_field_enum_info() local 580 max = (ctl->private_value >> 12) & 0xf; in wm8776_field_enum_info() 604 return snd_ctl_enum_info(info, 1, max + 1, names); in wm8776_field_enum_info() 613 info->value.integer.max = (ctl->private_value >> 12) & 0xf; in wm8776_field_volume_info() 622 u8 min, max, shift; in wm8776_field_set_from_ctl() local 636 max = (ctl->private_value >> 12) & 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 657 max = (ctl->private_value >> 12) & 0xf; in wm8776_field_set() 658 if (value < min || value > max) in wm8776_field_set() [all …]
|
/sound/soc/omap/ |
D | omap-mcbsp.c | 51 {.min = xmin, .max = xmax} } 614 int max = mc->max; in omap_mcbsp_st_info_volsw() local 620 uinfo->value.integer.max = max; in omap_mcbsp_st_info_volsw() 633 int max = mc->max; \ 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() 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/soc/fsl/ |
D | mx27vis-aic32x4.c | 87 int max = mc->max; in mx27vis_amp_set() local 89 if (value > max) in mx27vis_amp_set()
|
/sound/isa/sb/ |
D | sb8_midi.c | 38 int max = 64; in snd_sb8dsp_midi_interrupt() local 51 while (max-- > 0) { in snd_sb8dsp_midi_interrupt() 181 int max = 32; in snd_sb8dsp_midi_output_write() local 185 while (max-- > 0) { in snd_sb8dsp_midi_output_write()
|
/sound/drivers/mpu401/ |
D | mpu401_uart.c | 370 int max = 64; in snd_mpu401_uart_input_trigger() local 377 while (max-- > 0) in snd_mpu401_uart_input_trigger() 401 int max = 128; in snd_mpu401_uart_input_read() local 404 while (max-- > 0) { in snd_mpu401_uart_input_read() 428 int max = 256; in snd_mpu401_uart_output_write() local 446 } while (--max > 0); in snd_mpu401_uart_output_write()
|