From 0bc47b31660efd3dbbeee7e51fca6f75e7ecb69f Mon Sep 17 00:00:00 2001
From: Shengjiu Wang <shengjiu.wang@nxp.com>
Date: Wed, 13 Mar 2019 16:29:45 +0800
Subject: [PATCH] MLK-21106: ASoC: imx-ak4458: Fix channel not supported in tdm
 & daisy chain

The channel num (9 - 15) should not be supported in tdm & daisy chain
mode for there is two dataline, this channel number can't be
symmetrically distributed on two dataline (the first one is fixed to
be 8 channel)

Fixes commit 8d29874365c3 ("MLK-17817-2: ASoC: imx-ak4458: enable 16
channels in TDM mode")

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
---
 sound/soc/fsl/imx-ak4458.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/fsl/imx-ak4458.c b/sound/soc/fsl/imx-ak4458.c
index 20a1ef0fadd622..a159ea8f8c6494 100644
--- a/sound/soc/fsl/imx-ak4458.c
+++ b/sound/soc/fsl/imx-ak4458.c
@@ -98,7 +98,7 @@ static const u32 ak4458_channels[] = {
 };
 
 static const u32 ak4458_channels_tdm[] = {
-	1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
+	1, 2, 3, 4, 5, 6, 7, 8, 16,
 };
 
 static unsigned long ak4458_get_mclk_rate(struct snd_pcm_substream *substream,
-- 
GitLab