dv: turn off overscan when dv on
authorYi Zhou <yi.zhou@amlogic.com>
Fri, 21 Sep 2018 11:40:51 +0000 (19:40 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Sat, 29 Sep 2018 06:38:49 +0000 (23:38 -0700)
PD#173674: dv: turn off overscan when dv on

Change-Id: Ib0b56402038812df1b5e540271608862a59f085e
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
drivers/amlogic/media/enhancement/amvecm/amve.c

index 7a85d6b..0754b27 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/amlogic/cpu_version.h>
 #include <linux/amlogic/media/vfm/vframe.h>
 #include <linux/amlogic/media/amvecm/amvecm.h>
+#include <linux/amlogic/media/amdolbyvision/dolby_vision.h>
 #include <linux/amlogic/media/vout/vinfo.h>
 #include <linux/amlogic/media/vout/vout_notify.h>
 #include "arch/vpp_regs.h"
@@ -1405,6 +1406,8 @@ void amvecm_fresh_overscan(struct vframe_s *vf)
 
        if (overscan_disable)
                return;
+       if (is_dolby_vision_on())
+               return;
        if (overscan_table[0].load_flag) {
                height = (vf->type & VIDTYPE_COMPRESS) ?
                        vf->compHeight : vf->height;