hdr: default hdr policy follow source [1/1]
authorMingLiang Dong <mingliang.dong@amlogic.com>
Tue, 27 Aug 2019 06:47:57 +0000 (02:47 -0400)
committerTao Zeng <tao.zeng@amlogic.com>
Wed, 28 Aug 2019 04:12:31 +0000 (21:12 -0700)
PD#SWPL-11602

Problem:
default hdr follow sink, sdr video color is different from standard sdr

Solution:
default hdr policy follow source,  UI switch follow sink or follow source

Verify:
verify on G12A

Change-Id: Ie668f06d45bb3881ee71ac4580dc3bf8f107dafa
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
drivers/amlogic/media/enhancement/amvecm/amcsc_pip.c

index c9453a8..ade3e0f 100644 (file)
 #include "hdr/am_hdr10_plus.h"
 
 /* 0: follow sink, 1: follow source */
-static uint hdr_policy;
+static uint hdr_policy = 1;
+module_param(hdr_policy, uint, 0664);
+MODULE_PARM_DESC(hdr_policy, "\n hdr policy\n");
+
 static uint cur_hdr_policy;
 static enum output_format_e target_format[VD_PATH_MAX];
 static enum hdr_type_e cur_source_format[VD_PATH_MAX];