From 6bd55541d4ac77b62395d70919fc7cc398754d73 Mon Sep 17 00:00:00 2001 From: Viorel Suman Date: Tue, 24 Mar 2020 16:19:44 +0200 Subject: MLK-23603-4: ASoC: fsl_xcvr: adjust watermark and max burst values Set watermarks values at half FIFO size, and max burst to 1/8 of FIFO size. Signed-off-by: Viorel Suman Reviewed-by: Shengjiu Wang --- sound/soc/fsl/fsl_xcvr.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'sound/soc/fsl/fsl_xcvr.h') diff --git a/sound/soc/fsl/fsl_xcvr.h b/sound/soc/fsl/fsl_xcvr.h index 64732d0193c0..1b982f5ee405 100644 --- a/sound/soc/fsl/fsl_xcvr.h +++ b/sound/soc/fsl/fsl_xcvr.h @@ -25,10 +25,11 @@ /* XCVR Registers */ #define FSL_XCVR_REG_OFFSET 0x800 /* regs offset */ #define FSL_XCVR_FIFO_SIZE 0x80 /* 128 */ -#define FSL_XCVR_FIFO_WMK_RX 4 /* 4 */ -#define FSL_XCVR_FIFO_WMK_TX 4 /* 4 */ -#define FSL_XCVR_MAXBURST_RX 64 /* 64 */ -#define FSL_XCVR_MAXBURST_TX 64 /* 64 */ +#define FSL_XCVR_FIFO_WMK_RX (FSL_XCVR_FIFO_SIZE >> 1) /* 64 */ +#define FSL_XCVR_FIFO_WMK_TX (FSL_XCVR_FIFO_SIZE >> 1) /* 64 */ +#define FSL_XCVR_MAXBURST_RX (FSL_XCVR_FIFO_WMK_RX >> 2) /* 16 */ +#define FSL_XCVR_MAXBURST_TX (FSL_XCVR_FIFO_WMK_TX >> 2) /* 16 */ + #define FSL_XCVR_RX_FIFO_ADDR 0x0C00 #define FSL_XCVR_TX_FIFO_ADDR 0x0E00 -- cgit v1.2.3