Home
last modified time | relevance | path

Searched refs:coeff_div (Results 1 – 12 of 12) sorted by relevance

/openbmc/linux/sound/soc/codecs/
H A Dwm8737.c282 } 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 Dml26124.c183 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 Dwm8711.c110 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 Dwm8731.c238 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 Dwm8971.c369 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 Des8326.c201 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 Dwm8750.c436 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 Dwm8988.c458 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 Drt5631.c1286 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 Dalc5632.c771 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 Dwm8753.c798 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 Dalc5623.c591 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()