diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2011-12-09 07:42:21 -0500 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-12-19 22:15:48 -0500 |
commit | 832afda6a7d7235ef0e09f4ec46736861540da6d (patch) | |
tree | b9b529234abe5fa9b90bb667d061ef1ef0abf81e | |
parent | 2deed761188d7480eb5f7efbfe7aa77f09322ed8 (diff) |
drm/i915: DisplayPort hot remove notification to audio driver
On DP monitor hot remove, clear DP_AUDIO_OUTPUT_ENABLE accordingly,
so that the audio driver will receive hot plug events and take action
to refresh its device state and ELD contents.
Note that the DP_AUDIO_OUTPUT_ENABLE bit may be enabled or disabled
only when the link training is complete and set to "Normal".
Tested OK for both hot plug/remove and DPMS on/off.
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | drivers/gpu/drm/i915/intel_dp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 92b041b66e49..db3b461ad412 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c | |||
@@ -1926,6 +1926,7 @@ intel_dp_link_down(struct intel_dp *intel_dp) | |||
1926 | intel_wait_for_vblank(dev, to_intel_crtc(crtc)->pipe); | 1926 | intel_wait_for_vblank(dev, to_intel_crtc(crtc)->pipe); |
1927 | } | 1927 | } |
1928 | 1928 | ||
1929 | DP &= ~DP_AUDIO_OUTPUT_ENABLE; | ||
1929 | I915_WRITE(intel_dp->output_reg, DP & ~DP_PORT_EN); | 1930 | I915_WRITE(intel_dp->output_reg, DP & ~DP_PORT_EN); |
1930 | POSTING_READ(intel_dp->output_reg); | 1931 | POSTING_READ(intel_dp->output_reg); |
1931 | msleep(intel_dp->panel_power_down_delay); | 1932 | msleep(intel_dp->panel_power_down_delay); |