Home
last modified time | relevance | path

Searched refs:lrclk_div (Results 1 – 6 of 6) sorted by relevance

/linux-6.12.1/sound/soc/codecs/
Dmax9850.c117 u64 lrclk_div; in max9850_hw_params() local
125 lrclk_div = (1 << 22); in max9850_hw_params()
126 lrclk_div *= params_rate(params); in max9850_hw_params()
127 lrclk_div *= sf; in max9850_hw_params()
128 do_div(lrclk_div, max9850->sysclk); in max9850_hw_params()
130 snd_soc_component_write(component, MAX9850_LRCLK_MSB, (lrclk_div >> 8) & 0x7f); in max9850_hw_params()
131 snd_soc_component_write(component, MAX9850_LRCLK_LSB, lrclk_div & 0xff); in max9850_hw_params()
Dpcm512x.c903 int lrclk_div; in pcm512x_set_dividers() local
915 lrclk_div = pcm512x->bclk_ratio; in pcm512x_set_dividers()
917 lrclk_div = snd_soc_params_to_frame_size(params); in pcm512x_set_dividers()
919 if (lrclk_div == 0) { in pcm512x_set_dividers()
927 bclk_rate = params_rate(params) * lrclk_div; in pcm512x_set_dividers()
1000 sample_rate = sck_rate / bclk_div / lrclk_div; in pcm512x_set_dividers()
1121 PCM512x_MASTER_CLKDIV_2, lrclk_div - 1); in pcm512x_set_dividers()
1159 dev_dbg(component->dev, "LRCK divider %d\n", lrclk_div); in pcm512x_set_dividers()
/linux-6.12.1/sound/soc/amd/vangogh/
Dacp5x.h108 u32 lrclk_div; member
222 mclkgen.bits.i2stdm_lrclk_div_val = rtd->lrclk_div; in acp5x_set_i2s_clk()
Dacp5x-i2s.c226 rtd->lrclk_div = lrclk_div_val; in acp5x_i2s_hwparams()
/linux-6.12.1/sound/soc/amd/acp/
Dacp-i2s.c65 val |= FIELD_PREP(ACP63_LRCLK_DIV_FIELD, adata->lrclk_div); in acp_set_i2s_clk()
69 val |= FIELD_PREP(LRCLK_DIV_FIELD, adata->lrclk_div); in acp_set_i2s_clk()
379 adata->lrclk_div = lrclk_div_val; in acp_i2s_hwparams()
Damd.h199 u32 lrclk_div; member