Home
last modified time | relevance | path

Searched refs:bclk_div (Results 1 – 17 of 17) sorted by relevance

/Linux-v6.6/sound/soc/adi/
Daxi-i2s.c92 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/
Dacp5x.h109 u32 bclk_div; member
221 mclkgen.bits.i2stdm_bclk_div_val = rtd->bclk_div; in acp5x_set_i2s_clk()
Dacp5x-i2s.c227 rtd->bclk_div = bclk_div_val; in acp5x_i2s_hwparams()
/Linux-v6.6/sound/soc/codecs/
Dnau8810.c701 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()
Dnau8822.c849 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()
Dpcm512x.c901 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()
Dnau8824.c1066 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()
Dwm8903.c1445 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()
Dnau8825.c1280 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()
Dwm9081.c120 int bclk_div; member
1102 aif3 |= bclk_divs[best].bclk_div; in wm9081_hw_params()
Dwm8993.c183 int bclk_div; member
1289 clocking1 |= bclk_divs[best].bclk_div << WM8993_BCLK_DIV_SHIFT; in wm8993_hw_params()
Dwm8904.c1268 int bclk_div; member
1394 aif2 |= bclk_divs[best].bclk_div; in wm8904_hw_params()
/Linux-v6.6/sound/soc/amd/acp/
Damd.h176 u32 bclk_div; member
299 mclkgen.bits.i2stdm_bclk_div_val = adata->bclk_div; in acp_set_i2s_clk()
Dacp-i2s.c255 adata->bclk_div = bclk_div_val; in acp_i2s_hwparams()
/Linux-v6.6/sound/soc/sunxi/
Dsun8i-codec.c520 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()
Dsun4i-i2s.c343 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/
Ddavinci-mcasp.c100 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()