From bf318c6aa27f42c2cd7fe186582d030344a4cf66 Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Tue, 24 Jan 2012 22:40:24 +0000 Subject: [PATCH] In addition to r230511, allow 8 channel AC3 formats. --- sys/dev/sound/pci/hda/hdaa.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/sound/pci/hda/hdaa.c b/sys/dev/sound/pci/hda/hdaa.c index 46f4704bc982..aee074019f48 100644 --- a/sys/dev/sound/pci/hda/hdaa.c +++ b/sys/dev/sound/pci/hda/hdaa.c @@ -4979,6 +4979,10 @@ hdaa_pcmchannel_setup(struct hdaa_chan *ch) } if (HDA_PARAM_SUPP_STREAM_FORMATS_AC3(fmtcap)) { ch->fmtlist[i++] = SND_FORMAT(AFMT_AC3, 2, 0); + if (channels >= 8) { + ch->fmtlist[i++] = SND_FORMAT(AFMT_AC3, 8, 0); + ch->fmtlist[i++] = SND_FORMAT(AFMT_AC3, 8, 1); + } } ch->fmtlist[i] = 0; i = 0;