Commit 260571582b72d12cfbd38b76ff5e4c43820ed08c

Authored by Aurelien BOUIN
Committed by Greg Kroah-Hartman
1 parent 2b298f993f

ASoC: fsl_esai: Fix incorrect xDC field width of xCCR registers

commit adc60298c80efef4c2d7a7860b91b450931a7cf8 upstream.

The xDC field should have 5 bit width according to Reference Manual.
Thus this patch fixes it.

Signed-off-by: Aurelien BOUIN <a_bouin@yahoo.fr>
Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

sound/soc/fsl/fsl_esai.h
... ... @@ -302,7 +302,7 @@
302 302 #define ESAI_xCCR_xFP_MASK (((1 << ESAI_xCCR_xFP_WIDTH) - 1) << ESAI_xCCR_xFP_SHIFT)
303 303 #define ESAI_xCCR_xFP(v) ((((v) - 1) << ESAI_xCCR_xFP_SHIFT) & ESAI_xCCR_xFP_MASK)
304 304 #define ESAI_xCCR_xDC_SHIFT 9
305   -#define ESAI_xCCR_xDC_WIDTH 4
  305 +#define ESAI_xCCR_xDC_WIDTH 5
306 306 #define ESAI_xCCR_xDC_MASK (((1 << ESAI_xCCR_xDC_WIDTH) - 1) << ESAI_xCCR_xDC_SHIFT)
307 307 #define ESAI_xCCR_xDC(v) ((((v) - 1) << ESAI_xCCR_xDC_SHIFT) & ESAI_xCCR_xDC_MASK)
308 308 #define ESAI_xCCR_xPSR_SHIFT 8