Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jul 2012 15:34:04 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r238132 - stable/8/sys/dev/sound/pci/hda
Message-ID:  <201207051534.q65FY4Xt081213@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Thu Jul  5 15:34:04 2012
New Revision: 238132
URL: http://svn.freebsd.org/changeset/base/238132

Log:
  MFC r238011:
  Restore GPIO config quirks handling, lost during last big refactoring.
  This fixes sound from speakers on some laptops, including MacBook Pro.

Modified:
  stable/8/sys/dev/sound/pci/hda/hdaa_patches.c
Directory Properties:
  stable/8/sys/   (props changed)

Modified: stable/8/sys/dev/sound/pci/hda/hdaa_patches.c
==============================================================================
--- stable/8/sys/dev/sound/pci/hda/hdaa_patches.c	Thu Jul  5 15:32:31 2012	(r238131)
+++ stable/8/sys/dev/sound/pci/hda/hdaa_patches.c	Thu Jul  5 15:34:04 2012	(r238132)
@@ -401,12 +401,9 @@ hdaa_patch(struct hdaa_devinfo *devinfo)
 		if (!(HDA_DEV_MATCH(hdac_quirks[i].model, subid) &&
 		    HDA_DEV_MATCH(hdac_quirks[i].id, id)))
 			continue;
-		if (hdac_quirks[i].set != 0)
-			devinfo->quirks |=
-			    hdac_quirks[i].set;
-		if (hdac_quirks[i].unset != 0)
-			devinfo->quirks &=
-			    ~(hdac_quirks[i].unset);
+		devinfo->quirks |= hdac_quirks[i].set;
+		devinfo->quirks &= ~(hdac_quirks[i].unset);
+		devinfo->gpio = hdac_quirks[i].gpio;
 	}
 
 	/* Apply per-widget patch. */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207051534.q65FY4Xt081213>