]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
ASoC: sglt5000: Fix SGTL5000_PLL_FRAC_DIV_MASK
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 4 Jul 2013 23:01:03 +0000 (20:01 -0300)
committerMark Brown <broonie@linaro.org>
Fri, 5 Jul 2013 09:45:49 +0000 (10:45 +0100)
SGTL5000_PLL_FRAC_DIV_MASK is used to mask bits 0-10 (11 bits in total) of
register CHIP_PLL_CTRL, so fix the mask to accomodate all this bit range.

Reported-by: Oskar Schirmer <oskar@scara.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org
sound/soc/codecs/sgtl5000.h

index 4b69229a9818a789222db312657e008470668392..2f8c88931f690579f86d497d03ef7327a156a94c 100644 (file)
 #define SGTL5000_PLL_INT_DIV_MASK              0xf800
 #define SGTL5000_PLL_INT_DIV_SHIFT             11
 #define SGTL5000_PLL_INT_DIV_WIDTH             5
-#define SGTL5000_PLL_FRAC_DIV_MASK             0x0700
+#define SGTL5000_PLL_FRAC_DIV_MASK             0x07ff
 #define SGTL5000_PLL_FRAC_DIV_SHIFT            0
 #define SGTL5000_PLL_FRAC_DIV_WIDTH            11