Home
last modified time | relevance | path

Searched refs:rates (Results 1 – 25 of 421) sorted by relevance

12345678910>>...17

/sound/pci/ac97/
Dac97_pcm.c411 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/
Dpcm_misc.c478 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/
Dskl-pcm.c49 .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/
Dbt-sco.c35 .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,
Dad73311.c47 .rates = SNDRV_PCM_RATE_8000,
53 .rates = SNDRV_PCM_RATE_8000,
Dgtm601.c42 .rates = SNDRV_PCM_RATE_8000,
49 .rates = SNDRV_PCM_RATE_8000,
Dak4554.c54 .rates = SNDRV_PCM_RATE_8000_48000,
61 .rates = SNDRV_PCM_RATE_8000_48000,
/sound/soc/samsung/
Ds3c24xx_uda134x.c48 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/
Ddice-proc.c67 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/
Dquirks-table.h68 .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 …]
Dformat.c207 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/
Dpcm.c30 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/
Dpxa2xx-ac97.c180 .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/
Dlpass-apq8016.c43 .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/
Dhda_eld.c165 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/
Dbebob_focusrite.c45 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/
Dabdac.c103 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/
Dpodhd.c79 .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/
Dkirkwood-i2s.c448 .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/
Dcs5535audio_pcm.c49 .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/
Dhac.c277 .rates = AC97_RATES,
283 .rates = AC97_RATES,
295 .rates = AC97_RATES,
301 .rates = AC97_RATES,
Dssi.c349 .rates = SSI_RATES,
355 .rates = SSI_RATES,
366 .rates = SSI_RATES,
372 .rates = SSI_RATES,
/sound/soc/mediatek/mt2701/
Dmt2701-afe-pcm.c615 .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/
Ddummy.c125 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/
Dpcm.c66 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()

12345678910>>...17