Date: Fri, 24 Oct 2008 19:29:07 +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: r184230 - head/sys/dev/sound/pci/hda Message-ID: <200810241929.m9OJT74g097346@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810241929.m9OJT74g097346>