Home
last modified time | relevance | path

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

/openbmc/linux/sound/soc/intel/boards/
H 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()
/openbmc/openbmc/poky/meta/recipes-multimedia/alsa/
H A Dalsa-plugins_1.2.7.1.bb14 # The samplerate plugin source code is licensed under GPL-2.0-or-later to be
16 # commercial license for libsamplerate, the samplerate plugin may be used under
35 samplerate \
45 PACKAGECONFIG[samplerate] = "--enable-samplerate,--disable-samplerate,libsamplerate0"
129 FILES:${MLPREFIX}libasound-module-rate-samplerate += "\
130 ${datadir}/alsa/alsa.conf.d/10-samplerate.conf \
131 ${sysconfdir}/alsa/conf.d/10-samplerate.conf \
138 # The rate plugins create some symlinks. For example, the samplerate plugin
155 FILES:${MLPREFIX}libasound-module-rate-samplerate += "${libdir}/alsa-lib/*rate_samplerate_*.so"
158 INSANE_SKIP:${MLPREFIX}libasound-module-rate-samplerate = "dev-so"
/openbmc/linux/sound/soc/rockchip/
H 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()
/openbmc/linux/sound/soc/codecs/
H A Dsigmadsp.c613 unsigned int samplerate) in sigmadsp_get_samplerate_mask() argument
617 if (samplerate == 0) in sigmadsp_get_samplerate_mask()
621 samplerate_index = sigmadsp_rate_to_index(sigmadsp, samplerate); in sigmadsp_get_samplerate_mask()
731 int sigmadsp_setup(struct sigmadsp *sigmadsp, unsigned int samplerate) in sigmadsp_setup() argument
738 if (sigmadsp->current_samplerate == samplerate) in sigmadsp_setup()
741 samplerate_mask = sigmadsp_get_samplerate_mask(sigmadsp, samplerate); in sigmadsp_setup()
758 sigmadsp->current_samplerate = samplerate; in sigmadsp_setup()
H A Dsigmadsp.h61 int sigmadsp_setup(struct sigmadsp *sigmadsp, unsigned int samplerate);
H A Dtas2562.c67 static int tas2562_set_samplerate(struct tas2562_data *tas2562, int samplerate) in tas2562_set_samplerate() argument
72 switch (samplerate) { in tas2562_set_samplerate()
131 __func__, samplerate); in tas2562_set_samplerate()
H A Dtas2780.c240 struct tas2780_priv *tas2780, int samplerate) in tas2780_set_samplerate() argument
246 switch (samplerate) { in tas2780_set_samplerate()
H A 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()
H A Dtas2764.c314 static int tas2764_set_samplerate(struct tas2764_priv *tas2764, int samplerate) in tas2764_set_samplerate() argument
320 switch (samplerate) { in tas2764_set_samplerate()
H 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()
H 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()
/openbmc/linux/drivers/staging/vc04_services/bcm2835-audio/
H A Dbcm2835-vchiq.c270 unsigned int channels, unsigned int samplerate, in bcm2835_audio_set_params() argument
276 .config.samplerate = samplerate, in bcm2835_audio_set_params()
H A Dvc_vchi_audioserv_defs.h36 u32 samplerate; member
H A Dbcm2835.h101 unsigned int channels, unsigned int samplerate,
/openbmc/linux/sound/soc/starfive/
H A Djh7110_tdm.c124 u32 samplerate; member
200 syncdiv = tdm->pcmclk / tdm->samplerate - 1; in jh7110_tdm_syncdiv()
349 tdm->samplerate = params_rate(params); in jh7110_tdm_hw_params()
350 tdm->pcmclk = params_channels(params) * tdm->samplerate * data_width; in jh7110_tdm_hw_params()
/openbmc/openbmc/poky/meta/recipes-multimedia/libsamplerate/
H A Dlibsamplerate0_0.2.2.bb7 … file://src/samplerate.c;beginline=1;endline=7;md5=7a4238289dc36bfb70968ccaa5bd0d4f"
/openbmc/linux/Documentation/sound/cards/
H A Dmixart.rst19 decoding, samplerate conversions and various effects.
75 - on-board effects and samplerate conversions
/openbmc/linux/sound/soc/sunxi/
H A Dsun50i-dmic.c58 unsigned int samplerate; member
157 if (dmic_rate_s[i].samplerate == rate) { in sun50i_dmic_hw_params()
/openbmc/linux/sound/pci/emu10k1/
H A Demuproc.c25 …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
44 …snd_iprintf(buffer, "Sample Rate : %iHz\n", samplerate[(status & SPCS_SAMPLERATEMASK) >>… in snd_emu10k1_proc_spdif_status()
215 static const int samplerate[8] = { 44100, 48000, 96000, 192000, 4, 5, 6, 7 }; in snd_emu10k1_proc_rates_read() local
221 if (tmp & 0x8) snd_iprintf(buffer, "Channel %d: Rate=%d\n", n, samplerate[tmp & 0x7]); in snd_emu10k1_proc_rates_read()
/openbmc/linux/drivers/gpu/drm/vc4/
H A Dvc4_hdmi.c2295 unsigned int samplerate) in vc4_hdmi_audio_set_mai_clock() argument
2307 rational_best_approximation(hsm_clock, samplerate, in vc4_hdmi_audio_set_mai_clock()
2323 static void vc4_hdmi_set_n_cts(struct vc4_hdmi *vc4_hdmi, unsigned int samplerate) in vc4_hdmi_set_n_cts() argument
2332 n = 128 * samplerate / 1000; in vc4_hdmi_set_n_cts()
2334 do_div(tmp, 128 * samplerate); in vc4_hdmi_set_n_cts()
2471 static int sample_rate_to_mai_fmt(int samplerate) in sample_rate_to_mai_fmt() argument
2473 switch (samplerate) { in sample_rate_to_mai_fmt()
/openbmc/linux/sound/pci/rme9652/
H 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()
/openbmc/qemu/audio/
H A Dcoreaudio.m443 "Could not set samplerate %lf\n",