From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wu Fengguang Subject: Re: [PATCH 3/3] drm/i915: hot removal notification to HDMI audio driver Date: Fri, 18 Nov 2011 17:37:40 +0800 Message-ID: <20111118093740.GA2799@localhost> References: <20111116132004.299754849@intel.com> <20111116132221.374839261@intel.com> <20111116133548.GA23804@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20111116133548.GA23804@localhost> Sender: linux-kernel-owner@vger.kernel.org To: Keith Packard Cc: Takashi Iwai , "Wang, Zhenyu Z" , "dri-devel@lists.freedesktop.org" , "intel-gfx@lists.freedesktop.org" , LKML List-Id: intel-gfx@lists.freedesktop.org Update: Just tested DP and its working! However, it's found that hot plug under X won't work... The previous hot plug tests are done in KMS console which are all fine: on re-inserting the monitor, ->mode_set will be called and HDMI/DP audio will be re-enabled and ELD be transfered. However when in X, ->mode_set won't be called at all. Only ->get_modes and ->detect are called... Thanks, Fengguang On Wed, Nov 16, 2011 at 09:35:48PM +0800, Wu Fengguang wrote: > Sorry forgot to remove this left over chunk... > > Note that I've not yet got the hardware to test the DisplayPort part > of this patch, but should be able to do so this week. > > > --- linux.orig/drivers/gpu/drm/i915/intel_drv.h 2011-11-16 20:54:27.000000000 +0800 > > +++ linux/drivers/gpu/drm/i915/intel_drv.h 2011-11-16 21:19:42.000000000 +0800 > > @@ -382,6 +382,10 @@ extern void intel_fb_restore_mode(struct > > extern void intel_init_clock_gating(struct drm_device *dev); > > extern void intel_write_eld(struct drm_encoder *encoder, > > struct drm_display_mode *mode); > > +extern void intel_hotplug_status(struct drm_device *dev, > > + struct drm_connector *connector, > > + struct drm_crtc *crtc, > > + enum drm_connector_status status); > > extern void intel_cpt_verify_modeset(struct drm_device *dev, int pipe); > > > > #endif /* __INTEL_DRV_H__ */