Home
last modified time | relevance | path

Searched refs:srate (Results 1 – 25 of 29) sorted by relevance

12

/sound/soc/codecs/
Dml26124.c308 int srate; in get_srate() local
312 srate = 3; in get_srate()
315 srate = 6; in get_srate()
318 srate = 8; in get_srate()
323 return srate; in get_srate()
344 int srate; in ml26124_hw_params() local
374 srate = get_srate(params_rate(hw_params)); in ml26124_hw_params()
375 if (srate < 0) in ml26124_hw_params()
376 return srate; in ml26124_hw_params()
378 snd_soc_update_bits(codec, ML26124_SMPLING_RATE, 0xf, srate); in ml26124_hw_params()
Dcs42l73.c37 u32 srate; member
793 u32 srate; member
872 static int cs42l73_get_mclk_coeff(int mclk, int srate) in cs42l73_get_mclk_coeff() argument
878 cs42l73_mclk_coeffs[i].srate == srate) in cs42l73_get_mclk_coeff()
1032 static void cs42l73_update_asrc(struct snd_soc_codec *codec, int id, int srate) in cs42l73_update_asrc() argument
1036 if (srate > 0) in cs42l73_update_asrc()
1037 spfs = cs42l73_get_xspfs_coeff(srate); in cs42l73_update_asrc()
1062 int srate = params_rate(params); in cs42l73_pcm_hw_params() local
1068 cs42l73_get_mclk_coeff(priv->mclk, srate); in cs42l73_pcm_hw_params()
1075 id, priv->mclk, srate, in cs42l73_pcm_hw_params()
[all …]
Dssm2602.c212 u8 srate; member
274 return ssm2602_coeff_table[i].srate; in ssm2602_get_coeff()
285 int srate = ssm2602_get_coeff(ssm2602->sysclk, params_rate(params)); in ssm2602_hw_params() local
288 if (srate < 0) in ssm2602_hw_params()
289 return srate; in ssm2602_hw_params()
291 regmap_write(ssm2602->regmap, SSM2602_SRATE, srate); in ssm2602_hw_params()
Dwm8711.c166 u16 srate = (coeff_div[i].sr << 2) | in wm8711_hw_params() local
169 snd_soc_write(codec, WM8711_SRATE, srate); in wm8711_hw_params()
Dwm8753.c932 u16 srate = snd_soc_read(codec, WM8753_SRATE1) & 0x017f; in wm8753_pcm_hw_params() local
951 srate |= 0x80; in wm8753_pcm_hw_params()
952 snd_soc_write(codec, WM8753_SRATE1, srate); in wm8753_pcm_hw_params()
1160 u16 srate = snd_soc_read(codec, WM8753_SRATE1) & 0x01c0; in wm8753_i2s_hw_params() local
1170 snd_soc_write(codec, WM8753_SRATE1, srate | (coeff_div[coeff].sr << 1) | in wm8753_i2s_hw_params()
Dwm8988.c674 u16 srate = snd_soc_read(codec, WM8988_SRATE) & 0x180; in wm8988_pcm_hw_params() local
680 srate |= 0x40; in wm8988_pcm_hw_params()
707 snd_soc_write(codec, WM8988_SRATE, srate | in wm8988_pcm_hw_params()
Dwm8955.c250 int srate = 0; in wm8955_configure_clocking() local
323 srate = clock_cfgs[sr].usb | (clock_cfgs[sr].sr << WM8955_SR_SHIFT); in wm8955_configure_clocking()
326 WM8955_USB | WM8955_SR_MASK, srate); in wm8955_configure_clocking()
Dwm8971.c516 u16 srate = snd_soc_read(codec, WM8971_SRATE) & 0x1c0; in wm8971_pcm_hw_params() local
537 snd_soc_write(codec, WM8971_SRATE, srate | in wm8971_pcm_hw_params()
Dwm8750.c585 u16 srate = snd_soc_read(codec, WM8750_SRATE) & 0x1c0; in wm8750_pcm_hw_params() local
606 snd_soc_write(codec, WM8750_SRATE, srate | in wm8750_pcm_hw_params()
Dwm8731.c344 u16 srate = (coeff_div[i].sr << 2) | in wm8731_hw_params() local
349 snd_soc_write(codec, WM8731_SRATE, srate); in wm8731_hw_params()
/sound/soc/tegra/
Dtegra_wm8753.c60 int srate, mclk; in tegra_wm8753_hw_params() local
63 srate = params_rate(params); in tegra_wm8753_hw_params()
64 switch (srate) { in tegra_wm8753_hw_params()
76 err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); in tegra_wm8753_hw_params()
Dtrimslice.c55 int srate, mclk; in trimslice_asoc_hw_params() local
58 srate = params_rate(params); in trimslice_asoc_hw_params()
59 mclk = 128 * srate; in trimslice_asoc_hw_params()
61 err = tegra_asoc_utils_set_rate(&trimslice->util_data, srate, mclk); in trimslice_asoc_hw_params()
Dtegra_wm8903.c65 int srate, mclk; in tegra_wm8903_hw_params() local
68 srate = params_rate(params); in tegra_wm8903_hw_params()
69 switch (srate) { in tegra_wm8903_hw_params()
73 mclk = 128 * srate; in tegra_wm8903_hw_params()
76 mclk = 256 * srate; in tegra_wm8903_hw_params()
83 err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); in tegra_wm8903_hw_params()
Dtegra_alc5632.c46 int srate, mclk; in tegra_alc5632_asoc_hw_params() local
49 srate = params_rate(params); in tegra_alc5632_asoc_hw_params()
50 mclk = 512 * srate; in tegra_alc5632_asoc_hw_params()
52 err = tegra_asoc_utils_set_rate(&alc5632->util_data, srate, mclk); in tegra_alc5632_asoc_hw_params()
Dtegra_rt5640.c57 int srate, mclk; in tegra_rt5640_asoc_hw_params() local
60 srate = params_rate(params); in tegra_rt5640_asoc_hw_params()
61 mclk = 256 * srate; in tegra_rt5640_asoc_hw_params()
63 err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); in tegra_rt5640_asoc_hw_params()
Dtegra_max98090.c55 int srate, mclk; in tegra_max98090_asoc_hw_params() local
58 srate = params_rate(params); in tegra_max98090_asoc_hw_params()
59 switch (srate) { in tegra_max98090_asoc_hw_params()
80 err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); in tegra_max98090_asoc_hw_params()
Dtegra20_i2s.c136 int ret, sample_size, srate, i2sclock, bitcnt; in tegra20_i2s_hw_params() local
161 srate = params_rate(params); in tegra20_i2s_hw_params()
164 i2sclock = srate * params_channels(params) * sample_size * 2; in tegra20_i2s_hw_params()
172 bitcnt = (i2sclock / (2 * srate)) - 1; in tegra20_i2s_hw_params()
177 if (i2sclock % (2 * srate)) in tegra20_i2s_hw_params()
Dtegra_rt5677.c59 int srate, mclk, err; in tegra_rt5677_asoc_hw_params() local
61 srate = params_rate(params); in tegra_rt5677_asoc_hw_params()
62 mclk = 256 * srate; in tegra_rt5677_asoc_hw_params()
64 err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); in tegra_rt5677_asoc_hw_params()
Dtegra30_i2s.c141 int ret, sample_size, srate, i2sclock, bitcnt; in tegra30_i2s_hw_params() local
159 srate = params_rate(params); in tegra30_i2s_hw_params()
162 i2sclock = srate * params_channels(params) * sample_size * 2; in tegra30_i2s_hw_params()
164 bitcnt = (i2sclock / (2 * srate)) - 1; in tegra30_i2s_hw_params()
176 if (i2sclock % (2 * srate)) in tegra30_i2s_hw_params()
Dtegra_asoc_utils.c32 int tegra_asoc_utils_set_rate(struct tegra_asoc_utils_data *data, int srate, in tegra_asoc_utils_set_rate() argument
39 switch (srate) { in tegra_asoc_utils_set_rate()
Dtegra_asoc_utils.h46 int tegra_asoc_utils_set_rate(struct tegra_asoc_utils_data *data, int srate,
/sound/ppc/
Dbeep.c106 int srate; in snd_pmac_beep_event() local
133 srate = chip->freq_table[beep_speed]; in snd_pmac_beep_event()
135 if (hz <= srate / BEEP_BUFLEN || hz > srate / 2) in snd_pmac_beep_event()
149 period = srate * 256 / hz; /* fixed point */ in snd_pmac_beep_event()
/sound/soc/rockchip/
Drockchip_spdif.c93 int srate, mclk; in rk_spdif_hw_params() local
96 srate = params_rate(params); in rk_spdif_hw_params()
97 switch (srate) { in rk_spdif_hw_params()
135 val |= SPDIF_CFGR_CLK_DIV(mclk/(srate * 256)); in rk_spdif_hw_params()
/sound/soc/xtensa/
Dxtfpga-i2s.c287 unsigned srate = params_rate(params); in xtfpga_i2s_hw_params() local
298 freq = 256 * srate; in xtfpga_i2s_hw_params()
309 ratio = (freq - (srate * sample_size * 8)) / in xtfpga_i2s_hw_params()
310 (srate * sample_size * 4); in xtfpga_i2s_hw_params()
333 __func__, srate, channels, sample_size, period_size); in xtfpga_i2s_hw_params()
/sound/usb/
Dquirks.c778 u8 srate[3]; in mbox2_setup_48_24_magic() local
782 srate[0] = 0x80; in mbox2_setup_48_24_magic()
783 srate[1] = 0xbb; in mbox2_setup_48_24_magic()
784 srate[2] = 0x00; in mbox2_setup_48_24_magic()
790 0x81, 0xa2, 0x0100, 0x0085, &srate, 0x0003); in mbox2_setup_48_24_magic()
792 0x81, 0xa2, 0x0100, 0x0086, &srate, 0x0003); in mbox2_setup_48_24_magic()
794 0x81, 0xa2, 0x0100, 0x0003, &srate, 0x0003); in mbox2_setup_48_24_magic()

12