Home
last modified time | relevance | path

Searched refs:pll_div (Results 1 – 18 of 18) sorted by relevance

/sound/soc/codecs/
Dwm8804.c319 struct pll_div { struct
344 static int pll_factors(struct pll_div *pll_div, unsigned int target, in pll_factors() argument
359 pll_div->freqmode = post_table[i].freqmode; in pll_factors()
360 pll_div->mclkdiv = post_table[i].mclkdiv; in pll_factors()
372 pll_div->prescale = 0; in pll_factors()
376 pll_div->prescale = 1; in pll_factors()
385 pll_div->n = Ndiv; in pll_factors()
396 pll_div->k = K; in pll_factors()
417 struct pll_div pll_div; in wm8804_set_pll() local
419 ret = pll_factors(&pll_div, freq_out, freq_in, in wm8804_set_pll()
[all …]
Dwm8580.c400 static int pll_factors(struct _pll_div *pll_div, unsigned int target, in pll_factors() argument
415 pll_div->freqmode = post_table[i].freqmode; in pll_factors()
416 pll_div->postscale = post_table[i].postscale; in pll_factors()
432 pll_div->prescale = 1; in pll_factors()
435 pll_div->prescale = 0; in pll_factors()
443 pll_div->n = Ndiv; in pll_factors()
451 pll_div->k = K; in pll_factors()
454 pll_div->n, pll_div->k, pll_div->prescale, pll_div->freqmode, in pll_factors()
455 pll_div->postscale); in pll_factors()
467 struct _pll_div pll_div; in wm8580_set_dai_pll() local
[all …]
Dwm9713.c753 struct _pll_div *pll_div, unsigned int source) in pll_factors() argument
764 pll_div->divsel = 1; in pll_factors()
768 pll_div->divctl = 1; in pll_factors()
770 pll_div->divctl = 0; in pll_factors()
773 pll_div->divsel = 0; in pll_factors()
774 pll_div->divctl = 0; in pll_factors()
781 pll_div->lf = 1; in pll_factors()
784 pll_div->lf = 0; in pll_factors()
792 pll_div->n = Ndiv; in pll_factors()
807 pll_div->k = K; in pll_factors()
[all …]
Dwm8940.c519 static struct pll_ pll_div; variable
534 pll_div.pre_scale = 0; in pll_factors()
539 pll_div.pre_scale = 3; in pll_factors()
544 pll_div.pre_scale = 2; in pll_factors()
547 pll_div.pre_scale = 1; in pll_factors()
554 pll_div.n = Ndiv; in pll_factors()
569 pll_div.k = K; in pll_factors()
594 if (pll_div.k) in wm8940_set_dai_pll()
596 (pll_div.pre_scale << 4) | pll_div.n | (1 << 6)); in wm8940_set_dai_pll()
599 (pll_div.pre_scale << 4) | pll_div.n); in wm8940_set_dai_pll()
[all …]
Dwm8978.c409 struct wm8978_pll_div *pll_div, unsigned int target, unsigned int source) in pll_factors() argument
417 pll_div->div2 = 1; in pll_factors()
420 pll_div->div2 = 0; in pll_factors()
428 pll_div->n = n_div; in pll_factors()
436 pll_div->k = k; in pll_factors()
474 struct wm8978_pll_div pll_div; in wm8978_configure_pll() local
536 pll_factors(component, &pll_div, f2, wm8978->f_mclk); in wm8978_configure_pll()
539 __func__, pll_div.n, pll_div.k, pll_div.div2); in wm8978_configure_pll()
544 snd_soc_component_write(component, WM8978_PLL_N, (pll_div.div2 << 4) | pll_div.n); in wm8978_configure_pll()
545 snd_soc_component_write(component, WM8978_PLL_K1, pll_div.k >> 18); in wm8978_configure_pll()
[all …]
Dwm8974.c280 static void pll_factors(struct pll_ *pll_div, in pll_factors() argument
292 pll_div->pre_div = 1; in pll_factors()
295 pll_div->pre_div = 0; in pll_factors()
302 pll_div->n = Ndiv; in pll_factors()
317 pll_div->k = K; in pll_factors()
324 struct pll_ pll_div; in wm8974_set_dai_pll() local
338 pll_factors(&pll_div, freq_out, freq_in); in wm8974_set_dai_pll()
340 snd_soc_component_write(component, WM8974_PLLN, (pll_div.pre_div << 4) | pll_div.n); in wm8974_set_dai_pll()
341 snd_soc_component_write(component, WM8974_PLLK1, pll_div.k >> 18); in wm8974_set_dai_pll()
342 snd_soc_component_write(component, WM8974_PLLK2, (pll_div.k >> 9) & 0x1ff); in wm8974_set_dai_pll()
[all …]
Dwm8510.c271 static struct pll_ pll_div; variable
285 pll_div.pre_div = 1; in pll_factors()
288 pll_div.pre_div = 0; in pll_factors()
295 pll_div.n = Ndiv; in pll_factors()
310 pll_div.k = K; in pll_factors()
332 snd_soc_component_write(component, WM8510_PLLN, (pll_div.pre_div << 4) | pll_div.n); in wm8510_set_dai_pll()
333 snd_soc_component_write(component, WM8510_PLLK1, pll_div.k >> 18); in wm8510_set_dai_pll()
334 snd_soc_component_write(component, WM8510_PLLK2, (pll_div.k >> 9) & 0x1ff); in wm8510_set_dai_pll()
335 snd_soc_component_write(component, WM8510_PLLK3, pll_div.k & 0x1ff); in wm8510_set_dai_pll()
Dwm8983.c743 struct pll_div { struct
750 static int pll_factors(struct pll_div *pll_div, unsigned int target, in pll_factors() argument
756 pll_div->div2 = 0; in pll_factors()
760 pll_div->div2 = 1; in pll_factors()
769 pll_div->n = Ndiv; in pll_factors()
780 pll_div->k = K; in pll_factors()
790 struct pll_div pll_div; in wm8983_set_pll() local
799 ret = pll_factors(&pll_div, freq_out * 4 * 2, freq_in); in wm8983_set_pll()
809 (pll_div.div2 << WM8983_PLL_PRESCALE_SHIFT) in wm8983_set_pll()
810 | pll_div.n); in wm8983_set_pll()
[all …]
Dwm8985.c840 struct pll_div { struct
847 static int pll_factors(struct pll_div *pll_div, unsigned int target, in pll_factors() argument
853 pll_div->div2 = 0; in pll_factors()
857 pll_div->div2 = 1; in pll_factors()
866 pll_div->n = Ndiv; in pll_factors()
877 pll_div->k = K; in pll_factors()
888 struct pll_div pll_div; in wm8985_set_pll() local
896 ret = pll_factors(&pll_div, freq_out * 4 * 2, freq_in); in wm8985_set_pll()
902 (pll_div.div2 << WM8985_PLL_PRESCALE_SHIFT) in wm8985_set_pll()
903 | pll_div.n); in wm8985_set_pll()
[all …]
Dwm8960.c1151 struct _pll_div *pll_div) in pll_factors() argument
1164 pll_div->pre_div = 1; in pll_factors()
1167 pll_div->pre_div = 0; in pll_factors()
1174 pll_div->n = Ndiv; in pll_factors()
1189 pll_div->k = K; in pll_factors()
1192 pll_div->n, pll_div->k, pll_div->pre_div); in pll_factors()
1201 static struct _pll_div pll_div; in wm8960_set_pll() local
1205 ret = pll_factors(freq_in, freq_out, &pll_div); in wm8960_set_pll()
1219 reg |= pll_div.pre_div << 4; in wm8960_set_pll()
1220 reg |= pll_div.n; in wm8960_set_pll()
[all …]
Dwm8990.c893 static void pll_factors(struct _pll_div *pll_div, unsigned int target, in pll_factors() argument
903 pll_div->div2 = 1; in pll_factors()
906 pll_div->div2 = 0; in pll_factors()
912 pll_div->n = Ndiv; in pll_factors()
927 pll_div->k = K; in pll_factors()
934 struct _pll_div pll_div; in wm8990_set_dai_pll() local
937 pll_factors(&pll_div, freq_out * 4, freq_in); in wm8990_set_dai_pll()
948 snd_soc_component_write(component, WM8990_PLL1, pll_div.n | WM8990_SDM | in wm8990_set_dai_pll()
949 (pll_div.div2?WM8990_PRESCALE:0)); in wm8990_set_dai_pll()
950 snd_soc_component_write(component, WM8990_PLL2, (u8)(pll_div.k>>8)); in wm8990_set_dai_pll()
[all …]
Dwm8991.c885 static void pll_factors(struct _pll_div *pll_div, unsigned int target, in pll_factors() argument
895 pll_div->div2 = 1; in pll_factors()
898 pll_div->div2 = 0; in pll_factors()
904 pll_div->n = Ndiv; in pll_factors()
919 pll_div->k = K; in pll_factors()
927 struct _pll_div pll_div; in wm8991_set_dai_pll() local
930 pll_factors(&pll_div, freq_out * 4, freq_in); in wm8991_set_dai_pll()
942 snd_soc_component_write(component, WM8991_PLL1, pll_div.n | WM8991_SDM | in wm8991_set_dai_pll()
943 (pll_div.div2 ? WM8991_PRESCALE : 0)); in wm8991_set_dai_pll()
944 snd_soc_component_write(component, WM8991_PLL2, (u8)(pll_div.k>>8)); in wm8991_set_dai_pll()
[all …]
Dwm8753.c702 static void pll_factors(struct _pll_div *pll_div, unsigned int target, in pll_factors() argument
711 pll_div->div2 = 1; in pll_factors()
714 pll_div->div2 = 0; in pll_factors()
720 pll_div->n = Ndiv; in pll_factors()
735 pll_div->k = K; in pll_factors()
765 struct _pll_div pll_div; in wm8753_set_dai_pll() local
767 pll_factors(&pll_div, freq_out * 8, freq_in); in wm8753_set_dai_pll()
771 value = (pll_div.n << 5) + ((pll_div.k & 0x3c0000) >> 18); in wm8753_set_dai_pll()
775 value = (pll_div.k & 0x03fe00) >> 9; in wm8753_set_dai_pll()
779 value = pll_div.k & 0x0001ff; in wm8753_set_dai_pll()
[all …]
Dalc5632.c682 int gbl_clk = 0, pll_div = 0; in alc5632_set_dai_pll() local
710 pll_div = codec_master_pll_div[i].regvalue; in alc5632_set_dai_pll()
721 pll_div = codec_slave_pll_div[i].regvalue; in alc5632_set_dai_pll()
732 pll_div = codec_slave_pll_div[i].regvalue; in alc5632_set_dai_pll()
741 if (!pll_div) in alc5632_set_dai_pll()
747 snd_soc_component_write(component, ALC5632_PLL1_CTRL, pll_div); in alc5632_set_dai_pll()
Dalc5623.c525 int gbl_clk = 0, pll_div = 0; in alc5623_set_dai_pll() local
550 pll_div = codec_master_pll_div[i].regvalue; in alc5623_set_dai_pll()
561 pll_div = codec_slave_pll_div[i].regvalue; in alc5623_set_dai_pll()
570 if (!pll_div) in alc5623_set_dai_pll()
574 snd_soc_component_write(component, ALC5623_PLL_CTRL, pll_div); in alc5623_set_dai_pll()
Drt5631.c1213 struct pll_div { struct
1219 static const struct pll_div codec_master_pll_div[] = { argument
1256 static const struct pll_div codec_slave_pll_div[] = {
Dda7210.c211 struct pll_div { struct
221 static const struct pll_div da7210_pll_div[] = { argument
Dda9055.c239 struct pll_div { struct
249 static const struct pll_div da9055_pll_div[] = { argument