[Cbe-oss-dev] mixer unavailable in latest git kernels

Masakazu Mokuno mokuno at sm.sony.co.jp
Thu Jul 19 21:22:11 EST 2007


	Hi

On Wed, 18 Jul 2007 22:10:28 +0200
weltall <weltall at consoleworld.org> wrote:

> git://git.kernel.org/pub/scm/linux/kernel/git/geoff/ps3-linux.git

The current PS3 sound driver in this repo has no builtin software
attenuator.

For the hardwares which has no hardware attenuator, these drivers are supposed
to use softvol plugin in ALSA framework.

The following is a sample configuration file for the PS3 sound driver.
Please place it as /etc/alsa/cards/PS3.conf (the pathname depends on
your distro).

regards

--

#
# Configuration for PS3
#

<confdir:pcm/front.conf>

PS3.pcm.front.0 {
	@args [ CARD ]
	@args.CARD {
		type string
	}
	type softvol
	slave.pcm {
		type hw
		card $CARD
		device 0
	}
	control {
		name "PCM Playback Volume"
		card $CARD
	}
}	

# default with dmix+softvol
PS3.pcm.default {
	@args [ CARD ]
	@args.CARD {
		type string
	}
	type asym
	playback.pcm {
		type plug
		slave.pcm {
			type softvol
			slave.pcm {
				@func concat
				strings [ "dmix:CARD=" $CARD ",FORMAT=S16" ]
			}
			control {
				name "PCM Playback Volume"
				card $CARD
			}
		}
	}
}


--
Masakazu MOKUNO




More information about the cbe-oss-dev mailing list