dv: update the hsize and vsize of dv core 2 [1/1]

PD#SWPL-3223

Problem:
get parameters from vpp blend to core 2 is error

Solution:
we get the parameters from OSD blend instead vpp blend

Verify:
u212

Change-Id: I31a5e4cf90b5d665cfd291aab5554d311ec19346
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
This commit is contained in:
Yi Zhou
2018-12-18 14:56:48 +08:00
committed by Luan Yuan
parent 6decc0db06
commit e5f5370b4b

View File

@@ -7310,18 +7310,18 @@ static void set_blend_reg(struct layer_blend_reg_s *blend_reg)
}
#endif
}
dv_core2_vsize = (blend_reg->vpp_osd1_blend_v_scope & 0xfff)
- ((blend_reg->vpp_osd1_blend_v_scope >> 16) & 0xfff) + 1;
dv_core2_hsize = (blend_reg->vpp_osd1_blend_h_scope & 0xfff)
- ((blend_reg->vpp_osd1_blend_h_scope >> 16) & 0xfff) + 1;
dv_core2_vsize = (blend_reg->osd_blend_blend0_size >> 16) & 0xfff;
dv_core2_hsize = blend_reg->osd_blend_blend0_size & 0xfff;
if (osd_hw.osd_meson_dev.has_dolby_vision) {
VSYNCOSD_WR_MPEG_REG(
DOLBY_CORE2A_SWAP_CTRL1,
((dv_core2_vsize + 0x40) << 16)
| (dv_core2_hsize + 0x80 + 0));
((dv_core2_hsize + 0x40) << 16)
| (dv_core2_vsize + 0x80 + 0));
VSYNCOSD_WR_MPEG_REG(
DOLBY_CORE2A_SWAP_CTRL2,
(dv_core2_vsize << 16) | (dv_core2_hsize + 0));
(dv_core2_hsize << 16) | (dv_core2_vsize + 0));
#ifdef CONFIG_AMLOGIC_MEDIA_ENHANCEMENT_DOLBYVISION
update_graphic_width_height(dv_core2_vsize, dv_core2_hsize);
#endif