Home
last modified time | relevance | path

Searched refs:samplerate (Results 1 – 16 of 16) sorted by relevance

/linux/sound/soc/intel/boards/
A Dsof_wm8804.c57 int samplerate; in sof_wm8804_hw_params() local
64 samplerate = params_rate(params); in sof_wm8804_hw_params()
65 if (samplerate == ctx->sample_rate) in sof_wm8804_hw_params()
70 if (samplerate <= 96000) { in sof_wm8804_hw_params()
71 mclk_freq = samplerate * 256; in sof_wm8804_hw_params()
74 mclk_freq = samplerate * 128; in sof_wm8804_hw_params()
78 switch (samplerate) { in sof_wm8804_hw_params()
102 "unsupported samplerate %d\n", samplerate); in sof_wm8804_hw_params()
106 if (samplerate % 16000) in sof_wm8804_hw_params()
145 ctx->sample_rate = samplerate; in sof_wm8804_hw_params()
/linux/sound/soc/rockchip/
A Drockchip_pdm.c146 static unsigned int samplerate_to_bit(unsigned int samplerate) in samplerate_to_bit() argument
148 switch (samplerate) { in samplerate_to_bit()
202 unsigned int clk_rate, clk_div, samplerate; in rockchip_pdm_hw_params() local
211 samplerate = params_rate(params); in rockchip_pdm_hw_params()
212 clk_rate = get_pdm_clk(pdm, samplerate, &clk_src, &clk_out); in rockchip_pdm_hw_params()
253 val = samplerate_to_bit(samplerate); in rockchip_pdm_hw_params()
257 val = get_pdm_ds_ratio(samplerate); in rockchip_pdm_hw_params()
/linux/sound/soc/codecs/
A Dsigmadsp.c615 unsigned int samplerate) in sigmadsp_get_samplerate_mask() argument
619 if (samplerate == 0) in sigmadsp_get_samplerate_mask()
623 samplerate_index = sigmadsp_rate_to_index(sigmadsp, samplerate); in sigmadsp_get_samplerate_mask()
750 int sigmadsp_setup(struct sigmadsp *sigmadsp, unsigned int samplerate) in sigmadsp_setup() argument
757 if (sigmadsp->current_samplerate == samplerate) in sigmadsp_setup()
760 samplerate_mask = sigmadsp_get_samplerate_mask(sigmadsp, samplerate); in sigmadsp_setup()
777 sigmadsp->current_samplerate = samplerate; in sigmadsp_setup()
A Dsigmadsp.h61 int sigmadsp_setup(struct sigmadsp *sigmadsp, unsigned int samplerate);
A Dtas2562.c99 static int tas2562_set_samplerate(struct tas2562_data *tas2562, int samplerate) in tas2562_set_samplerate() argument
104 switch (samplerate) { in tas2562_set_samplerate()
163 __func__, samplerate); in tas2562_set_samplerate()
A Dtas2764.c276 static int tas2764_set_samplerate(struct tas2764_priv *tas2764, int samplerate) in tas2764_set_samplerate() argument
282 switch (samplerate) { in tas2764_set_samplerate()
A Dtas2770.c271 static int tas2770_set_samplerate(struct tas2770_priv *tas2770, int samplerate) in tas2770_set_samplerate() argument
277 switch (samplerate) { in tas2770_set_samplerate()
A Dtscs42xx.c34 int samplerate; member
196 freq_out = sample_rate_to_pll_freq_out(tscs42xx->samplerate); in power_up_audio_plls()
933 tscs42xx->samplerate = rate; in setup_sample_rate()
A Dcpcap.c1045 int samplerate) in cpcap_set_samprate() argument
1070 switch (samplerate) { in cpcap_set_samprate()
1099 dev_err(component->dev, "unsupported samplerate %d", samplerate); in cpcap_set_samprate()
/linux/drivers/staging/vc04_services/bcm2835-audio/
A Dbcm2835-vchiq.c263 unsigned int channels, unsigned int samplerate, in bcm2835_audio_set_params() argument
269 .config.samplerate = samplerate, in bcm2835_audio_set_params()
A Dvc_vchi_audioserv_defs.h36 u32 samplerate; member
A Dbcm2835.h100 unsigned int channels, unsigned int samplerate,
/linux/sound/pci/emu10k1/
A Demuproc.c30 …static const int samplerate[16] = { 44100, 1, 48000, 32000, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, … in snd_emu10k1_proc_spdif_status() local
49 …snd_iprintf(buffer, "Sample Rate : %iHz\n", samplerate[(status & SPCS_SAMPLERATEMASK) >>… in snd_emu10k1_proc_spdif_status()
265 static const int samplerate[8] = { 44100, 48000, 96000, 192000, 4, 5, 6, 7 }; in snd_emu10k1_proc_rates_read() local
271 if (tmp & 0x8) snd_iprintf(buffer, "Channel %d: Rate=%d\n", n, samplerate[tmp & 0x7]); in snd_emu10k1_proc_rates_read()
/linux/Documentation/sound/cards/
A Dmixart.rst19 decoding, samplerate conversions and various effects.
75 - on-board effects and samplerate conversions
/linux/drivers/gpu/drm/vc4/
A Dvc4_hdmi.c1180 unsigned int samplerate) in vc4_hdmi_audio_set_mai_clock() argument
1185 rational_best_approximation(hsm_clock, samplerate, in vc4_hdmi_audio_set_mai_clock()
1197 static void vc4_hdmi_set_n_cts(struct vc4_hdmi *vc4_hdmi, unsigned int samplerate) in vc4_hdmi_set_n_cts() argument
1205 n = 128 * samplerate / 1000; in vc4_hdmi_set_n_cts()
1207 do_div(tmp, 128 * samplerate); in vc4_hdmi_set_n_cts()
1290 static int sample_rate_to_mai_fmt(int samplerate) in sample_rate_to_mai_fmt() argument
1292 switch (samplerate) { in sample_rate_to_mai_fmt()
/linux/sound/pci/rme9652/
A Dhdspm.c976 int samplerate; /* 0=44.1, 1=48, 2= freq from app */ member
4152 switch (hdspm->tco->samplerate) { in hdspm_tco_write()
4216 ucontrol->value.enumerated.item[0] = hdspm->tco->samplerate; in snd_hdspm_get_tco_sample_rate()
4226 if (hdspm->tco->samplerate != ucontrol->value.enumerated.item[0]) { in snd_hdspm_put_tco_sample_rate()
4227 hdspm->tco->samplerate = ucontrol->value.enumerated.item[0]; in snd_hdspm_put_tco_sample_rate()

Completed in 48 milliseconds