[linux-audio-user] Is there no way to split L+R channels for ALSA applications?

Clemens Ladisch clemens at ladisch.de
Thu Apr 29 05:32:49 EDT 2004


Malcolm Baldridge wrote:
> a way to specify just one channel of a given output device, i.e.,
> just the LEFT channel or the RIGHT channel of the main PCM output
> device.

pcm.left {
	type plug
	slave.pcm "hw:0"
	slave.channels 2
	ttable.0.0 1
}

pcm.right {
	type plug
	slave.pcm "hw:0"
	slave.channels 2
	ttable.0.1 1
}


If you want to use both devices at the same time, you have to use the
dshare plugin:

pcm.shared_left {
	type plug
	slave.pcm {
		type dshare
		ipc_key 123456
		slave.pcm "hw:0"
		slave.channels 2
		bindings.0 0
	}
}

pcm.shared_right {
	type plug
	slave.pcm {
		type dshare
		ipc_key 123456
		slave.pcm "hw:0"
		slave.channels 2
		bindings.0 1
	}
}


HTH
Clemens





More information about the Linux-audio-user mailing list