osd: add canvas alignment for line length [1/4]
authorCao Jian <jian.cao@amlogic.com>
Fri, 22 Nov 2019 02:14:42 +0000 (10:14 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Mon, 9 Dec 2019 12:11:36 +0000 (05:11 -0700)
commiteb8e6adeffc72cc92536bf58929c0b86605a63e5
treef2ff050c9cb1e31f13a3033023e0bc3ac62b9de3
parent312fe1245ed1f1b54fdba2529d2115e2d7617d82
osd: add canvas alignment for line length [1/4]

PD#SWPL-16902

Problem:
garbage screen for portrait panel in recovery mode

Solution:
add canvas alignment for line length
recovery takes it as framebuffer row_bytes

Verify:
g12b-w400

Change-Id: I9e94df3a7294fa3e388390e41eeb44e0588ec9d2
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
(cherry picked from commit 0b339b85f174b00cf213e9aaaa439591e6f279e5)
drivers/amlogic/media/osd/osd_fb.c
drivers/amlogic/media/osd/osd_hw.c
drivers/amlogic/media/osd/osd_hw.h