Skip to contentSkip to conversation

Patch "ASoC: nau8825: fix bug in FLL parameter" has been added to the 4.7-stable tree

PATCH [email protected] 1 participant 1 message Oct 20, 2016

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

ASoC: nau8825: fix bug in FLL parameter

to the 4.7-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:

     asoc-nau8825-fix-bug-in-fll-parameter.patch

and it can be found in the queue-4.7 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From a8961cae29c38e225120c40c3340dbde2f552e60 Mon Sep 17 00:00:00 2001

From: John Hsu <[email protected]>
Date: Tue, 13 Sep 2016 11:56:03 +0800
Subject: ASoC: nau8825: fix bug in FLL parameter

From: John Hsu <[email protected]>

commit a8961cae29c38e225120c40c3340dbde2f552e60 upstream.

In the FLL parameter calculation, the FVCO should choose the maximum one. The patch is to fix the bug about the wrong FVCO chosen.

---
 sound/soc/codecs/nau8825.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/nau8825.c +1 -1
@@ -1015,7 +1015,7 @@ static int nau8825_calc_fll_param(unsign
 	/* Calculate the FLL 10-bit integer input and the FLL 16-bit fractional
 	 * input based on FDCO, FREF and FLL ratio.
 	 */
-	fvco = div_u64(fvco << 16, fref * fll_param->ratio);
+	fvco = div_u64(fvco_max << 16, fref * fll_param->ratio);
 	fll_param->fll_int = (fvco >> 16) & 0x3FF;
 	fll_param->fll_frac = fvco & 0xFFFF;
 	return 0;

Patches currently in stable-queue which might be from [email protected] are

queue-4.7/asoc-nau8825-fix-bug-in-fll-parameter.patch