Commit 9a148a96 authored by Libin Yang's avatar Libin Yang Committed by Jani Nikula
parent c6385c94
...@@ -2877,6 +2877,20 @@ static void intel_dp_info(struct seq_file *m, ...@@ -2877,6 +2877,20 @@ static void intel_dp_info(struct seq_file *m,
&intel_dp->aux); &intel_dp->aux);
} }
static void intel_dp_mst_info(struct seq_file *m,
struct intel_connector *intel_connector)
{
struct intel_encoder *intel_encoder = intel_connector->encoder;
struct intel_dp_mst_encoder *intel_mst =
enc_to_mst(&intel_encoder->base);
struct intel_digital_port *intel_dig_port = intel_mst->primary;
struct intel_dp *intel_dp = &intel_dig_port->dp;
bool has_audio = drm_dp_mst_port_has_audio(&intel_dp->mst_mgr,
intel_connector->port);
seq_printf(m, "\taudio support: %s\n", yesno(has_audio));
}
static void intel_hdmi_info(struct seq_file *m, static void intel_hdmi_info(struct seq_file *m,
struct intel_connector *intel_connector) struct intel_connector *intel_connector)
{ {
...@@ -2919,6 +2933,9 @@ static void intel_connector_info(struct seq_file *m, ...@@ -2919,6 +2933,9 @@ static void intel_connector_info(struct seq_file *m,
switch (connector->connector_type) { switch (connector->connector_type) {
case DRM_MODE_CONNECTOR_DisplayPort: case DRM_MODE_CONNECTOR_DisplayPort:
case DRM_MODE_CONNECTOR_eDP: case DRM_MODE_CONNECTOR_eDP:
if (intel_encoder->type == INTEL_OUTPUT_DP_MST)
intel_dp_mst_info(m, intel_connector);
else
intel_dp_info(m, intel_connector); intel_dp_info(m, intel_connector);
break; break;
case DRM_MODE_CONNECTOR_LVDS: case DRM_MODE_CONNECTOR_LVDS:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment