OSDN Git Service

drm_hwcomposer: support more connector types
authorYongqin Liu <yongqin.liu@linaro.org>
Sun, 28 Nov 2021 00:46:30 +0000 (08:46 +0800)
committerYongqin Liu <yongqin.liu@linaro.org>
Mon, 20 Dec 2021 13:09:22 +0000 (21:09 +0800)
commitcdee4f2b3d561e457b95a94dd69ffca2d8e27385
tree378849aa3012461635e90fb6f253f08ebcb190d7
parent720f65224fb0ceaaee8581c4db1e55a79669c494
drm_hwcomposer: support more connector types

according to the drm_connector_enum_list defined
in the kernel file drivers/gpu/drm/drm_connector.c

Otherwise for the new connector type, the connector
name will be "None" to be printed  in the logcat, like this:
    12-13 05:38:06.263   383   383 I hwc-backend: Backend 'generic' for 'None' and driver 'omapdrm' was successfully set
with this change, it will be fixed with the connector type like this:
    12-13 06:01:57.672   342   342 I hwc-backend: Backend 'generic' for 'DPI-1' and driver 'omapdrm' was successfully set

Also updated the internal() and external() functions
to make the newly added SPI and USB are valid types

Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
drm/DrmConnector.cpp