Home
last modified time | relevance | path

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

12345678910>>...18

/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.c471 if (runtime->hw.rates & (1 << i)) { in snd_pcm_limit_hw_rates()
477 if (runtime->hw.rates & (1 << i)) { in snd_pcm_limit_hw_rates()
522 static unsigned int snd_pcm_rate_mask_sanitize(unsigned int rates) in snd_pcm_rate_mask_sanitize() argument
524 if (rates & SNDRV_PCM_RATE_CONTINUOUS) in snd_pcm_rate_mask_sanitize()
526 else if (rates & SNDRV_PCM_RATE_KNOT) in snd_pcm_rate_mask_sanitize()
528 return rates; in snd_pcm_rate_mask_sanitize()
575 unsigned int rates = 0; in snd_pcm_rate_range_to_bits() local
581 rates |= 1 << i; in snd_pcm_rate_range_to_bits()
584 if (!rates) in snd_pcm_rate_range_to_bits()
585 rates = SNDRV_PCM_RATE_KNOT; in snd_pcm_rate_range_to_bits()
[all …]
/sound/soc/intel/skylake/
Dskl-pcm.c50 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_16000 |
663 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_8000,
672 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_16000,
684 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_16000 |
697 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_16000 |
710 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_16000,
722 .rates = SNDRV_PCM_RATE_48000,
734 .rates = SNDRV_PCM_RATE_48000,
746 .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_16000,
758 .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/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/soc/samsung/
Ds3c24xx_uda134x.c45 static unsigned int rates[33 * 2]; variable
48 .count = ARRAY_SIZE(rates),
49 .list = rates,
83 rates[i*33] = clk_get_rate(priv->xtal) / fs; in s3c24xx_uda134x_startup()
85 rates[i*33 + j] = clk_get_rate(priv->pclk) / in s3c24xx_uda134x_startup()
139 cerr = rates[i] - rate; in s3c24xx_uda134x_hw_params()
Dh1940_uda1380.c29 static const unsigned int rates[] = { variable
36 .count = ARRAY_SIZE(rates),
37 .list = rates,
/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.c177 .rates = PXA2XX_AC97_RATES,
183 .rates = PXA2XX_AC97_RATES,
194 .rates = PXA2XX_AC97_RATES,
200 .rates = PXA2XX_AC97_RATES,
211 .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.c47 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/firewire/motu/
Dmotu-pcm.c21 struct snd_interval rates = { in motu_rate_constraint() local
35 rates.min = min(rates.min, rate); in motu_rate_constraint()
36 rates.max = max(rates.max, rate); in motu_rate_constraint()
39 return snd_interval_refine(r, &rates); in motu_rate_constraint()
91 hw->rates |= snd_pcm_rate_to_rate_bit(rate); in limit_channels_and_rates()
/sound/usb/line6/
Dpodhd.c81 .rates = SNDRV_PCM_RATE_48000,
98 .rates = SNDRV_PCM_RATE_48000,
108 .rates = {
123 .rates = SNDRV_PCM_RATE_48000,
140 .rates = SNDRV_PCM_RATE_48000,
153 .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/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,
945 static int rates[] = { in print_rates() local
951 if (dummy->pcm_hw.rates & SNDRV_PCM_RATE_CONTINUOUS) in print_rates()
953 if (dummy->pcm_hw.rates & SNDRV_PCM_RATE_KNOT) in print_rates()
955 for (i = 0; i < ARRAY_SIZE(rates); i++) in print_rates()
956 if (dummy->pcm_hw.rates & (1 << i)) in print_rates()
957 snd_iprintf(buffer, " %d", rates[i]); in print_rates()
[all …]
/sound/soc/mediatek/mt2701/
Dmt2701-afe-pcm.c615 .rates = SNDRV_PCM_RATE_8000_192000,
631 .rates = SNDRV_PCM_RATE_8000_192000,
648 .rates = SNDRV_PCM_RATE_8000_48000,
664 .rates = SNDRV_PCM_RATE_8000_192000,
681 .rates = (SNDRV_PCM_RATE_8000
696 .rates = (SNDRV_PCM_RATE_8000
710 .rates = SNDRV_PCM_RATE_8000_192000,
720 .rates = SNDRV_PCM_RATE_8000_192000,
736 .rates = SNDRV_PCM_RATE_8000_192000,
745 .rates = SNDRV_PCM_RATE_8000_192000,
[all …]

12345678910>>...18