summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2012-01-28 09:24:57 +0000
committermav <mav@FreeBSD.org>2012-01-28 09:24:57 +0000
commit5f793637612e5a3dd0832cfda15f2a9d65ac3892 (patch)
tree64259e361819bf902d96b9a642f50447ac338373
parent6779d40f21f89faf8e3ba5be6039b5afdb74c635 (diff)
downloadFreeBSD-src-5f793637612e5a3dd0832cfda15f2a9d65ac3892.zip
FreeBSD-src-5f793637612e5a3dd0832cfda15f2a9d65ac3892.tar.gz
Fix HBR enabling condition. cchs is from 0 to 7, not from 1 to 8.
-rw-r--r--sys/dev/sound/pci/hda/hdaa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pci/hda/hdaa.c b/sys/dev/sound/pci/hda/hdaa.c
index 4b8d915..82a6676 100644
--- a/sys/dev/sound/pci/hda/hdaa.c
+++ b/sys/dev/sound/pci/hda/hdaa.c
@@ -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,
OpenPOWER on IntegriCloud