From f39a25688818c4a56ae7a41a34f5981a45c1806e Mon Sep 17 00:00:00 2001 From: "nengwen.chen" Date: Sun, 29 Sep 2019 19:22:36 +0800 Subject: [PATCH] atv_demod: fix atv non_std_en == 4 [1/1] PD#TV-10383 Problem: fix atv non_std_en == 4. Solution: 1.fix atv non_std_en == 4. Verify: Verified by x301 Change-Id: I25286d1f1472411fcc37255eaef80436ed0f2c26 Signed-off-by: nengwen.chen --- drivers/amlogic/atv_demod/atvdemod_func.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/amlogic/atv_demod/atvdemod_func.c b/drivers/amlogic/atv_demod/atvdemod_func.c index 980bf7c..5fef4c3 100644 --- a/drivers/amlogic/atv_demod/atvdemod_func.c +++ b/drivers/amlogic/atv_demod/atvdemod_func.c @@ -287,8 +287,8 @@ void atv_dmd_misc(void) atv_dmd_wr_long(APB_BLOCK_ADDR_VDAGC, 0x0c, 0x387c0831); atv_dmd_wr_long(APB_BLOCK_ADDR_CARR_RCVY, 0x24, 0xc020901); } else { - if (tuner_id == AM_TUNER_R840 || tuner_id == AM_TUNER_R842 - || non_std_en == 4) { + if ((tuner_id == AM_TUNER_R840 || tuner_id == AM_TUNER_R842) && + non_std_en == 4) { /* Reduce target amplitude and response speed */ atv_dmd_wr_long(APB_BLOCK_ADDR_AGC_PWM, 0x08, 0x17070200); -- 2.7.4