From: zhiwei.yuan Date: Mon, 25 Mar 2019 09:28:35 +0000 (+0800) Subject: dtv_demod: playing dtmb is not smooth when signal is non-standard [1/1] X-Git-Tag: hardkernel-4.9.236-104~1563 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b75192f66f3a18c3653907bec6bced9528ddfdb;p=platform%2Fkernel%2Flinux-amlogic.git dtv_demod: playing dtmb is not smooth when signal is non-standard [1/1] PD#SWPL-6286 Problem: tps of non-standard signal is incorrect Solution: ignore calculating amplitude tps Verify: verified by t962x2_x301 Change-Id: Ibd3ff7bfe56ca604ad99fa7c6f457202c227c9ae Signed-off-by: zhiwei.yuan --- diff --git a/drivers/amlogic/media/dtv_demod/dtmb_func.c b/drivers/amlogic/media/dtv_demod/dtmb_func.c index 7846909..90e7714 100644 --- a/drivers/amlogic/media/dtv_demod/dtmb_func.c +++ b/drivers/amlogic/media/dtv_demod/dtmb_func.c @@ -198,6 +198,12 @@ void dtmb_all_reset(void) dtmb_write_reg(DTMB_CHE_FD_TD_COEFF, temp_data); } } + + /*for non-standard signal, + *ignore calculatiing amplitude tps(transport parameter signalling) + */ + dtmb_write_reg(DTMB_CHE_IBDFE_CONF0, + dtmb_read_reg(DTMB_CHE_IBDFE_CONF0) & 0xfffff0ff); } void dtmb_initial(struct aml_demod_sta *demod_sta) diff --git a/drivers/amlogic/media/dtv_demod/include/addr_dtmb_che.h b/drivers/amlogic/media/dtv_demod/include/addr_dtmb_che.h index 34c28cb..7252c1a 100644 --- a/drivers/amlogic/media/dtv_demod/include/addr_dtmb_che.h +++ b/drivers/amlogic/media/dtv_demod/include/addr_dtmb_che.h @@ -22,6 +22,7 @@ #define DTMB_CHE_ADDR(x) (DTMB_DEMOD_BASE + (x << 2)) +#define DTMB_CHE_IBDFE_CONF0 DTMB_CHE_ADDR(0x8b) #define DTMB_CHE_TE_HREB_SNR DTMB_CHE_ADDR(0x8d) #define DTMB_CHE_MC_SC_TIMING_POWTHR DTMB_CHE_ADDR(0x8e) #define DTMB_CHE_MC_SC_PROTECT_GD DTMB_CHE_ADDR(0x8f)