[PATCH] drm/nouveau/hdmi: Fix chipset check for HDMI sound

Alexander Stein alexander.stein at informatik.tu-chemnitz.de
Sun Apr 29 11:12:56 PDT 2012


NVIDIA Corporation C77 [GeForce 8300] (rev a2) has chipset 0xaa which
supports HDMI Audio.

Signed-off-by: Alexander Stein <alexander.stein at informatik.tu-chemnitz.de>
---
 drivers/gpu/drm/nouveau/nouveau_hdmi.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/nouveau_hdmi.c b/drivers/gpu/drm/nouveau/nouveau_hdmi.c
index 59ea1c1..2feafaa 100644
--- a/drivers/gpu/drm/nouveau/nouveau_hdmi.c
+++ b/drivers/gpu/drm/nouveau/nouveau_hdmi.c
@@ -32,7 +32,9 @@ static bool
 hdmi_sor(struct drm_encoder *encoder)
 {
 	struct drm_nouveau_private *dev_priv = encoder->dev->dev_private;
-	if (dev_priv->chipset < 0xa3)
+	int chipset = dev_priv->chipset;
+
+	if (chipset < 0xa3 || chipset == 0xaa || chipset == 0xa)
 		return false;
 	return true;
 }
-- 
1.7.8.6



More information about the dri-devel mailing list