- turn on the jack sharing switches automatically for surround pcms.

- fixed the device number of hooked controls (all zero).
- use route plugin instead of multi plugin for remapping of channels.
This commit is contained in:
Takashi Iwai 2004-03-03 18:18:34 +00:00
parent 0ecc03111d
commit eaa016554c
5 changed files with 282 additions and 50 deletions

View file

@ -16,7 +16,37 @@ NFORCE.pcm.front.0 {
<confdir:pcm/surround40.conf>
NFORCE.pcm.surround40.0 "cards.NFORCE.pcm.front.0"
NFORCE.pcm.surround40.0 {
@args [ CARD ]
@args.CARD {
type string
}
type hooks
slave.pcm {
type hw
card $CARD
device 0
}
hooks.0 {
type ctl_elems
hook_args [
{
name "Line-In As Surround"
preserve true
value true
lock true
optional true
}
{
name "Surround Down Mix"
preserve true
value off
lock true
optional true
}
]
}
}
<confdir:pcm/surround41.conf>
<confdir:pcm/surround50.conf>
@ -27,26 +57,55 @@ NFORCE.pcm.surround51.0 {
@args.CARD {
type string
}
type multi
slaves [
{
pcm {
@func concat
strings [
"cards.NFORCE.pcm.front.0:CARD=" $CARD
]
}
channels 6
type route
ttable.0.0 1
ttable.1.1 1
ttable.2.4 1
ttable.3.5 1
ttable.4.2 1
ttable.5.3 1
slave.pcm {
type hooks
slave.pcm {
type hw
card $CARD
device 0
}
]
bindings [
{ slave 0 channel 0 }
{ slave 0 channel 1 }
{ slave 0 channel 4 }
{ slave 0 channel 5 }
{ slave 0 channel 2 }
{ slave 0 channel 3 }
]
hooks.0 {
type ctl_elems
hook_args [
{
name "Line-In As Surround"
preserve true
value true
lock true
optional true
}
{
name "Mic As Center/LFE"
preserve true
value true
lock true
optional true
}
{
name "Surround Down Mix"
preserve true
value off
lock true
optional true
}
{
name "Center/LFE Down Mix"
preserve true
value off
lock true
optional true
}
]
}
}
slave.channels 6
}
<confdir:pcm/iec958.conf>