dtv_demod: Play dtv stuttering when the temperature rising [1/1]
authorzhiwei.yuan <zhiwei.yuan@amlogic.com>
Thu, 11 Apr 2019 07:53:04 +0000 (15:53 +0800)
committerNick Xie <nick@khadas.com>
Mon, 5 Aug 2019 06:46:10 +0000 (14:46 +0800)
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 <zhiwei.yuan@amlogic.com>
drivers/amlogic/media/dtv_demod/dtmb_func.c

index 90e7714..1f5761e 100644 (file)
@@ -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)