author | Andrew F. Davis <afd@ti.com> | |
Wed, 21 Aug 2019 23:40:34 +0000 (23:40 +0000) | ||
committer | Praneeth Bajjuri <praneeth@ti.com> | |
Wed, 21 Aug 2019 20:14:45 +0000 (15:14 -0500) | ||
commit | a159904323b3a4e7bb2a968ef34201ecb741cc2e | |
tree | 4f01316550a360e098b31a1166f335a0b1ca8886 | tree | snapshot (tar.xz tar.gz zip) |
parent | 4b03e692d337eafd0b1254bd30fa235f103409a2 | commit | diff |
graphics: hwc2on1adapter: Buffer hotplug event after display creation
If the HWC2 hotplug callback has not registered we buffer this event then
return, but do so too early leading to no display being created. Buffer
the event and return after creating the display so when the callback
is registered we have a display for this hotplug event.
If the external display is already attached at the boot time our HWC1
will send the hotplug event before the displays have registered in the
HWC2 layer, causing the event to get missed.
The result is just a blank external display.
Change-Id: I134b5473e545b3bc238e8c0f10d0e5fe2831222c
Signed-off-by: Andrew F. Davis <afd@ti.com>
Tested-by: Vishal Mahaveer <vishalm@ti.com>
If the HWC2 hotplug callback has not registered we buffer this event then
return, but do so too early leading to no display being created. Buffer
the event and return after creating the display so when the callback
is registered we have a display for this hotplug event.
If the external display is already attached at the boot time our HWC1
will send the hotplug event before the displays have registered in the
HWC2 layer, causing the event to get missed.
The result is just a blank external display.
Change-Id: I134b5473e545b3bc238e8c0f10d0e5fe2831222c
Signed-off-by: Andrew F. Davis <afd@ti.com>
Tested-by: Vishal Mahaveer <vishalm@ti.com>
graphics/composer/2.1/utils/hwc2on1adapter/HWC2On1Adapter.cpp | diff | blob | history |