Searched refs:lrclk_div (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/sound/soc/codecs/
H A Dmax9850.c135 u64 lrclk_div; max9850_hw_params() local
141 /* lrclk_div = 2^22 * rate / iclk with iclk = mclk / sf */ max9850_hw_params()
143 lrclk_div = (1 << 22); max9850_hw_params()
144 lrclk_div *= params_rate(params); max9850_hw_params()
145 lrclk_div *= sf; max9850_hw_params()
146 do_div(lrclk_div, max9850->sysclk); max9850_hw_params()
148 snd_soc_write(codec, MAX9850_LRCLK_MSB, (lrclk_div >> 8) & 0x7f); max9850_hw_params()
149 snd_soc_write(codec, MAX9850_LRCLK_LSB, lrclk_div & 0xff); max9850_hw_params()
H A Dpcm512x.c846 int lrclk_div; pcm512x_set_dividers() local
857 lrclk_div = snd_soc_params_to_frame_size(params); pcm512x_set_dividers()
858 if (lrclk_div == 0) { pcm512x_set_dividers()
865 bclk_div = params->rate_den * 64 / lrclk_div; pcm512x_set_dividers()
938 sample_rate = sck_rate / bclk_div / lrclk_div; pcm512x_set_dividers()
1059 PCM512x_MASTER_CLKDIV_2, lrclk_div - 1); pcm512x_set_dividers()
1097 dev_dbg(codec->dev, "LRCK divider %d\n", lrclk_div); pcm512x_set_dividers()

Completed in 66 milliseconds