/sound/pci/ac97/ |
D | ac97_pcm.c | 411 unsigned int rates = ~0; in get_rates() local 426 rates &= pcm->r[dbl].codec[cidx]->rates[idx]; in get_rates() 429 rates &= ~(SNDRV_PCM_RATE_64000 | SNDRV_PCM_RATE_88200 | in get_rates() 431 return rates; in get_rates() 457 unsigned int rates; in snd_ac97_pcm_assign() local 493 rpcm->rates = ~0; in snd_ac97_pcm_assign() 498 rates = ~0; in snd_ac97_pcm_assign() 519 rates = SNDRV_PCM_RATE_48000; in snd_ac97_pcm_assign() 521 rates = get_rates(rpcm, j, tmp, 0); in snd_ac97_pcm_assign() 527 rpcm->rates &= rates; in snd_ac97_pcm_assign() [all …]
|
/sound/firewire/dice/ |
D | dice-proc.c | 67 static const char *const rates[] = { in dice_proc_read() local 139 str_from_array(rates, ARRAY_SIZE(rates), in dice_proc_read() 145 str_from_array(rates, ARRAY_SIZE(rates), in dice_proc_read() 160 snd_iprintf(buffer, " %s", rates[i]); in dice_proc_read() 235 str_from_array(rates, ARRAY_SIZE(rates), in dice_proc_read()
|
D | dice-pcm.c | 22 struct snd_interval rates = { in dice_rate_constraint() local 40 rates.min = min(rates.min, rate); in dice_rate_constraint() 41 rates.max = max(rates.max, rate); in dice_rate_constraint() 44 return snd_interval_refine(r, &rates); in dice_rate_constraint() 96 hw->rates |= snd_pcm_rate_to_rate_bit(rate); in limit_channels_and_rates()
|
/sound/usb/ |
D | quirks-table.h | 68 .rates = SNDRV_PCM_RATE_CONTINUOUS, 528 .rates = SNDRV_PCM_RATE_CONTINUOUS, 545 .rates = SNDRV_PCM_RATE_CONTINUOUS, 1016 .rates = SNDRV_PCM_RATE_CONTINUOUS, 1033 .rates = SNDRV_PCM_RATE_CONTINUOUS, 1636 .rates = SNDRV_PCM_RATE_44100, 1654 .rates = SNDRV_PCM_RATE_44100, 1703 .rates = SNDRV_PCM_RATE_44100, 1721 .rates = SNDRV_PCM_RATE_44100, 2117 .rates = SNDRV_PCM_RATE_44100 | [all …]
|
D | format.c | 213 fp->rates |= snd_pcm_rate_to_rate_bit(rate); in parse_audio_format_rates_v1() 222 fp->rates = SNDRV_PCM_RATE_CONTINUOUS; in parse_audio_format_rates_v1() 287 fp->rates = fp->rate_min = fp->rate_max = 0; in parse_uac2_sample_rate_range() 306 fp->rates = SNDRV_PCM_RATE_CONTINUOUS; in parse_uac2_sample_rate_range() 322 fp->rates |= snd_pcm_rate_to_rate_bit(rate); in parse_uac2_sample_rate_range() 573 fp->rates != SNDRV_PCM_RATE_48000 && in snd_usb_parse_audio_format() 574 fp->rates != SNDRV_PCM_RATE_96000) in snd_usb_parse_audio_format()
|
/sound/soc/qcom/ |
D | lpass-apq8016.c | 43 .rates = SNDRV_PCM_RATE_8000 | 64 .rates = SNDRV_PCM_RATE_8000 | 85 .rates = SNDRV_PCM_RATE_8000 | 106 .rates = SNDRV_PCM_RATE_8000 | 121 .rates = SNDRV_PCM_RATE_8000 |
|
/sound/usb/6fire/ |
D | pcm.c | 30 static const int rates[] = { 44100, 48000, 88200, 96000, 176400, 192000 }; variable 56 .rates = SNDRV_PCM_RATE_44100 | 84 rates[rt->rate]); in usb6fire_pcm_set_rate() 92 rates[rt->rate]); in usb6fire_pcm_set_rate() 101 rates[rt->rate]); in usb6fire_pcm_set_rate() 110 rates[rt->rate]); in usb6fire_pcm_set_rate() 403 if (rt->rate < ARRAY_SIZE(rates)) in usb6fire_pcm_open() 404 alsa_rt->hw.rates = rates_alsaid[rt->rate]; in usb6fire_pcm_open() 408 if (rt->rate < ARRAY_SIZE(rates)) in usb6fire_pcm_open() 409 alsa_rt->hw.rates = rates_alsaid[rt->rate]; in usb6fire_pcm_open() [all …]
|
/sound/soc/pxa/ |
D | pxa2xx-ac97.c | 180 .rates = PXA2XX_AC97_RATES, 186 .rates = PXA2XX_AC97_RATES, 197 .rates = PXA2XX_AC97_RATES, 203 .rates = PXA2XX_AC97_RATES, 214 .rates = PXA2XX_AC97_RATES,
|
/sound/pci/hda/ |
D | hda_eld.c | 178 a->rates = 0; in hdmi_update_short_audio_desc() 181 a->rates |= cea_sampling_frequencies[i + 1]; in hdmi_update_short_audio_desc() 405 hdmi_print_pcm_rates(a->rates, buf, sizeof(buf)); in hdmi_show_short_audio_desc() 462 hdmi_print_pcm_rates(a->rates, buf, sizeof(buf)); in hdmi_print_sad_info() 463 snd_iprintf(buffer, "sad%d_rates\t\t[0x%x]%s\n", i, a->rates, buf); in hdmi_print_sad_info() 577 e->sad[n].rates = val; in snd_hdmi_write_eld_info() 595 u32 rates; in snd_hdmi_eld_update_pcm_info() local 604 rates = SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | in snd_hdmi_eld_update_pcm_info() 611 rates |= a->rates; in snd_hdmi_eld_update_pcm_info() 629 hinfo->rates &= rates; in snd_hdmi_eld_update_pcm_info()
|
/sound/firewire/bebob/ |
D | bebob_focusrite.c | 47 static const unsigned int rates[] = { variable 151 if (id >= ARRAY_SIZE(rates)) in saffirepro_both_clk_freq_get() 154 *rate = rates[id]; in saffirepro_both_clk_freq_get() 163 for (id = 0; id < ARRAY_SIZE(rates); id++) { in saffirepro_both_clk_freq_set() 164 if (rates[id] == rate) in saffirepro_both_clk_freq_set() 167 if (id == ARRAY_SIZE(rates)) in saffirepro_both_clk_freq_set()
|
/sound/soc/samsung/ |
D | s3c24xx_uda134x.c | 48 static unsigned int rates[33 * 2]; variable 51 .count = ARRAY_SIZE(rates), 52 .list = rates, 89 rates[i*33] = clk_get_rate(xtal) / fs; in s3c24xx_uda134x_startup() 91 rates[i*33 + j] = clk_get_rate(pclk) / in s3c24xx_uda134x_startup() 142 cerr = rates[i] - rate; in s3c24xx_uda134x_hw_params()
|
/sound/atmel/ |
D | abdac.c | 103 unsigned int rates[MAX_NUM_RATES]; member 163 .rates = (SNDRV_PCM_RATE_KNOT), 180 atmel_abdac_hw.rate_max = dac->rates[dac->rates_num - 1]; in atmel_abdac_open() 181 atmel_abdac_hw.rate_min = dac->rates[0]; in atmel_abdac_open() 364 dac->rates[index] = new_rate / 256; in set_sample_rates() 376 unsigned int tmp = dac->rates[index - 1 - i]; in set_sample_rates() 377 dac->rates[index - 1 - i] = dac->rates[i]; in set_sample_rates() 378 dac->rates[i] = tmp; in set_sample_rates() 382 dac->constraints_rates.list = dac->rates; in set_sample_rates()
|
/sound/soc/intel/skylake/ |
D | skl-pcm.c | 43 .rates = SNDRV_PCM_RATE_48000, 497 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_8000, 504 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_16000, 515 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_16000, 526 .rates = SNDRV_PCM_RATE_48000, 537 .rates = SNDRV_PCM_RATE_48000, 549 .rates = SNDRV_PCM_RATE_48000, 556 .rates = SNDRV_PCM_RATE_48000, 567 .rates = SNDRV_PCM_RATE_8000|SNDRV_PCM_RATE_16000|SNDRV_PCM_RATE_48000, 578 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_16000, [all …]
|
/sound/core/ |
D | pcm_misc.c | 478 if (runtime->hw.rates & (1 << i)) { in snd_pcm_limit_hw_rates() 484 if (runtime->hw.rates & (1 << i)) { in snd_pcm_limit_hw_rates() 530 static unsigned int snd_pcm_rate_mask_sanitize(unsigned int rates) in snd_pcm_rate_mask_sanitize() argument 532 if (rates & SNDRV_PCM_RATE_CONTINUOUS) in snd_pcm_rate_mask_sanitize() 534 else if (rates & SNDRV_PCM_RATE_KNOT) in snd_pcm_rate_mask_sanitize() 536 return rates; in snd_pcm_rate_mask_sanitize()
|
/sound/usb/line6/ |
D | podhd.c | 46 .rates = SNDRV_PCM_RATE_48000, 63 .rates = SNDRV_PCM_RATE_48000, 73 .rates = {
|
/sound/soc/kirkwood/ |
D | kirkwood-i2s.c | 448 .rates = SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000 | 455 .rates = SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000 | 467 .rates = SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000 | 474 .rates = SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000 | 489 .rates = SNDRV_PCM_RATE_CONTINUOUS, 497 .rates = SNDRV_PCM_RATE_CONTINUOUS, 510 .rates = SNDRV_PCM_RATE_CONTINUOUS, 518 .rates = SNDRV_PCM_RATE_CONTINUOUS,
|
/sound/pci/cs5535audio/ |
D | cs5535audio_pcm.c | 49 .rates = ( 76 .rates = ( 99 runtime->hw.rates = cs5535au->ac97->rates[AC97_RATES_FRONT_DAC]; in snd_cs5535audio_playback_open() 358 runtime->hw.rates = cs5535au->ac97->rates[AC97_RATES_ADC]; in snd_cs5535audio_capture_open()
|
/sound/soc/codecs/ |
D | ad73311.c | 47 .rates = SNDRV_PCM_RATE_8000, 53 .rates = SNDRV_PCM_RATE_8000,
|
D | gtm601.c | 42 .rates = SNDRV_PCM_RATE_8000, 49 .rates = SNDRV_PCM_RATE_8000,
|
D | ak4554.c | 54 .rates = SNDRV_PCM_RATE_8000_48000, 61 .rates = SNDRV_PCM_RATE_8000_48000,
|
D | bt-sco.c | 34 .rates = SNDRV_PCM_RATE_8000, 41 .rates = SNDRV_PCM_RATE_8000,
|
/sound/soc/sh/ |
D | hac.c | 277 .rates = AC97_RATES, 283 .rates = AC97_RATES, 295 .rates = AC97_RATES, 301 .rates = AC97_RATES,
|
D | ssi.c | 349 .rates = SSI_RATES, 355 .rates = SSI_RATES, 366 .rates = SSI_RATES, 372 .rates = SSI_RATES,
|
/sound/drivers/ |
D | dummy.c | 125 unsigned int rates; member 202 .rates = SNDRV_PCM_RATE_48000, 216 .rates = SNDRV_PCM_RATE_48000|SNDRV_PCM_RATE_96000|SNDRV_PCM_RATE_192000, 529 .rates = USE_RATE, 937 static int rates[] = { in print_rates() local 943 if (dummy->pcm_hw.rates & SNDRV_PCM_RATE_CONTINUOUS) in print_rates() 945 if (dummy->pcm_hw.rates & SNDRV_PCM_RATE_KNOT) in print_rates() 947 for (i = 0; i < ARRAY_SIZE(rates); i++) in print_rates() 948 if (dummy->pcm_hw.rates & (1 << i)) in print_rates() 949 snd_iprintf(buffer, " %d", rates[i]); in print_rates() [all …]
|
/sound/aoa/soundbus/i2sbus/ |
D | pcm.c | 66 do { if (rates & SNDRV_PCM_RATE_ ##rate) { \ 70 rates &= ~SNDRV_PCM_RATE_ ##rate; \ 81 unsigned int rates = 0; in i2sbus_pcm_open() local 105 while (ti->formats && ti->rates) { in i2sbus_pcm_open() 111 rates &= v.rates; in i2sbus_pcm_open() 114 rates = v.rates; in i2sbus_pcm_open() 143 hw->rates = rates; in i2sbus_pcm_open() 900 || !ci->transfers->rates || !ci->usable) in i2sbus_attach_codec() 925 while (tmp->formats && tmp->rates) { in i2sbus_attach_codec()
|