Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jan 2012 11:45:50 +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: r230537 - head/sys/dev/sound/pcm
Message-ID:  <201201251145.q0PBjoIv023472@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Wed Jan 25 11:45:50 2012
New Revision: 230537
URL: http://svn.freebsd.org/changeset/base/230537

Log:
  Allow PASSTHROUGH (AC3) to have more then 2 channels.
  8 channels can be used to get more then 6.144Mbps bandwidth.

Modified:
  head/sys/dev/sound/pcm/channel.c

Modified: head/sys/dev/sound/pcm/channel.c
==============================================================================
--- head/sys/dev/sound/pcm/channel.c	Wed Jan 25 11:28:18 2012	(r230536)
+++ head/sys/dev/sound/pcm/channel.c	Wed Jan 25 11:45:50 2012	(r230537)
@@ -2000,9 +2000,10 @@ chn_setformat(struct pcm_channel *c, uin
 	int ret;
 
 	/* XXX force stereo */
-	if (format & AFMT_PASSTHROUGH)
+	if ((format & AFMT_PASSTHROUGH) && AFMT_CHANNEL(format) < 2) {
 		format = SND_FORMAT(format, AFMT_PASSTHROUGH_CHANNEL,
 		    AFMT_PASSTHROUGH_EXTCHANNEL);
+	}
 
 	oldformat = c->format;
 	oldspeed = c->speed;



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