dolby: set dovi gmax/pmax [1/1]
authoryao liu <yao.liu@amlogic.com>
Wed, 8 May 2019 13:55:45 +0000 (21:55 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Wed, 22 May 2019 01:30:50 +0000 (18:30 -0700)
commit33d4309354a0498b1583a7bb3b1c770530086350
treef272d4976e4284c9a7ce29c55153dfa11c34d761
parentbf62f39b9d8d1763d593ddf5290bafd1a0313989
dolby: set dovi gmax/pmax [1/1]

PD#SWPL-8159

Problem:
Default graphics is always 100nit,
need to set different nits for SDR/HDR/DV TV

Solution:
dolby_vision_target_graphics_max[] for DV/HDR/SDR;
dolby_vision_target_max[][] for video_max;
module param dolby_vision_target_max for force graphics max
when set it to non-zero;

Verify:
verified on sm1

Change-Id: If6f5ae4ffb37629b51d21764302689da776e9f7f
Signed-off-by: yao liu <yao.liu@amlogic.com>
drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.c
drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.h