vlock: disable some log [1/1]
authorYong Qin <yong.qin@amlogic.com>
Fri, 19 Apr 2019 11:27:56 +0000 (19:27 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Mon, 22 Apr 2019 08:39:23 +0000 (01:39 -0700)
PD#SWPL-6994

Problem:
disable some log

Solution:
disable some log

Verify:
tl1

Change-Id: I53ceafbd35445f60d6c59ff9fd2632e8a6fc794f
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
drivers/amlogic/media/enhancement/amvecm/vlock.c
drivers/amlogic/media/enhancement/amvecm/vlock.h

index 777991e..b53e871 100644 (file)
@@ -1933,7 +1933,9 @@ void vlock_fsm_check_lock_sts(struct stvlock_sig_sts *pvlock,
 
        /*check frq lock*/
        if (pvlock->frqlock_sts != frqlock_sts) {
-               pr_info("frq lock sts(%d,%d) cnt:%d\n", pvlock->frqlock_sts,
+               if (vlock_debug & VLOCK_DEBUG_INFO)
+                       pr_info("frq lock sts(%d,%d) cnt:%d\n",
+                       pvlock->frqlock_sts,
                        frqlock_sts, pvlock->frame_cnt_in);
                pvlock->frqlock_sts = frqlock_sts;
        }
@@ -1961,7 +1963,9 @@ void vlock_fsm_check_lock_sts(struct stvlock_sig_sts *pvlock,
        /*check phase lock*/
        if (pvlock->phlock_en &&
                (pvlock->phlock_sts != phlock_sts)) {
-               pr_info("ph lock sts(%d,%d) cnt:%d\n", pvlock->phlock_sts,
+               if (vlock_debug & VLOCK_DEBUG_INFO)
+                       pr_info("ph lock sts(%d,%d) cnt:%d\n",
+                       pvlock->phlock_sts,
                        phlock_sts, pvlock->frame_cnt_in);
                pvlock->phlock_sts = phlock_sts;
                if (phlock_sts && !pvlock->ss_sts &&
@@ -1976,7 +1980,8 @@ void vlock_fsm_check_lock_sts(struct stvlock_sig_sts *pvlock,
                        pvlock->phlock_en) {
                /*error check*/
                if ((pvlock->frame_cnt_in >= 3500) && (!pvlock->ss_sts)) {
-                       pr_info("vlock warning: set back ss on(%d, %d)\n",
+                       if (vlock_debug & VLOCK_DEBUG_INFO)
+                               pr_info("vlock warning: set back ss on(%d, %d)\n",
                                frqlock_sts, phlock_sts);
                        pvlock->pll_mode_pause = true;
                        pvlock->ss_sts = true;
index 628f72a..07e6e37 100644 (file)
@@ -23,7 +23,7 @@
 #include <linux/amlogic/media/vfm/vframe.h>
 #include "linux/amlogic/media/amvecm/ve.h"
 
-#define VLOCK_VER "Ref.2019/4/10a finetune phase lock"
+#define VLOCK_VER "Ref.2019/4/19:disable some log"
 
 #define VLOCK_REG_NUM  33