Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Nov 2012 06:03:15 +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-9@freebsd.org
Subject:   svn commit: r243064 - stable/9/sys/dev/sound/pci/hda
Message-ID:  <201211150603.qAF63Fxq030441@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Thu Nov 15 06:03:14 2012
New Revision: 243064
URL: http://svnweb.freebsd.org/changeset/base/243064

Log:
  MFC r242417:
  ASUS EeePC 1001px has strange variant of ALC269 CODEC, that mutes speaker
  if unused in that configuration mixer at NID 15 is muted.  Probably CODEC
  incorrectly reports its internal connections.  Hide that muter from the
  driver to avoid muting and make built-in speaker work.
  
  There are several different CODECs sharing this ID and I have not enough
  information about them and the bug to implement more universal solution.

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

Modified: stable/9/sys/dev/sound/pci/hda/hdaa_patches.c
==============================================================================
--- stable/9/sys/dev/sound/pci/hda/hdaa_patches.c	Thu Nov 15 05:58:37 2012	(r243063)
+++ stable/9/sys/dev/sound/pci/hda/hdaa_patches.c	Thu Nov 15 06:03:14 2012	(r243064)
@@ -541,6 +541,21 @@ hdaa_patch(struct hdaa_devinfo *devinfo)
 		if (w != NULL)
 			w->connsenable[0] = 0;
 		break;
+	case HDA_CODEC_ALC269:
+		/*
+		 * ASUS EeePC 1001px has strange variant of ALC269 CODEC,
+		 * that mutes speaker if unused mixer at NID 15 is muted.
+		 * Probably CODEC incorrectly reports internal connections.
+		 * Hide that muter from the driver.  There are several CODECs
+		 * sharing this ID and I have not enough information about
+		 * them to implement more universal solution.
+		 */
+		if (subid == 0x84371043) {
+			w = hdaa_widget_get(devinfo, 15);
+			if (w != NULL)
+				w->param.inamp_cap = 0;
+		}
+		break;
 	case HDA_CODEC_CX20582:
 	case HDA_CODEC_CX20583:
 	case HDA_CODEC_CX20584:



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