dv: revised PQ calculation for vout panel
authorzhilei.wu <zhilei.wu@amlogic.com>
Wed, 21 Mar 2018 06:30:20 +0000 (14:30 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Wed, 21 Mar 2018 08:20:45 +0000 (00:20 -0800)
PD#157605: dv: revised PQ calculation for vout panel

Change-Id: I6a3d0a0fee30b82102e8344625669aab0f2f2965
Signed-off-by: zhilei.wu <zhilei.wu@amlogic.com>
drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.c

index 2a117b4..cdf4716 100644 (file)
@@ -4272,8 +4272,8 @@ static void calculate_panel_max_pq(
                return;
        if (panel_max_lumin)
                max_lin = panel_max_lumin;
-       /*else if (vinfo->hdr_info.sink_flag)*/
-       /*      max_lin = vinfo->hdr_info.lumi_max;*/
+       else if (vinfo->mode == VMODE_LCD)
+               max_lin = vinfo->hdr_info.lumi_max;
        if (max_lin < 100)
                max_lin = 100;
        else if (max_lin > 4000)