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)
committerTao Zeng <tao.zeng@amlogic.com>
Mon, 17 Jun 2019 06:05:03 +0000 (23:05 -0700)
commit02e8c0eb3c307efb6b80dd22d5f15cba9f2aab3a
treec543398285175530d02a2fe2b99d204da1e15a90
parente74584708a3ec7a64c888566659c67651f27d224
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