Skip to contentSkip to conversation

Topics around surround

DISCUSSION Takashi Iwai 1 participant 1 message Apr 7, 2006

lore
Share & tools
lore
#0 lore raw

Hi,

in the latest CVS version, there are a few new topics regarding the better surround experience. I'd like to summarize below.

* Upmix plugin

It's a plug to upmix to 4 or 6-channel stream.
Almost the same functionality can be achieved via a route plugin with a proper ttable, but this one is pretty easier to use. The upmix plugin accpept inputs from 1 to 6 channels, and reroutes/processes automagically.

The setup is like:

	pcm.upmix51 {
		type plug
		slave.pcm {
			type upmix
			slave.pcm "surround51"
		}
	}

and you can use it:

% aplay -Dupmix51 some-2ch.wav

See alsa-plugins/doc/upmix.txt for details.

Using this together with dmix is doable but still complicated. I'll try to implement easier setup in the next ALSA version.

* Vdownmix plugin

It's a plugin to downmix from 4 or 6 channels to 2 channels, with a bit better sourrund effect. It's good only for headphone output, not for speaker.

See alsa-plugins/doc/vdownmix.txt for example settings.

* DPL and DPL-II

The encoding from 4-6 channel surround to 2-channel stereo for DPL and DPL-II can be done via the PCM definition in pcm/dpl.conf.

For example, add the following to ~/.asoundrc:

	<confdir:pcm/dpl.conf>
	pcm.updpl {
		type plug
		slave.pcm {
			type upmix
			slave.pcm "dpl:default"
			channels 6
		}
	}

This will upmix inputs to 6-channels, encode to 2-channel and then output to the default PCM. When you have a DPL-capable receiver, the signal will be expanded to L, C, R and S. So, it'd be nice for showing a DVD, for example.

You can replace "surround51" or "surround40" with this PCM if you want, by adding the following to ~/.asoundrc:

	pcm.!surround51 "updpl"
	pcm.!surround40 "updpl"

For DPL-II, use "dpl2" instead of "dpl" (the config file is identical)

	<confdir:pcm/dpl.conf>
	pcm.updpl2 {
		type plug
		slave.pcm {
			type upmix
			slave.pcm "dpl2:default"
			channels 6
		}
	}

I've not tested dpl2, so let me know whether it works or not, if you have a receiver. You can test with speaker-test:

% speaker-test -c6 -Dupdpl2 -tw

Takashi

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642