/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, 220 uinfo->value.integer.max = wm->ctl[n].max; in snd_wm8766_volume_info() 231 return snd_ctl_enum_info(uinfo, 1, wm->ctl[n].max, in snd_wm8766_enum_info() 255 val1 = wm->ctl[n].max - (val1 - wm->ctl[n].min); in snd_wm8766_ctl_get() 256 val2 = wm->ctl[n].max - (val2 - wm->ctl[n].min); in snd_wm8766_ctl_get() 276 regval1 = wm->ctl[n].max - (regval1 - wm->ctl[n].min); in snd_wm8766_ctl_put() 277 regval2 = wm->ctl[n].max - (regval2 - wm->ctl[n].min); in snd_wm8766_ctl_put() 329 wm->ctl[num].max = 1; in snd_wm8766_add_control()
|
/sound/core/ |
D | pcm_lib.c | 685 if (i->max > v->max) { in snd_interval_refine() 686 i->max = v->max; in snd_interval_refine() 689 } else if (i->max == v->max && !i->openmax && v->openmax) { in snd_interval_refine() 703 i->max--; in snd_interval_refine() 706 } else if (!i->openmin && !i->openmax && i->min == i->max) in snd_interval_refine() 723 i->max = i->min; in snd_interval_refine_first() 726 i->max++; in snd_interval_refine_first() 736 i->min = i->max; in snd_interval_refine_last() 752 c->max = mul(a->max, b->max); in snd_interval_mul() 775 c->min = div32(a->min, b->max, &r); in snd_interval_div() [all …]
|
D | pcm_memory.c | 239 size_t size, size_t max) in snd_pcm_lib_preallocate_pages1() argument 247 substream->dma_max = max; in snd_pcm_lib_preallocate_pages1() 272 size_t size, size_t max) in snd_pcm_lib_preallocate_pages() argument 276 return snd_pcm_lib_preallocate_pages1(substream, size, max); in snd_pcm_lib_preallocate_pages() 296 size_t size, size_t max) in snd_pcm_lib_preallocate_pages_for_all() argument 303 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() 362 get_user(data->value.integer.max, &data32->value.integer.max) || in snd_ctl_elem_add_compat()
|
/sound/soc/codecs/ |
D | tpa6130a2.c | 192 int max = mc->max; in tpa6130a2_get_volsw() local 193 unsigned int mask = (1 << fls(max)) - 1; in tpa6130a2_get_volsw() 206 max - ucontrol->value.integer.value[0]; in tpa6130a2_get_volsw() 220 int max = mc->max; in tpa6130a2_put_volsw() local 221 unsigned int mask = (1 << fls(max)) - 1; in tpa6130a2_put_volsw() 230 val = max - val; in tpa6130a2_put_volsw()
|
D | twl4030.c | 956 int max = mc->max; in snd_soc_get_volsw_twl4030() local 957 int mask = (1 << fls(max)) - 1; in snd_soc_get_volsw_twl4030() 963 max + 1 - ucontrol->value.integer.value[0]; in snd_soc_get_volsw_twl4030() 970 max + 1 - ucontrol->value.integer.value[1]; in snd_soc_get_volsw_twl4030() 985 int max = mc->max; in snd_soc_put_volsw_twl4030() local 986 int mask = (1 << fls(max)) - 1; in snd_soc_put_volsw_twl4030() 993 val = max + 1 - val; in snd_soc_put_volsw_twl4030() 999 val2 = max + 1 - val2; in snd_soc_put_volsw_twl4030() 1014 int max = mc->max; in snd_soc_get_volsw_r2_twl4030() local 1015 int mask = (1<<fls(max))-1; in snd_soc_get_volsw_r2_twl4030() [all …]
|
D | max9877.c | 46 unsigned int mask = mc->max; in max9877_get_reg() 65 unsigned int mask = mc->max; in max9877_set_reg() 90 unsigned int mask = mc->max; in max9877_get_2reg() 106 unsigned int mask = mc->max; in max9877_set_2reg()
|
D | 88pm860x-codec.c | 379 int max = mc->max, val, val2; in snd_soc_get_volsw_2r_out() local 380 unsigned int mask = (1 << fls(max)) - 1; in snd_soc_get_volsw_2r_out() 384 ucontrol->value.integer.value[0] = (max - val) & mask; in snd_soc_get_volsw_2r_out() 385 ucontrol->value.integer.value[1] = (max - val2) & mask; in snd_soc_get_volsw_2r_out() 399 int max = mc->max; in snd_soc_put_volsw_2r_out() local 400 unsigned int mask = (1 << fls(max)) - 1; in snd_soc_put_volsw_2r_out() 405 val = ((max - ucontrol->value.integer.value[0]) & mask); in snd_soc_put_volsw_2r_out() 406 val2 = ((max - ucontrol->value.integer.value[1]) & mask); in snd_soc_put_volsw_2r_out()
|
/sound/soc/ |
D | soc-core.c | 2417 uinfo->value.enumerated.items = e->max; in snd_soc_info_enum_double() 2419 if (uinfo->value.enumerated.item > e->max - 1) in snd_soc_info_enum_double() 2420 uinfo->value.enumerated.item = e->max - 1; in snd_soc_info_enum_double() 2471 if (ucontrol->value.enumerated.item[0] > e->max - 1) in snd_soc_put_enum_double() 2476 if (ucontrol->value.enumerated.item[1] > e->max - 1) in snd_soc_put_enum_double() 2507 for (mux = 0; mux < e->max; mux++) { in snd_soc_get_value_enum_double() 2514 for (mux = 0; mux < e->max; mux++) { in snd_soc_get_value_enum_double() 2545 if (ucontrol->value.enumerated.item[0] > e->max - 1) in snd_soc_put_value_enum_double() 2550 if (ucontrol->value.enumerated.item[1] > e->max - 1) in snd_soc_put_value_enum_double() 2577 uinfo->value.enumerated.items = e->max; in snd_soc_info_enum_ext() [all …]
|
D | soc-cache.c | 283 unsigned int min, max, index; in snd_soc_get_reg_access_index() local 287 max = codec_drv->reg_access_size - 1; in snd_soc_get_reg_access_index() 289 index = (min + max) / 2; in snd_soc_get_reg_access_index() 295 max = index; in snd_soc_get_reg_access_index() 296 } while (min <= max); in snd_soc_get_reg_access_index()
|
D | soc-dapm.c | 348 int max = mc->max; in dapm_set_path_status() local 349 unsigned int mask = (1 << fls(max)) - 1; in dapm_set_path_status() 355 val = max - val; in dapm_set_path_status() 369 for (i = 0; i < e->max; i++) { in dapm_set_path_status() 397 for (item = 0; item < e->max; item++) { in dapm_set_path_status() 403 for (i = 0; i < e->max; i++) { in dapm_set_path_status() 450 for (i = 0; i < e->max; i++) { in dapm_connect_mux() 2643 int max = mc->max; in snd_soc_dapm_get_volsw() local 2644 unsigned int mask = (1 << fls(max)) - 1; in snd_soc_dapm_get_volsw() 2656 max - ucontrol->value.integer.value[0]; in snd_soc_dapm_get_volsw() [all …]
|
/sound/usb/ |
D | mixer.c | 154 cval->dBmax = p->dB->max; in check_mapped_dB() 260 else if (val >= cval->max) in get_relative_value() 261 return (cval->max - cval->min + cval->res - 1) / cval->res; in get_relative_value() 274 if (val > cval->max) in get_abs_value() 275 return cval->max; in get_abs_value() 815 cval->max = 0xffff; in volume_control_quirks() 822 cval->max = 0xff; in volume_control_quirks() 827 cval->max = 0xff7b; in volume_control_quirks() 834 cval->max = 0xfcfe; in volume_control_quirks() 845 cval->max = 0x7f00; in volume_control_quirks() [all …]
|
D | pcm.c | 778 if (fp->channels < ct->min || fp->channels > ct->max) { in hw_check_valid_format() 779 hwc_debug(" > check: no valid channels %d (%d/%d)\n", fp->channels, ct->min, ct->max); in hw_check_valid_format() 783 if (fp->rate_min > it->max || (fp->rate_min == it->max && it->openmax)) { in hw_check_valid_format() 784 hwc_debug(" > check: rate_min %d > max %d\n", fp->rate_min, it->max); in hw_check_valid_format() 794 if (ptime > pt->max || (ptime == pt->max && pt->openmax)) { in hw_check_valid_format() 795 hwc_debug(" > check: ptime %u > max %u\n", ptime, pt->max); in hw_check_valid_format() 811 hwc_debug("hw_rule_rate: (%d,%d)\n", it->min, it->max); in hw_rule_rate() 840 if (it->max > rmax) { in hw_rule_rate() 841 it->max = rmax; in hw_rule_rate() 849 hwc_debug(" --> (%d, %d) (changed = %d)\n", it->min, it->max, changed); in hw_rule_rate() [all …]
|
D | format.c | 233 int max = combine_quad(&data[6 + 12 * i]); in parse_uac2_sample_rate_range() local 237 if ((max < 0) || (min < 0) || (res < 0) || (max < min)) in parse_uac2_sample_rate_range() 247 fp->rate_max = max; in parse_uac2_sample_rate_range() 252 for (rate = min; rate <= max; rate += res) { in parse_uac2_sample_rate_range()
|
/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() 413 int max = 128; in snd_wavefront_midi_interrupt() local 424 while (--max) { in snd_wavefront_midi_interrupt()
|
/sound/isa/gus/ |
D | gus_mixer.c | 86 uinfo->value.integer.max = 127; in snd_ics_info_double() 161 unsigned int idx, max; in snd_gf1_new_mixer() local 181 max = gus->ess_flag ? 1 : ARRAY_SIZE(snd_gf1_controls); in snd_gf1_new_mixer() 182 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 | 50 {.min = xmin, .max = xmax} } 596 int max = mc->max; in omap_mcbsp_st_info_volsw() local 602 uinfo->value.integer.max = max; in omap_mcbsp_st_info_volsw() 615 int max = mc->max; \ 619 if (val < min || val > max) \
|
/sound/soc/fsl/ |
D | mx27vis-aic32x4.c | 97 int max = mc->max; in mx27vis_amp_set() local 99 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 | 373 int max = 64; in snd_mpu401_uart_input_trigger() local 380 while (max-- > 0) in snd_mpu401_uart_input_trigger() 404 int max = 128; in snd_mpu401_uart_input_read() local 407 while (max-- > 0) { in snd_mpu401_uart_input_read() 431 int max = 256; in snd_mpu401_uart_output_write() local 449 } while (--max > 0); in snd_mpu401_uart_output_write()
|
/sound/ppc/ |
D | tumbler.c | 261 uinfo->value.integer.max = ARRAY_SIZE(master_volume_table) - 1; in tumbler_info_master_volume() 408 uinfo->value.integer.max = in tumbler_info_drc_value() 493 unsigned int max; member 508 if (vol >= info->max) in tumbler_set_mono_volume() 509 vol = info->max - 1; in tumbler_set_mono_volume() 530 uinfo->value.integer.max = info->max - 1; in tumbler_info_mono() 558 if (vol >= info->max) in tumbler_put_mono() 573 .max = ARRAY_SIZE(mixer_volume_table), 581 .max = ARRAY_SIZE(bass_volume_table), 589 .max = ARRAY_SIZE(treble_volume_table), [all …]
|
/sound/core/oss/ |
D | pcm_oss.c | 107 static int snd_interval_refine_max(struct snd_interval *i, unsigned int max, int openmax) in snd_interval_refine_max() argument 110 if (i->max > max) { in snd_interval_refine_max() 111 i->max = max; in snd_interval_refine_max() 114 } else if (i->max == max && !i->openmax && openmax) { in snd_interval_refine_max() 120 i->max--; in snd_interval_refine_max() 135 t.min = t.max = val; in snd_interval_refine_set() 377 int max, int maxdir) in boundary_nearer() argument 382 boundary_sub(max, maxdir, best, bestdir, &dmax, &dmaxdir); 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 …]
|
/sound/pci/echoaudio/ |
D | echoaudio.c | 157 ch.max = 2; in hw_rule_capture_channels_by_format() 159 ch.max = 1; in hw_rule_capture_channels_by_format() 167 ch.max = 2; in hw_rule_capture_channels_by_format() 195 } else if (c->max == 1) in hw_rule_playback_format_by_channels() 199 else if (c->min == 2 && c->max == 2) in hw_rule_playback_format_by_channels() 229 ch.max = 2; in hw_rule_playback_channels_by_format() 231 ch.max = 1; in hw_rule_playback_channels_by_format() 235 ch.min = ch.max = 2; in hw_rule_playback_channels_by_format() 260 fixed.min = fixed.max = chip->sample_rate; in hw_rule_sample_rate() 1010 uinfo->value.integer.max = ECHOGAIN_MAXOUT; in snd_echo_output_gain_info() [all …]
|