Home
last modified time | relevance | path

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

/openbmc/linux/sound/soc/adi/
H A 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()
/openbmc/linux/sound/soc/amd/vangogh/
H A Dacp5x.h109 u32 bclk_div; member
221 mclkgen.bits.i2stdm_bclk_div_val = rtd->bclk_div; in acp5x_set_i2s_clk()
H A Dacp5x-i2s.c227 rtd->bclk_div = bclk_div_val; in acp5x_i2s_hwparams()
/openbmc/linux/sound/soc/codecs/
H A 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()
H A Dnau8822.c852 unsigned int ctrl_val, bclk_fs, bclk_div; in nau8822_hw_params() local
860 bclk_div = NAU8822_BCLKDIV_8; in nau8822_hw_params()
862 bclk_div = NAU8822_BCLKDIV_4; in nau8822_hw_params()
864 bclk_div = NAU8822_BCLKDIV_2; in nau8822_hw_params()
868 NAU8822_BCLKSEL_MASK, bclk_div); in nau8822_hw_params()
H A 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()
H A 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()
H A 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()
H A 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()
H A Dwm9081.c120 int bclk_div; member
1102 aif3 |= bclk_divs[best].bclk_div; in wm9081_hw_params()
H A Dwm8993.c183 int bclk_div; member
1289 clocking1 |= bclk_divs[best].bclk_div << WM8993_BCLK_DIV_SHIFT; in wm8993_hw_params()
H A Dwm8904.c1268 int bclk_div; member
1394 aif2 |= bclk_divs[best].bclk_div; in wm8904_hw_params()
/openbmc/linux/sound/soc/amd/acp/
H A Damd.h176 u32 bclk_div; member
299 mclkgen.bits.i2stdm_bclk_div_val = adata->bclk_div; in acp_set_i2s_clk()
H A Dacp-i2s.c255 adata->bclk_div = bclk_div_val; in acp_i2s_hwparams()
/openbmc/linux/sound/soc/sunxi/
H A 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()
H A 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()
/openbmc/linux/sound/soc/ti/
H A 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()
1579 if (mcasp->bclk_master && mcasp->bclk_div == 0 && mcasp->sysclk_freq) { in davinci_mcasp_startup()