/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/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() 583 unsigned int rates = 0; in snd_pcm_rate_range_to_bits() local 589 rates |= 1 << i; in snd_pcm_rate_range_to_bits() 592 if (!rates) in snd_pcm_rate_range_to_bits() 593 rates = SNDRV_PCM_RATE_KNOT; in snd_pcm_rate_range_to_bits() [all …]
|
/sound/soc/intel/skylake/ |
D | skl-pcm.c | 49 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_16000 | 650 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_8000, 658 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_16000, 669 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_16000, 680 .rates = SNDRV_PCM_RATE_48000, 691 .rates = SNDRV_PCM_RATE_48000, 702 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_16000, 713 .rates = SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | 728 .rates = SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | 743 .rates = SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | [all …]
|
/sound/soc/codecs/ |
D | bt-sco.c | 35 .rates = SNDRV_PCM_RATE_8000, 42 .rates = SNDRV_PCM_RATE_8000, 52 .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000, 59 .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
|
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,
|
/sound/soc/samsung/ |
D | s3c24xx_uda134x.c | 48 static unsigned int rates[33 * 2]; variable 51 .count = ARRAY_SIZE(rates), 52 .list = rates, 88 rates[i*33] = clk_get_rate(xtal) / fs; in s3c24xx_uda134x_startup() 90 rates[i*33 + j] = clk_get_rate(pclk) / in s3c24xx_uda134x_startup() 140 cerr = rates[i] - rate; in s3c24xx_uda134x_hw_params()
|
/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()
|
/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 | 207 fp->rates |= snd_pcm_rate_to_rate_bit(rate); in parse_audio_format_rates_v1() 216 fp->rates = SNDRV_PCM_RATE_CONTINUOUS; in parse_audio_format_rates_v1() 235 fp->rates = fp->rate_min = fp->rate_max = 0; in parse_uac2_sample_rate_range() 254 fp->rates = SNDRV_PCM_RATE_CONTINUOUS; in parse_uac2_sample_rate_range() 265 fp->rates |= snd_pcm_rate_to_rate_bit(rate); in parse_uac2_sample_rate_range() 515 fp->rates != SNDRV_PCM_RATE_48000 && in snd_usb_parse_audio_format() 516 fp->rates != SNDRV_PCM_RATE_96000) in snd_usb_parse_audio_format()
|
/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/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/pci/hda/ |
D | hda_eld.c | 165 a->rates = 0; in hdmi_update_short_audio_desc() 168 a->rates |= cea_sampling_frequencies[i + 1]; in hdmi_update_short_audio_desc() 393 hdmi_print_pcm_rates(a->rates, buf, sizeof(buf)); in hdmi_show_short_audio_desc() 438 hdmi_print_pcm_rates(a->rates, buf, sizeof(buf)); in hdmi_print_sad_info() 439 snd_iprintf(buffer, "sad%d_rates\t\t[0x%x]%s\n", i, a->rates, buf); in hdmi_print_sad_info() 553 e->sad[n].rates = val; in snd_hdmi_write_eld_info() 571 u32 rates; in snd_hdmi_eld_update_pcm_info() local 580 rates = SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | in snd_hdmi_eld_update_pcm_info() 587 rates |= a->rates; in snd_hdmi_eld_update_pcm_info() 605 hinfo->rates &= rates; in snd_hdmi_eld_update_pcm_info()
|
/sound/firewire/bebob/ |
D | bebob_focusrite.c | 45 static const unsigned int rates[] = { variable 149 if (id >= ARRAY_SIZE(rates)) in saffirepro_both_clk_freq_get() 152 *rate = rates[id]; in saffirepro_both_clk_freq_get() 161 for (id = 0; id < ARRAY_SIZE(rates); id++) { in saffirepro_both_clk_freq_set() 162 if (rates[id] == rate) in saffirepro_both_clk_freq_set() 165 if (id == ARRAY_SIZE(rates)) in saffirepro_both_clk_freq_set()
|
/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/usb/line6/ |
D | podhd.c | 79 .rates = SNDRV_PCM_RATE_48000, 96 .rates = SNDRV_PCM_RATE_48000, 106 .rates = { 121 .rates = SNDRV_PCM_RATE_48000, 138 .rates = SNDRV_PCM_RATE_48000, 151 .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/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/soc/mediatek/mt2701/ |
D | mt2701-afe-pcm.c | 615 .rates = SNDRV_PCM_RATE_8000_192000, 632 .rates = SNDRV_PCM_RATE_8000_48000, 648 .rates = SNDRV_PCM_RATE_8000_192000, 665 .rates = (SNDRV_PCM_RATE_8000 680 .rates = (SNDRV_PCM_RATE_8000 694 .rates = SNDRV_PCM_RATE_8000_192000, 704 .rates = SNDRV_PCM_RATE_8000_192000, 720 .rates = SNDRV_PCM_RATE_8000_192000, 729 .rates = SNDRV_PCM_RATE_8000_192000, 744 .rates = SNDRV_PCM_RATE_8000_192000, [all …]
|
/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()
|