drm/i915/dp: Probe branch/sink OUIs
Signed-off-by: Adam Jackson <ajax@redhat.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
de44d97193
commit
0d19832853
1 changed files with 19 additions and 0 deletions
|
@ -1961,6 +1961,23 @@ intel_dp_get_dpcd(struct intel_dp *intel_dp)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
intel_dp_probe_oui(struct intel_dp *intel_dp)
|
||||||
|
{
|
||||||
|
u8 buf[3];
|
||||||
|
|
||||||
|
if (!(intel_dp->dpcd[DP_DOWN_STREAM_PORT_COUNT] & DP_OUI_SUPPORT))
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (intel_dp_aux_native_read_retry(intel_dp, DP_SINK_OUI, buf, 3))
|
||||||
|
DRM_DEBUG_KMS("Sink OUI: %02hx%02hx%02hx\n",
|
||||||
|
buf[0], buf[1], buf[2]);
|
||||||
|
|
||||||
|
if (intel_dp_aux_native_read_retry(intel_dp, DP_BRANCH_OUI, buf, 3))
|
||||||
|
DRM_DEBUG_KMS("Branch OUI: %02hx%02hx%02hx\n",
|
||||||
|
buf[0], buf[1], buf[2]);
|
||||||
|
}
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
intel_dp_get_sink_irq(struct intel_dp *intel_dp, u8 *sink_irq_vector)
|
intel_dp_get_sink_irq(struct intel_dp *intel_dp, u8 *sink_irq_vector)
|
||||||
{
|
{
|
||||||
|
@ -2144,6 +2161,8 @@ intel_dp_detect(struct drm_connector *connector, bool force)
|
||||||
if (status != connector_status_connected)
|
if (status != connector_status_connected)
|
||||||
return status;
|
return status;
|
||||||
|
|
||||||
|
intel_dp_probe_oui(intel_dp);
|
||||||
|
|
||||||
if (intel_dp->force_audio != HDMI_AUDIO_AUTO) {
|
if (intel_dp->force_audio != HDMI_AUDIO_AUTO) {
|
||||||
intel_dp->has_audio = (intel_dp->force_audio == HDMI_AUDIO_ON);
|
intel_dp->has_audio = (intel_dp->force_audio == HDMI_AUDIO_ON);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue