From 0b2a1aa749ae0858059c21d998a33d107fdf5401 Mon Sep 17 00:00:00 2001 From: "yujie.wu" Date: Wed, 19 Dec 2018 10:39:25 +0800 Subject: [PATCH] audio: Fix TDM not wokring on HDMI I2S in [1/1] PD#SWPL-2887 Problem: When TDM is used for HDMI I2S in, the solt set is wrong. Solution: Fix the lane max value from 3 to 4 Verify: A113 Change-Id: I33f5ca21bf1e2407d83fa5d0f22e21f7b1f5e749 Signed-off-by: yujie.wu --- sound/soc/amlogic/auge/tdm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/amlogic/auge/tdm.c b/sound/soc/amlogic/auge/tdm.c index 2208616..0cbe0fb 100644 --- a/sound/soc/amlogic/auge/tdm.c +++ b/sound/soc/amlogic/auge/tdm.c @@ -968,7 +968,7 @@ static int aml_dai_set_tdm_slot(struct snd_soc_dai *cpu_dai, } else { if (lanes_lb_cnt) in_src = p_tdm->id + 3; - if (lanes_in_cnt && lanes_in_cnt <= 3) + if (lanes_in_cnt && lanes_in_cnt <= 4) in_src = p_tdm->id; if (in_src > 5) { pr_err("unknown src(%d) for tdmin\n", in_src); -- 2.7.4