dolby: set dovi gmax/pmax [1/1]
authoryao liu <yao.liu@amlogic.com>
Wed, 8 May 2019 13:55:45 +0000 (21:55 +0800)
committerNick Xie <nick@khadas.com>
Mon, 5 Aug 2019 06:36:47 +0000 (14:36 +0800)
commit850a424608d7c986a48d056e05ceb25bc9bd53ce
treedc726f1bf2d8613cd082fdd73df412a04f6192c4
parent3388408e6de2a401278313796caa009082f5084a
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