Searched refs:coeff_div (Results 1 – 12 of 12) sorted by relevance
/openbmc/linux/sound/soc/codecs/ |
H A D | wm8737.c | 282 } coeff_div[] = { variable 334 for (i = 0; i < ARRAY_SIZE(coeff_div); i++) { in wm8737_hw_params() 335 if (coeff_div[i].rate != params_rate(params)) in wm8737_hw_params() 338 if (coeff_div[i].mclk == wm8737->mclk) in wm8737_hw_params() 341 if (coeff_div[i].mclk == wm8737->mclk * 2) { in wm8737_hw_params() 347 if (i == ARRAY_SIZE(coeff_div)) { in wm8737_hw_params() 353 clocking |= coeff_div[i].usb | (coeff_div[i].sr << WM8737_SR_SHIFT); in wm8737_hw_params() 386 for (i = 0; i < ARRAY_SIZE(coeff_div); i++) { in wm8737_set_dai_sysclk() 387 if (freq == coeff_div[i].mclk || in wm8737_set_dai_sysclk() 388 freq == coeff_div[i].mclk * 2) { in wm8737_set_dai_sysclk()
|
H A D | ml26124.c | 183 static const struct clk_coeff coeff_div[] = { variable 317 for (i = 0; i < ARRAY_SIZE(coeff_div); i++) { in get_coeff() 318 if (coeff_div[i].rate == rate && coeff_div[i].mclk == mclk) in get_coeff() 366 snd_soc_component_update_bits(component, ML26124_PLLNL, 0xff, coeff_div[i].pllnl); in ml26124_hw_params() 367 snd_soc_component_update_bits(component, ML26124_PLLNH, 0x1, coeff_div[i].pllnh); in ml26124_hw_params() 368 snd_soc_component_update_bits(component, ML26124_PLLML, 0xff, coeff_div[i].pllml); in ml26124_hw_params() 369 snd_soc_component_update_bits(component, ML26124_PLLMH, 0x3f, coeff_div[i].pllmh); in ml26124_hw_params() 370 snd_soc_component_update_bits(component, ML26124_PLLDIV, 0x1f, coeff_div[i].plldiv); in ml26124_hw_params()
|
H A D | wm8711.c | 110 static const struct _coeff_div coeff_div[] = { variable 148 for (i = 0; i < ARRAY_SIZE(coeff_div); i++) { in get_coeff() 149 if (coeff_div[i].rate == rate && coeff_div[i].mclk == mclk) in get_coeff() 163 u16 srate = (coeff_div[i].sr << 2) | in wm8711_hw_params() 164 (coeff_div[i].bosr << 1) | coeff_div[i].usb; in wm8711_hw_params()
|
H A D | wm8731.c | 238 static const struct _coeff_div coeff_div[] = { variable 306 for (i = 0; i < ARRAY_SIZE(coeff_div); i++) { in get_coeff() 307 if (coeff_div[i].rate == rate && coeff_div[i].mclk == mclk) in get_coeff() 321 u16 srate = (coeff_div[i].sr << 2) | in wm8731_hw_params() 322 (coeff_div[i].bosr << 1) | coeff_div[i].usb; in wm8731_hw_params()
|
H A D | wm8971.c | 369 static const struct _coeff_div coeff_div[] = { variable 422 for (i = 0; i < ARRAY_SIZE(coeff_div); i++) { in get_coeff() 423 if (coeff_div[i].rate == rate && coeff_div[i].mclk == mclk) in get_coeff() 534 (coeff_div[coeff].sr << 1) | coeff_div[coeff].usb); in wm8971_pcm_hw_params()
|
H A D | es8326.c | 201 static const struct _coeff_div coeff_div[] = { variable 271 for (i = 0; i < ARRAY_SIZE(coeff_div); i++) { in get_coeff() 272 if (coeff_div[i].rate == rate && coeff_div[i].mclk == mclk) in get_coeff() 367 coeff_div[coeff].reg4); in es8326_pcm_hw_params() 369 coeff_div[coeff].reg5); in es8326_pcm_hw_params() 371 coeff_div[coeff].reg6); in es8326_pcm_hw_params() 373 coeff_div[coeff].reg7); in es8326_pcm_hw_params() 375 coeff_div[coeff].reg8); in es8326_pcm_hw_params() 377 coeff_div[coeff].reg9); in es8326_pcm_hw_params() 379 coeff_div[coeff].rega); in es8326_pcm_hw_params() [all …]
|
H A D | wm8750.c | 436 static const struct _coeff_div coeff_div[] = { variable 489 for (i = 0; i < ARRAY_SIZE(coeff_div); i++) { in get_coeff() 490 if (coeff_div[i].rate == rate && coeff_div[i].mclk == mclk) in get_coeff() 604 (coeff_div[coeff].sr << 1) | coeff_div[coeff].usb); in wm8750_pcm_hw_params()
|
H A D | wm8988.c | 458 static const struct _coeff_div coeff_div[] = { variable 511 for (i = 0; i < ARRAY_SIZE(coeff_div); i++) { in get_coeff() 512 if (coeff_div[i].rate == rate && coeff_div[i].mclk == mclk) in get_coeff() 705 (coeff_div[coeff].sr << 1) | coeff_div[coeff].usb); in wm8988_pcm_hw_params()
|
H A D | rt5631.c | 1286 static const struct coeff_clk_div coeff_div[] = { variable 1344 for (i = 0; i < ARRAY_SIZE(coeff_div); i++) { in get_coeff() 1345 if (coeff_div[i].mclk == mclk && coeff_div[i].rate == rate && in get_coeff() 1346 (coeff_div[i].bclk / coeff_div[i].rate) == timesofbclk) in get_coeff() 1399 coeff_div[coeff].reg_val); in rt5631_hifi_pcm_params()
|
H A D | alc5632.c | 771 static const struct _coeff_div coeff_div[] = { variable 780 for (i = 0; i < ARRAY_SIZE(coeff_div); i++) { in get_coeff() 781 if (coeff_div[i].fs * rate == alc5632->sysclk) in get_coeff() 899 coeff = coeff_div[coeff].regvalue; in alc5632_pcm_hw_params()
|
H A D | wm8753.c | 798 static const struct _coeff_div coeff_div[] = { variable 851 for (i = 0; i < ARRAY_SIZE(coeff_div); i++) { in get_coeff() 852 if (coeff_div[i].rate == rate && coeff_div[i].mclk == mclk) in get_coeff() 1167 snd_soc_component_write(component, WM8753_SRATE1, srate | (coeff_div[coeff].sr << 1) | in wm8753_i2s_hw_params() 1168 coeff_div[coeff].usb); in wm8753_i2s_hw_params()
|
H A D | alc5623.c | 591 static const struct _coeff_div coeff_div[] = { variable 607 for (i = 0; i < ARRAY_SIZE(coeff_div); i++) { in get_coeff() 608 if (coeff_div[i].fs * rate == alc5623->sysclk) in get_coeff() 732 coeff = coeff_div[coeff].regvalue; in alc5623_pcm_hw_params()
|