Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jan 2012 09:24:58 +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: r230641 - head/sys/dev/sound/pci/hda
Message-ID:  <201201280924.q0S9OwXA081757@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201280924.q0S9OwXA081757>