From fa11b57daf37274959cf9505f7959b50beb09eed Mon Sep 17 00:00:00 2001 From: yao liu Date: Fri, 26 Apr 2019 08:35:34 -0400 Subject: [PATCH] dolby: fix Display looks abnormal problem [1/1] 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 --- drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.c | 2 +- drivers/amlogic/media/osd/osd_hw.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.c b/drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.c index ddedb09..293f37e 100644 --- a/drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.c +++ b/drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.c @@ -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) && diff --git a/drivers/amlogic/media/osd/osd_hw.c b/drivers/amlogic/media/osd/osd_hw.c index 2457f3d..297e504 100644 --- a/drivers/amlogic/media/osd/osd_hw.c +++ b/drivers/amlogic/media/osd/osd_hw.c @@ -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 } -- 2.7.4