From owner-svn-src-head@FreeBSD.ORG Fri Oct 24 19:29:08 2008 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7E618106573D; Fri, 24 Oct 2008 19:29:08 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 1E28E8FC29; Fri, 24 Oct 2008 19:29:08 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id m9OJT8PK097347; Fri, 24 Oct 2008 19:29:08 GMT (envelope-from mav@svn.freebsd.org) Received: (from mav@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id m9OJT74g097346; Fri, 24 Oct 2008 19:29:07 GMT (envelope-from mav@svn.freebsd.org) Message-Id: <200810241929.m9OJT74g097346@svn.freebsd.org> From: Alexander Motin Date: Fri, 24 Oct 2008 19:29:07 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r184230 - head/sys/dev/sound/pci/hda X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Oct 2008 19:29:08 -0000 Author: mav Date: Fri Oct 24 19:29:07 2008 New Revision: 184230 URL: http://svn.freebsd.org/changeset/base/184230 Log: Add some special handeling for AD1981HD codec. It has very unusual design with several points unappropriate for the present parser. This patch disables input-to-output analog monitoring but instead fixes recording. Tested by Tobias Grosser on ThinkPad T61p. Modified: head/sys/dev/sound/pci/hda/hdac.c Modified: head/sys/dev/sound/pci/hda/hdac.c ============================================================================== --- head/sys/dev/sound/pci/hda/hdac.c Fri Oct 24 18:57:11 2008 (r184229) +++ head/sys/dev/sound/pci/hda/hdac.c Fri Oct 24 19:29:07 2008 (r184230) @@ -4510,6 +4510,24 @@ hdac_vendor_patch_parse(struct hdac_devi ~HDA_QUIRK_EAPDINV; } break; + case HDA_CODEC_AD1981HD: + /* + * This codec has very unusual design with several + * points unappropriate for the present parser. + */ + /* Disable recording from mono playback mix. */ + w = hdac_widget_get(devinfo, 21); + if (w != NULL) + w->connsenable[3] = 0; + /* Disable rear to front mic mixer, use separately. */ + w = hdac_widget_get(devinfo, 31); + if (w != NULL) + w->enable = 0; + /* Disable playback mixer, use direct bypass. */ + w = hdac_widget_get(devinfo, 14); + if (w != NULL) + w->enable = 0; + break; } }