Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Oct 2012 22:11:51 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r242417 - head/sys/dev/sound/pci/hda
Message-ID:  <201210312211.q9VMBpHp044373@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Wed Oct 31 22:11:51 2012
New Revision: 242417
URL: http://svn.freebsd.org/changeset/base/242417

Log:
  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.
  
  Tested by:	Big Yuuta <init.py@gmail.com>
  MFC after:	2 weeks

Modified:
  head/sys/dev/sound/pci/hda/hdaa_patches.c

Modified: head/sys/dev/sound/pci/hda/hdaa_patches.c
==============================================================================
--- head/sys/dev/sound/pci/hda/hdaa_patches.c	Wed Oct 31 22:02:48 2012	(r242416)
+++ head/sys/dev/sound/pci/hda/hdaa_patches.c	Wed Oct 31 22:11:51 2012	(r242417)
@@ -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?201210312211.q9VMBpHp044373>