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

Alexander Motin mav at FreeBSD.org
Tue Jan 24 22:40:25 UTC 2012


Author: mav
Date: Tue Jan 24 22:40:24 2012
New Revision: 230513
URL: http://svn.freebsd.org/changeset/base/230513

Log:
  In addition to r230511, allow 8 channel AC3 formats.

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	Tue Jan 24 21:33:34 2012	(r230512)
+++ head/sys/dev/sound/pci/hda/hdaa.c	Tue Jan 24 22:40:24 2012	(r230513)
@@ -4979,6 +4979,10 @@ hdaa_pcmchannel_setup(struct hdaa_chan *
 		}
 		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;


More information about the svn-src-all mailing list