Home
last modified time | relevance | path

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

/sound/soc/intel/boards/
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()
/sound/soc/codecs/
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()
Dsigmadsp.h61 int sigmadsp_setup(struct sigmadsp *sigmadsp, unsigned int samplerate);
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()
Dtas2764.c262 static int tas2764_set_samplerate(struct tas2764_priv *tas2764, int samplerate) in tas2764_set_samplerate() argument
268 switch (samplerate) { in tas2764_set_samplerate()
Dtas2770.c245 static int tas2770_set_samplerate(struct tas2770_priv *tas2770, int samplerate) in tas2770_set_samplerate() argument
251 switch (samplerate) { in tas2770_set_samplerate()
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()
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()
/sound/soc/rockchip/
Drockchip_pdm.c151 unsigned int clk_rate, clk_div, samplerate; in rockchip_pdm_hw_params() local
160 samplerate = params_rate(params); in rockchip_pdm_hw_params()
161 clk_rate = get_pdm_clk(pdm, samplerate, &clk_src, &clk_out); in rockchip_pdm_hw_params()
197 val = get_pdm_ds_ratio(samplerate); in rockchip_pdm_hw_params()
/sound/pci/emu10k1/
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()
/sound/pci/rme9652/
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()