Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jan 2012 22:40:25 +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: r230513 - head/sys/dev/sound/pci/hda
Message-ID:  <201201242240.q0OMePCL095432@svn.freebsd.org>

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



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