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;
        }
 }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to