From f7ad20866b15fdb52bfdeb05d695e70b63a597f0 Mon Sep 17 00:00:00 2001 From: Luke Go Date: Mon, 22 Jun 2020 17:41:40 +0900 Subject: [PATCH] Partial: audio: set hdmi format-check threshold by input samplerate [2/2] PD#SWPL-6340 Problem: ddp audio input from hdmiin is not smooth Solution: set hdmiin format-check threshold by input sr Verify: Verified by x301. Change-Id: Idb8ffa616c3880b1c34d61ca4e8c2917343a9ffc Signed-off-by: Zhe Wang --- sound/soc/amlogic/auge/extn.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sound/soc/amlogic/auge/extn.c b/sound/soc/amlogic/auge/extn.c index cde9b9c6ae00..efe2d73376f9 100644 --- a/sound/soc/amlogic/auge/extn.c +++ b/sound/soc/amlogic/auge/extn.c @@ -17,6 +17,8 @@ * such as fratv, frhdmirx */ +/*#define DEBUG*/ + #include #include #include @@ -172,7 +174,7 @@ static irqreturn_t extn_ddr_isr(int irq, void *devid) p_extn->frhdmirx_same_cnt++; - if (p_extn->frhdmirx_same_cnt > 5) + if (p_extn->frhdmirx_same_cnt > timeout_thres) frhdmirx_nonpcm2pcm_clr_reset(p_extn); if (p_extn->frhdmirx_cnt == 0)