/Linux-v6.6/sound/soc/adi/ |
D | axi-i2s.c | 92 unsigned int bclk_div, word_size; in axi_i2s_hw_params() local 98 bclk_div = DIV_ROUND_UP(clk_get_rate(i2s->clk_ref), bclk_rate) / 2 - 1; in axi_i2s_hw_params() 101 bclk_div); in axi_i2s_hw_params()
|
/Linux-v6.6/sound/soc/amd/vangogh/ |
D | acp5x.h | 109 u32 bclk_div; member 221 mclkgen.bits.i2stdm_bclk_div_val = rtd->bclk_div; in acp5x_set_i2s_clk()
|
D | acp5x-i2s.c | 227 rtd->bclk_div = bclk_div_val; in acp5x_i2s_hwparams()
|
/Linux-v6.6/sound/soc/codecs/ |
D | nau8810.c | 701 unsigned int ctrl_val, bclk_fs, bclk_div; in nau8810_pcm_hw_params() local 709 bclk_div = NAU8810_BCLKDIV_8; in nau8810_pcm_hw_params() 711 bclk_div = NAU8810_BCLKDIV_4; in nau8810_pcm_hw_params() 713 bclk_div = NAU8810_BCLKDIV_2; in nau8810_pcm_hw_params() 717 NAU8810_BCLKSEL_MASK, bclk_div); in nau8810_pcm_hw_params()
|
D | nau8822.c | 849 unsigned int ctrl_val, bclk_fs, bclk_div; in nau8822_hw_params() local 857 bclk_div = NAU8822_BCLKDIV_8; in nau8822_hw_params() 859 bclk_div = NAU8822_BCLKDIV_4; in nau8822_hw_params() 861 bclk_div = NAU8822_BCLKDIV_2; in nau8822_hw_params() 865 NAU8822_BCLKSEL_MASK, bclk_div); in nau8822_hw_params()
|
D | pcm512x.c | 901 int bclk_div; in pcm512x_set_dividers() local 927 bclk_div = DIV_ROUND_CLOSEST(sck_rate, bclk_rate); in pcm512x_set_dividers() 990 bclk_div = DIV_ROUND_CLOSEST(sck_rate, bclk_rate); in pcm512x_set_dividers() 993 if (bclk_div > 128) { in pcm512x_set_dividers() 999 sample_rate = sck_rate / bclk_div / lrclk_div; in pcm512x_set_dividers() 1113 PCM512x_MASTER_CLKDIV_1, bclk_div - 1); in pcm512x_set_dividers() 1157 dev_dbg(component->dev, "BCK divider %d\n", bclk_div); in pcm512x_set_dividers()
|
D | nau8824.c | 1066 unsigned int val_len = 0, ctrl_val, bclk_fs, bclk_div; in nau8824_hw_params() local 1100 bclk_div = 0x3; in nau8824_hw_params() 1102 bclk_div = 0x2; in nau8824_hw_params() 1104 bclk_div = 0x1; in nau8824_hw_params() 1106 bclk_div = 0; in nau8824_hw_params() 1112 (bclk_div << NAU8824_I2S_LRC_DIV_SFT) | bclk_div); in nau8824_hw_params()
|
D | wm8903.c | 1445 int bclk_div; in wm8903_hw_params() local 1550 bclk_div = 0; in wm8903_hw_params() 1556 bclk_div = i; in wm8903_hw_params() 1564 bclk_divs[bclk_div].ratio / 10, bclk, in wm8903_hw_params() 1565 (clk_sys * 10) / bclk_divs[bclk_div].ratio); in wm8903_hw_params() 1567 aif2 |= bclk_divs[bclk_div].div; in wm8903_hw_params()
|
D | nau8825.c | 1280 unsigned int val_len = 0, ctrl_val, bclk_fs, bclk_div; in nau8825_hw_params() local 1312 bclk_div = 2; in nau8825_hw_params() 1314 bclk_div = 1; in nau8825_hw_params() 1316 bclk_div = 0; in nau8825_hw_params() 1321 ((bclk_div + 1) << NAU8825_I2S_LRC_DIV_SFT) | bclk_div); in nau8825_hw_params()
|
D | wm9081.c | 120 int bclk_div; member 1102 aif3 |= bclk_divs[best].bclk_div; in wm9081_hw_params()
|
D | wm8993.c | 183 int bclk_div; member 1289 clocking1 |= bclk_divs[best].bclk_div << WM8993_BCLK_DIV_SHIFT; in wm8993_hw_params()
|
D | wm8904.c | 1268 int bclk_div; member 1394 aif2 |= bclk_divs[best].bclk_div; in wm8904_hw_params()
|
/Linux-v6.6/sound/soc/amd/acp/ |
D | amd.h | 176 u32 bclk_div; member 299 mclkgen.bits.i2stdm_bclk_div_val = adata->bclk_div; in acp_set_i2s_clk()
|
D | acp-i2s.c | 255 adata->bclk_div = bclk_div_val; in acp_i2s_hwparams()
|
/Linux-v6.6/sound/soc/sunxi/ |
D | sun8i-codec.c | 520 int bclk_div, lrck_div_order, ret, word_size; in sun8i_codec_hw_params() local 575 bclk_div = sun8i_codec_get_bclk_div(sysclk_rate, lrck_div_order, sample_rate); in sun8i_codec_hw_params() 576 if (bclk_div < 0) in sun8i_codec_hw_params() 577 return bclk_div; in sun8i_codec_hw_params() 581 bclk_div << SUN8I_AIF_CLK_CTRL_BCLK_DIV); in sun8i_codec_hw_params()
|
D | sun4i-i2s.c | 343 int bclk_div, mclk_div; in sun4i_i2s_set_clk_rate() local 385 bclk_div = sun4i_i2s_get_bclk_div(i2s, bclk_parent_rate, in sun4i_i2s_set_clk_rate() 387 if (bclk_div < 0) { in sun4i_i2s_set_clk_rate() 388 dev_err(dai->dev, "Unsupported BCLK divider: %d\n", bclk_div); in sun4i_i2s_set_clk_rate() 399 SUN4I_I2S_CLK_DIV_BCLK(bclk_div) | in sun4i_i2s_set_clk_rate()
|
/Linux-v6.6/sound/soc/ti/ |
D | davinci-mcasp.c | 100 u8 bclk_div; member 630 mcasp->bclk_div = div; in __davinci_mcasp_set_clkdiv() 1257 if (mcasp->bclk_master && mcasp->bclk_div == 0 && mcasp->sysclk_freq) { in davinci_mcasp_hw_params() 1577 if (mcasp->bclk_master && mcasp->bclk_div == 0 && mcasp->sysclk_freq) { in davinci_mcasp_startup()
|