From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Zhang Subject: Re: [PATCH] drm: tegra: check HDMI sink capability Date: Tue, 18 Dec 2012 16:21:39 +0800 Message-ID: <50D02793.2020900@gmail.com> References: <1355767163-5423-1-git-send-email-dev@lynxeye.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <1355767163-5423-1-git-send-email-dev-8ppwABl0HbeELgA04lAiVw@public.gmane.org> Sender: linux-tegra-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Lucas Stach Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Thierry Reding , Stephen Warren List-Id: linux-tegra@vger.kernel.org Thanks. Honestly don't know drm has this function... Mark On 12/18/2012 01:59 AM, Lucas Stach wrote: > Check if sink is HDMI capable when enabling an output. This disables > HDMI audio/infoframes if we are talking to a plain DVI sink. All thin= gs > except this check are already in place. >=20 > Signed-off-by: Lucas Stach > --- > drivers/gpu/drm/tegra/hdmi.c | 3 +++ > 1 Datei ge=C3=A4ndert, 3 Zeilen hinzugef=C3=BCgt(+) >=20 > diff --git a/drivers/gpu/drm/tegra/hdmi.c b/drivers/gpu/drm/tegra/hdm= i.c > index ab40164..32ea7d4 100644 > --- a/drivers/gpu/drm/tegra/hdmi.c > +++ b/drivers/gpu/drm/tegra/hdmi.c > @@ -673,6 +673,9 @@ static int tegra_output_hdmi_enable(struct tegra_= output *output) > usleep_range(1000, 2000); > tegra_periph_reset_deassert(hdmi->clk); > =20 > + /* if the connected sink is not HDMI capable fall back to plain DVI= */ > + hdmi->dvi =3D !drm_detect_hdmi_monitor((struct edid *)output->edid)= ; > + > tegra_dc_writel(dc, VSYNC_H_POSITION(1), > DC_DISP_DISP_TIMING_OPTIONS); > tegra_dc_writel(dc, DITHER_CONTROL_DISABLE | BASE_COLOR_SIZE888, >=20