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)
committerNick Xie <nick@khadas.com>
Mon, 5 Aug 2019 06:36:27 +0000 (14:36 +0800)
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 ddedb09..293f37e 100644 (file)
@@ -2386,7 +2386,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 2457f3d..297e504 100644 (file)
@@ -7346,7 +7346,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
        }