Add channels parameter to surround40/51 definitions

Add channels parameter to surround40/51 definitions for drivers
using a single device.
This commit is contained in:
Takashi Iwai 2006-03-17 18:14:23 +00:00
parent 90112fff1e
commit eecfed7569
12 changed files with 108 additions and 4 deletions

View file

@ -85,6 +85,7 @@ CMI8738-MC8.pcm.surround40.0 {
type hw
card $CARD
device 1
channels 4
}
hooks.0 {
type ctl_elems
@ -109,11 +110,71 @@ CMI8738-MC8.pcm.surround40.0 {
<confdir:pcm/surround50.conf>
<confdir:pcm/surround51.conf>
CMI8738-MC8.pcm.surround51.0 "cards.CMI8738-MC8.pcm.surround40.0"
CMI8738-MC8.pcm.surround51.0 {
@args [ CARD ]
@args.CARD {
type string
}
type softvol
slave.pcm {
type hooks
slave.pcm {
type hw
card $CARD
device 1
channels 6
}
hooks.0 {
type ctl_elems
hook_args [
{
name "Four Channel Mode"
lock true
preserve true
value false
}
]
}
}
control {
name "PCM Playback Volume"
card $CARD
}
}
<confdir:pcm/surround71.conf>
CMI8738-MC8.pcm.surround71.0 "cards.CMI8738-MC8.pcm.surround40.0"
CMI8738-MC8.pcm.surround71.0 {
@args [ CARD ]
@args.CARD {
type string
}
type softvol
slave.pcm {
type hooks
slave.pcm {
type hw
card $CARD
device 1
channels 8
}
hooks.0 {
type ctl_elems
hook_args [
{
name "Four Channel Mode"
lock true
preserve true
value false
}
]
}
}
control {
name "PCM Playback Volume"
card $CARD
}
}
<confdir:pcm/iec958.conf>