osd: screen blank when Plugin HDMI after system bootup in 15s [1/1]
authorPengcheng Chen <pengcheng.chen@amlogic.com>
Thu, 13 Jun 2019 10:27:15 +0000 (18:27 +0800)
committerNick Xie <nick@khadas.com>
Mon, 5 Aug 2019 07:04:51 +0000 (15:04 +0800)
commitdcff67647d34aa8815eaf595393a09fb8873b848
tree4a665b6b58d5db9a89c7c86800e7a70fa6752f7f
parent92ba501f65f79fd3af2f6cac55d22ce22b920a8a
osd: screen blank when Plugin HDMI after system bootup in 15s [1/1]

PD#OTT-4292

Problem:
Root Cause:gralloc set afbcd = 1, but hwcomposer have no frame set,
hdmi plug and uboot logo update and osd_enable_hw() called, in this api,
there is a protection: if afbcd.enable set and phy_addr == 0 will
wait vsync till phy_addr != 0, this section code logic caused screen blank

Solution:
when gralloc set afbcd = 1, don't set afbcd.enable = 1,
it will update with hwcomposer post afbc frame.

Verify:
verify with Raven

Change-Id: I98a88cffd139832a34825adde7c21219937b63ce
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
drivers/amlogic/media/osd/osd_hw.c