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 <Zhe.Wang@amlogic.com>
This commit is contained in:
Luke Go
2020-06-22 17:41:40 +09:00
parent 459ff4ab1e
commit f7ad20866b

View File

@@ -17,6 +17,8 @@
* such as fratv, frhdmirx
*/
/*#define DEBUG*/
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/platform_device.h>
@@ -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)