/sound/soc/codecs/ |
D | wm8804.c | 319 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 …]
|
D | wm8580.c | 400 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 …]
|
D | wm9713.c | 753 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 …]
|
D | wm8940.c | 519 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 …]
|
D | wm8978.c | 409 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 …]
|
D | wm8974.c | 280 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 …]
|
D | wm8510.c | 271 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()
|
D | wm8983.c | 743 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 …]
|
D | wm8985.c | 840 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 …]
|
D | wm8960.c | 1151 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 …]
|
D | wm8990.c | 893 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 …]
|
D | wm8991.c | 885 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 …]
|
D | wm8753.c | 702 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 …]
|
D | alc5632.c | 682 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()
|
D | alc5623.c | 525 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()
|
D | rt5631.c | 1213 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[] = {
|
D | da7210.c | 211 struct pll_div { struct 221 static const struct pll_div da7210_pll_div[] = { argument
|
D | da9055.c | 239 struct pll_div { struct 249 static const struct pll_div da9055_pll_div[] = { argument
|