sdm: hwc2: Add support for HDMI as primary.
- Create external display if HDMI is already
connected on boot.
- Wait for hotplug connect event if HDMI is not
connected on boot.
- Notify surfaceflinger only once when primary
display is created for first time.
- Destroy and recreate SDM external display on
successive disconnect/connect. Do not notify
surfaceflinger any subsequent hotplug events.
- Add null display implementation to route any
incoming calls from surfaceflinger when display
is disconnected.
CRs-Fixed: 2037067
Change-Id: I649756452d714e538c313cf80c0144934ad494f9
9 files changed