Skip to content

Commit 4ddd51c

Browse files
TE-N-ShengjiuWangbroonie
authored andcommitted
ASoC: fsl_micfil: Expand the range of FIFO watermark mask
On the i.MX9x platforms, the mask of FIFO watermark is 0x1F, on i.MX8x platforms, the mask of FIFO watermark is 0X7. So use the mask 0x1F for all platforms to make them compatible. Signed-off-by: Shengjiu Wang <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 8400291 commit 4ddd51c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sound/soc/fsl/fsl_micfil.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ static const struct reg_default fsl_micfil_reg_defaults[] = {
831831
{REG_MICFIL_CTRL1, 0x00000000},
832832
{REG_MICFIL_CTRL2, 0x00000000},
833833
{REG_MICFIL_STAT, 0x00000000},
834-
{REG_MICFIL_FIFO_CTRL, 0x00000007},
834+
{REG_MICFIL_FIFO_CTRL, 0x0000001F},
835835
{REG_MICFIL_FIFO_STAT, 0x00000000},
836836
{REG_MICFIL_DATACH0, 0x00000000},
837837
{REG_MICFIL_DATACH1, 0x00000000},

sound/soc/fsl/fsl_micfil.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
#define MICFIL_STAT_CHXF(ch) BIT(ch)
7373

7474
/* MICFIL FIFO Control Register -- REG_MICFIL_FIFO_CTRL 0x10 */
75-
#define MICFIL_FIFO_CTRL_FIFOWMK GENMASK(2, 0)
75+
#define MICFIL_FIFO_CTRL_FIFOWMK GENMASK(4, 0)
7676

7777
/* MICFIL FIFO Status Register -- REG_MICFIL_FIFO_STAT 0x14 */
7878
#define MICFIL_FIFO_STAT_FIFOX_OVER(ch) BIT(ch)

0 commit comments

Comments
 (0)