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

This commit is contained in:
Alexander Motin 2012-01-28 09:24:57 +00:00
parent c0c8fcb92d
commit f4cb8238fd

View File

@ -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,