atv_demod: fix atv non_std_en == 4 [1/1]
authornengwen.chen <nengwen.chen@amlogic.com>
Sun, 29 Sep 2019 11:22:36 +0000 (19:22 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Tue, 8 Oct 2019 08:30:16 +0000 (01:30 -0700)
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 <nengwen.chen@amlogic.com>
drivers/amlogic/atv_demod/atvdemod_func.c

index 980bf7c..5fef4c3 100644 (file)
@@ -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);