ANDROID: GKI: drm: Add drm_dp_mst_has_fec accessor function

Resolves an abi diff.

Bug: 152417756
Signed-off-by: Alistair Delva <adelva@google.com>
Change-Id: Ifcd858c35cb52cd2a3024dcb456e79f6214ab25a
This commit is contained in:
Alistair Delva 2020-04-17 11:25:14 -07:00
parent b572376bed
commit 0c5afac321
2 changed files with 18 additions and 0 deletions

View file

@ -2594,6 +2594,20 @@ bool drm_dp_mst_port_has_audio(struct drm_dp_mst_topology_mgr *mgr,
}
EXPORT_SYMBOL(drm_dp_mst_port_has_audio);
bool drm_dp_mst_has_fec(struct drm_dp_mst_topology_mgr *mgr,
struct drm_dp_mst_port *port)
{
bool ret = false;
port = drm_dp_get_validated_port_ref(mgr, port);
if (!port)
return ret;
ret = port->fec_capable;
drm_dp_put_port(port);
return ret;
}
EXPORT_SYMBOL_GPL(drm_dp_mst_has_fec);
/**
* drm_dp_mst_get_edid() - get EDID for an MST port
* @connector: toplevel connector to get EDID for

View file

@ -606,6 +606,10 @@ enum drm_connector_status drm_dp_mst_detect_port(struct drm_connector *connector
bool drm_dp_mst_port_has_audio(struct drm_dp_mst_topology_mgr *mgr,
struct drm_dp_mst_port *port);
bool drm_dp_mst_has_fec(struct drm_dp_mst_topology_mgr *mgr,
struct drm_dp_mst_port *port);
struct edid *drm_dp_mst_get_edid(struct drm_connector *connector, struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_port *port);