From 9a15fd37eeee6422e71ecd27abb8d52162315c2e Mon Sep 17 00:00:00 2001 From: "zhiwei.yuan" Date: Thu, 11 Apr 2019 15:53:04 +0800 Subject: [PATCH] dtv_demod: Play dtv stuttering when the temperature rising [1/1] PD#SWPL-6985 Problem: cfo track value is small Solution: increase cfo track val to avoid crystal jitter Verify: verified by t962x2_x301 Change-Id: Ifcf53f1d06eae204a82dc99154d18c38f370ebc1 Signed-off-by: zhiwei.yuan --- drivers/amlogic/media/dtv_demod/dtmb_func.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/amlogic/media/dtv_demod/dtmb_func.c b/drivers/amlogic/media/dtv_demod/dtmb_func.c index 90e7714..1f5761e 100644 --- a/drivers/amlogic/media/dtv_demod/dtmb_func.c +++ b/drivers/amlogic/media/dtv_demod/dtmb_func.c @@ -204,6 +204,12 @@ void dtmb_all_reset(void) */ dtmb_write_reg(DTMB_CHE_IBDFE_CONF0, dtmb_read_reg(DTMB_CHE_IBDFE_CONF0) & 0xfffff0ff); + + /*increase cfo track val to avoid dtmb playing is not smooth + *when temperature is over 80 degree Celsius + */ + dtmb_write_reg(DTMB_SYNC_TRACK_CFO_MAX, + (dtmb_read_reg(DTMB_SYNC_TRACK_CFO_MAX) & ~0xff) | 0x1f); } void dtmb_initial(struct aml_demod_sta *demod_sta) -- 2.7.4