From: MingLiang Dong Date: Tue, 27 Aug 2019 06:47:57 +0000 (-0400) Subject: hdr: default hdr policy follow source [1/1] X-Git-Tag: hardkernel-4.9.236-104~723 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e65b0befaf2cdbc107ad9ff87008c815a5134a8;p=platform%2Fkernel%2Flinux-amlogic.git hdr: default hdr policy follow source [1/1] 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 --- diff --git a/drivers/amlogic/media/enhancement/amvecm/amcsc_pip.c b/drivers/amlogic/media/enhancement/amvecm/amcsc_pip.c index c9453a8..ade3e0f 100644 --- a/drivers/amlogic/media/enhancement/amvecm/amcsc_pip.c +++ b/drivers/amlogic/media/enhancement/amvecm/amcsc_pip.c @@ -24,7 +24,10 @@ #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];