From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wu Fengguang Subject: Re: [PATCH] drm/i915: add an "off-dvi" HDMI audio mode Date: Wed, 11 Jan 2012 15:01:40 +0800 Message-ID: <20120111070139.GA12168@localhost> References: <1325272048-28597-1-git-send-email-aarcange@redhat.com> <20111231012837.GA6606@localhost> <20111231122010.GA4172@redhat.com> <20111231124952.GA8125@localhost> <20111231131113.GC4172@redhat.com> <20120106032640.GA6171@localhost> <20120106070833.2fcaee82@jbarnes-desktop> <20120107133919.GB21128@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga14.intel.com (mga14.intel.com [143.182.124.37]) by gabe.freedesktop.org (Postfix) with ESMTP id 1E6819E733 for ; Tue, 10 Jan 2012 23:01:42 -0800 (PST) Content-Disposition: inline In-Reply-To: <20120107133919.GB21128@localhost> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Jesse Barnes Cc: Andrea Arcangeli , intel-gfx@lists.freedesktop.org, Wang Zhenyu List-Id: intel-gfx@lists.freedesktop.org On Sat, Jan 07, 2012 at 09:39:19PM +0800, Wu Fengguang wrote: > On Fri, Jan 06, 2012 at 07:08:33AM -0800, Jesse Barnes wrote: > > On Fri, 6 Jan 2012 11:26:40 +0800 > > Wu Fengguang wrote: > > > > > Andrea, > > > > > > Would you test this patch at convenient time? > > > > > > Thanks, > > > Fengguang > > > > > > --- > > > Subject: drm/i915: add an "off-dvi" HDMI audio mode > > > Date: Fri Jan 06 11:04:00 CST 2012 > > > > > > When HDMI-DVI converter is used, it's not only necessary to turn off > > > audio, but also to disable HDMI_MODE_SELECT and video infoframe. Since > > > the DVI mode is mainly tied to audio functionality from end user POV, > > > add a new "off-dvi" audio mode: > > > > > > xrandr --output HDMI1 --set audio off-dvi > > > > > > Reported-by: Andrea Arcangeli > > > Signed-off-by: Wu Fengguang > > > --- > > > > My only complaint here is that off-dvi isn't an intuitive name. We > > don't have any better way of detecting an HDMI->DVI converter with > > other EDID bits perhaps? > > We have > > intel_hdmi->has_hdmi_sink = drm_detect_hdmi_monitor(edid); > > which _should_ auto detect HDMI/DVI connections. > > I guess Andrea ran into problem with that due to broken EDID. Anyway > I'll try to test if that drm_detect_hdmi_monitor() will ever work for > the HDMI/DVI monitors in my lab. I verified that drm_detect_hdmi_monitor() at least works fine for me when HDMI<>DVI converter is used: [ 12.567158] [drm:intel_hdmi_detect], has_hdmi_sink=0 has_audio=0 force_audio=0 So it's probably Andrea's monitor sending the wrong EDID. Thanks, Fengguang