svn commit: r230641 - head/sys/dev/sound/pci/hda

Alexander Motin mav at FreeBSD.org
Sat Jan 28 09:24:59 UTC 2012


Author: mav
Date: Sat Jan 28 09:24:57 2012
New Revision: 230641
URL: http://svn.freebsd.org/changeset/base/230641

Log:
  Fix HBR enabling condition. cchs is from 0 to 7, not from 1 to 8.

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

Modified: head/sys/dev/sound/pci/hda/hdaa.c
==============================================================================
--- head/sys/dev/sound/pci/hda/hdaa.c	Sat Jan 28 02:52:22 2012	(r230640)
+++ head/sys/dev/sound/pci/hda/hdaa.c	Sat Jan 28 09:24:57 2012	(r230641)
@@ -1564,7 +1564,7 @@ hdaa_audio_setup(struct hdaa_chan *ch)
 			    HDA_PARAM_PIN_CAP_HBR(wp->wclass.pin.cap)) {
 				wp->wclass.pin.ctrl &=
 				    ~HDA_CMD_SET_PIN_WIDGET_CTRL_VREF_ENABLE_MASK;
-				if ((ch->fmt & AFMT_AC3) && (cchn == 8))
+				if ((ch->fmt & AFMT_AC3) && (cchn == 7))
 					wp->wclass.pin.ctrl |= 0x03;
 				hda_command(ch->devinfo->dev,
 				    HDA_CMD_SET_PIN_WIDGET_CTRL(0, nid,


More information about the svn-src-all mailing list