/sound/soc/codecs/ |
D | ml26124.c | 308 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()
|
D | cs42l73.c | 37 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 …]
|
D | ssm2602.c | 212 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()
|
D | wm8711.c | 166 u16 srate = (coeff_div[i].sr << 2) | in wm8711_hw_params() local 169 snd_soc_write(codec, WM8711_SRATE, srate); in wm8711_hw_params()
|
D | wm8753.c | 932 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()
|
D | wm8988.c | 674 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()
|
D | wm8955.c | 250 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()
|
D | wm8971.c | 516 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()
|
D | wm8750.c | 585 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()
|
D | wm8731.c | 344 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/ |
D | tegra_wm8753.c | 60 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()
|
D | trimslice.c | 55 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()
|
D | tegra_wm8903.c | 65 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()
|
D | tegra_alc5632.c | 46 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()
|
D | tegra_rt5640.c | 57 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()
|
D | tegra_max98090.c | 55 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()
|
D | tegra20_i2s.c | 136 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()
|
D | tegra_rt5677.c | 59 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()
|
D | tegra30_i2s.c | 141 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()
|
D | tegra_asoc_utils.c | 32 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()
|
D | tegra_asoc_utils.h | 46 int tegra_asoc_utils_set_rate(struct tegra_asoc_utils_data *data, int srate,
|
/sound/ppc/ |
D | beep.c | 106 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/ |
D | rockchip_spdif.c | 93 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/ |
D | xtfpga-i2s.c | 287 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/ |
D | quirks.c | 778 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()
|