dolby: fix Display looks abnormal problem [1/1]
authoryao liu <yao.liu@amlogic.com>
Fri, 26 Apr 2019 12:35:34 +0000 (08:35 -0400)
committerJianxin Pan <jianxin.pan@amlogic.com>
Mon, 29 Apr 2019 07:27:48 +0000 (00:27 -0700)
PD#OTT-3006

Problem:
The width and height of DOLBY_CORE2A reg are reversed

Solution:
Setting right width and height for DOLBY_CORE2A

Verify:
raven

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

index a32dec5..2b3ab34 100644 (file)
@@ -2518,7 +2518,7 @@ static void apply_stb_core_settings(
                        24, 256 * 5,
                        (uint32_t *)&new_dovi_setting.dm_reg2,
                        (uint32_t *)&new_dovi_setting.dm_lut2,
-                       graphics_h, graphics_w, 1, 1);
+                       graphics_w, graphics_h, 1, 1);
        v_size = vinfo->height;
        if (((vinfo->width == 720) &&
                (vinfo->height == 480) &&
index 2d8b6a5..59d5a86 100644 (file)
@@ -8084,7 +8084,7 @@ static void set_blend_reg(struct layer_blend_reg_s *blend_reg)
                        DOLBY_CORE2A_SWAP_CTRL2,
                        (dv_core2_hsize << 16) | (dv_core2_vsize + 0));
 #ifdef CONFIG_AMLOGIC_MEDIA_ENHANCEMENT_DOLBYVISION
-               update_graphic_width_height(dv_core2_vsize, dv_core2_hsize);
+               update_graphic_width_height(dv_core2_hsize, dv_core2_vsize);
 #endif
        }