Skip to content

Commit 556672d

Browse files
TE-N-ShengjiuWangbroonie
authored andcommitted
ASoC: wm8962: fix lambda value
According to user manual, it is required that FLL_LAMBDA > 0 in all cases (Integer and Franctional modes). Fixes: 9a76f1f ("ASoC: Add initial WM8962 CODEC driver") Signed-off-by: Shengjiu Wang <[email protected]> Acked-by: Charles Keepax <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 4e64ba3 commit 556672d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/codecs/wm8962.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2788,7 +2788,7 @@ static int fll_factors(struct _fll_div *fll_div, unsigned int Fref,
27882788

27892789
if (target % Fref == 0) {
27902790
fll_div->theta = 0;
2791-
fll_div->lambda = 0;
2791+
fll_div->lambda = 1;
27922792
} else {
27932793
gcd_fll = gcd(target, fratio * Fref);
27942794

@@ -2858,7 +2858,7 @@ static int wm8962_set_fll(struct snd_soc_component *component, int fll_id, int s
28582858
return -EINVAL;
28592859
}
28602860

2861-
if (fll_div.theta || fll_div.lambda)
2861+
if (fll_div.theta)
28622862
fll1 |= WM8962_FLL_FRAC;
28632863

28642864
/* Stop the FLL while we reconfigure */

0 commit comments

Comments
 (0)