/linux-2.6.39/sound/soc/codecs/ |
D | wm8580.c | 340 static int pll_factors(struct _pll_div *pll_div, unsigned int target, in pll_factors() argument 355 pll_div->freqmode = post_table[i].freqmode; in pll_factors() 356 pll_div->postscale = post_table[i].postscale; in pll_factors() 372 pll_div->prescale = 1; in pll_factors() 375 pll_div->prescale = 0; in pll_factors() 383 pll_div->n = Ndiv; in pll_factors() 391 pll_div->k = K; in pll_factors() 394 pll_div->n, pll_div->k, pll_div->prescale, pll_div->freqmode, in pll_factors() 395 pll_div->postscale); in pll_factors() 407 struct _pll_div pll_div; in wm8580_set_dai_pll() local [all …]
|
D | wm8804.c | 307 struct pll_div { struct 332 static int pll_factors(struct pll_div *pll_div, unsigned int target, in pll_factors() argument 346 pll_div->freqmode = post_table[i].freqmode; in pll_factors() 347 pll_div->mclkdiv = post_table[i].mclkdiv; in pll_factors() 359 pll_div->prescale = 0; in pll_factors() 363 pll_div->prescale = 1; in pll_factors() 372 pll_div->n = Ndiv; in pll_factors() 383 pll_div->k = K; in pll_factors() 401 struct pll_div pll_div; in wm8804_set_pll() local 403 ret = pll_factors(&pll_div, freq_out, freq_in); in wm8804_set_pll() [all …]
|
D | wm9713.c | 704 static void pll_factors(struct _pll_div *pll_div, unsigned int source) in pll_factors() argument 715 pll_div->divsel = 1; in pll_factors() 719 pll_div->divctl = 1; in pll_factors() 721 pll_div->divctl = 0; in pll_factors() 724 pll_div->divsel = 0; in pll_factors() 725 pll_div->divctl = 0; in pll_factors() 732 pll_div->lf = 1; in pll_factors() 735 pll_div->lf = 0; in pll_factors() 743 pll_div->n = Ndiv; in pll_factors() 758 pll_div->k = K; in pll_factors() [all …]
|
D | wm8940.c | 484 static struct pll_ pll_div; variable 499 pll_div.pre_scale = 0; in pll_factors() 504 pll_div.pre_scale = 3; in pll_factors() 509 pll_div.pre_scale = 2; in pll_factors() 512 pll_div.pre_scale = 1; in pll_factors() 519 pll_div.n = Ndiv; in pll_factors() 534 pll_div.k = K; in pll_factors() 559 if (pll_div.k) in wm8940_set_dai_pll() 561 (pll_div.pre_scale << 4) | pll_div.n | (1 << 6)); in wm8940_set_dai_pll() 564 (pll_div.pre_scale << 4) | pll_div.n); in wm8940_set_dai_pll() [all …]
|
D | wm8974.c | 294 static void pll_factors(struct pll_ *pll_div, in pll_factors() argument 306 pll_div->pre_div = 1; in pll_factors() 309 pll_div->pre_div = 0; in pll_factors() 316 pll_div->n = Ndiv; in pll_factors() 331 pll_div->k = K; in pll_factors() 338 struct pll_ pll_div; in wm8974_set_dai_pll() local 352 pll_factors(&pll_div, freq_out, freq_in); in wm8974_set_dai_pll() 354 snd_soc_write(codec, WM8974_PLLN, (pll_div.pre_div << 4) | pll_div.n); in wm8974_set_dai_pll() 355 snd_soc_write(codec, WM8974_PLLK1, pll_div.k >> 18); in wm8974_set_dai_pll() 356 snd_soc_write(codec, WM8974_PLLK2, (pll_div.k >> 9) & 0x1ff); in wm8974_set_dai_pll() [all …]
|
D | wm8978.c | 379 struct wm8978_pll_div *pll_div, unsigned int target, unsigned int source) in pll_factors() argument 387 pll_div->div2 = 1; in pll_factors() 390 pll_div->div2 = 0; in pll_factors() 398 pll_div->n = n_div; in pll_factors() 406 pll_div->k = k; in pll_factors() 444 struct wm8978_pll_div pll_div; in wm8978_configure_pll() local 509 pll_factors(codec, &pll_div, f2, wm8978->f_mclk); in wm8978_configure_pll() 512 __func__, pll_div.n, pll_div.k, pll_div.div2); in wm8978_configure_pll() 517 snd_soc_write(codec, WM8978_PLL_N, (pll_div.div2 << 4) | pll_div.n); in wm8978_configure_pll() 518 snd_soc_write(codec, WM8978_PLL_K1, pll_div.k >> 18); in wm8978_configure_pll() [all …]
|
D | wm8960.c | 727 struct _pll_div *pll_div) in pll_factors() argument 740 pll_div->pre_div = 1; in pll_factors() 743 pll_div->pre_div = 0; in pll_factors() 750 pll_div->n = Ndiv; in pll_factors() 765 pll_div->k = K; in pll_factors() 768 pll_div->n, pll_div->k, pll_div->pre_div); in pll_factors() 778 static struct _pll_div pll_div; in wm8960_set_dai_pll() local 782 ret = pll_factors(freq_in, freq_out, &pll_div); in wm8960_set_dai_pll() 798 reg |= pll_div.pre_div << 4; in wm8960_set_dai_pll() 799 reg |= pll_div.n; in wm8960_set_dai_pll() [all …]
|
D | wm8510.c | 233 static struct pll_ pll_div; variable 247 pll_div.pre_div = 1; in pll_factors() 250 pll_div.pre_div = 0; in pll_factors() 257 pll_div.n = Ndiv; in pll_factors() 272 pll_div.k = K; in pll_factors() 294 snd_soc_write(codec, WM8510_PLLN, (pll_div.pre_div << 4) | pll_div.n); in wm8510_set_dai_pll() 295 snd_soc_write(codec, WM8510_PLLK1, pll_div.k >> 18); in wm8510_set_dai_pll() 296 snd_soc_write(codec, WM8510_PLLK2, (pll_div.k >> 9) & 0x1ff); in wm8510_set_dai_pll() 297 snd_soc_write(codec, WM8510_PLLK3, pll_div.k & 0x1ff); in wm8510_set_dai_pll()
|
D | wm8985.c | 737 struct pll_div { struct 744 static int pll_factors(struct pll_div *pll_div, unsigned int target, in pll_factors() argument 750 pll_div->div2 = 0; in pll_factors() 754 pll_div->div2 = 1; in pll_factors() 763 pll_div->n = Ndiv; in pll_factors() 774 pll_div->k = K; in pll_factors() 785 struct pll_div pll_div; in wm8985_set_pll() local 789 ret = pll_factors(&pll_div, freq_out * 4 * 2, freq_in); in wm8985_set_pll() 803 (pll_div.div2 << WM8985_PLL_PRESCALE_SHIFT) in wm8985_set_pll() 804 | pll_div.n); in wm8985_set_pll() [all …]
|
D | wm8991.c | 928 static void pll_factors(struct _pll_div *pll_div, unsigned int target, in pll_factors() argument 938 pll_div->div2 = 1; in pll_factors() 941 pll_div->div2 = 0; in pll_factors() 947 pll_div->n = Ndiv; in pll_factors() 962 pll_div->k = K; in pll_factors() 970 struct _pll_div pll_div; in wm8991_set_dai_pll() local 973 pll_factors(&pll_div, freq_out * 4, freq_in); in wm8991_set_dai_pll() 985 snd_soc_write(codec, WM8991_PLL1, pll_div.n | WM8991_SDM | in wm8991_set_dai_pll() 986 (pll_div.div2 ? WM8991_PRESCALE : 0)); in wm8991_set_dai_pll() 987 snd_soc_write(codec, WM8991_PLL2, (u8)(pll_div.k>>8)); in wm8991_set_dai_pll() [all …]
|
D | wm8753.c | 661 static void pll_factors(struct _pll_div *pll_div, unsigned int target, in pll_factors() argument 670 pll_div->div2 = 1; in pll_factors() 673 pll_div->div2 = 0; in pll_factors() 679 pll_div->n = Ndiv; in pll_factors() 694 pll_div->k = K; in pll_factors() 724 struct _pll_div pll_div; in wm8753_set_dai_pll() local 726 pll_factors(&pll_div, freq_out * 8, freq_in); in wm8753_set_dai_pll() 730 value = (pll_div.n << 5) + ((pll_div.k & 0x3c0000) >> 18); in wm8753_set_dai_pll() 734 value = (pll_div.k & 0x03fe00) >> 9; in wm8753_set_dai_pll() 738 value = pll_div.k & 0x0001ff; in wm8753_set_dai_pll() [all …]
|
D | wm8990.c | 937 static void pll_factors(struct _pll_div *pll_div, unsigned int target, in pll_factors() argument 947 pll_div->div2 = 1; in pll_factors() 950 pll_div->div2 = 0; in pll_factors() 956 pll_div->n = Ndiv; in pll_factors() 971 pll_div->k = K; in pll_factors() 979 struct _pll_div pll_div; in wm8990_set_dai_pll() local 982 pll_factors(&pll_div, freq_out * 4, freq_in); in wm8990_set_dai_pll() 994 snd_soc_write(codec, WM8990_PLL1, pll_div.n | WM8990_SDM | in wm8990_set_dai_pll() 995 (pll_div.div2?WM8990_PRESCALE:0)); in wm8990_set_dai_pll() 996 snd_soc_write(codec, WM8990_PLL2, (u8)(pll_div.k>>8)); in wm8990_set_dai_pll() [all …]
|
D | alc5623.c | 535 int gbl_clk = 0, pll_div = 0; in alc5623_set_dai_pll() local 560 pll_div = codec_master_pll_div[i].regvalue; in alc5623_set_dai_pll() 571 pll_div = codec_slave_pll_div[i].regvalue; in alc5623_set_dai_pll() 580 if (!pll_div) in alc5623_set_dai_pll() 584 snd_soc_write(codec, ALC5623_PLL_CTRL, pll_div); in alc5623_set_dai_pll()
|
/linux-2.6.39/drivers/staging/crystalhd/ |
D | crystalhd_hw.h | 158 uint32_t pll_div:4; /* This setting controls the divider for the PLL. */ member
|