- 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

@ -21,16 +21,88 @@ VIA8233.pcm.surround40.0 {
@args.CARD {
type string
}
type hw
card $CARD
device 1
type hooks
slave.pcm {
type hw
card $CARD
device 1
}
hooks.0 {
type ctl_elems
hook_args [
{
name "Line-In As Surround"
device 0
preserve true
value true
lock true
optional true
}
{
name "Surround Down Mix"
device 0
preserve true
value off
lock true
optional true
}
]
}
}
<confdir:pcm/surround41.conf>
<confdir:pcm/surround50.conf>
<confdir:pcm/surround51.conf>
VIA8233.pcm.surround51.0 "cards.VIA8233.pcm.surround40.0"
VIA8233.pcm.surround51.0 {
@args [ CARD ]
@args.CARD {
type string
}
type hooks
slave.pcm {
type hw
card $CARD
device 1
}
hooks.0 {
type ctl_elems
hook_args [
{
name "Line-In As Surround"
device 0
preserve true
value true
lock true
optional true
}
{
name "Mic As Center/LFE"
device 0
preserve true
value true
lock true
optional true
}
{
name "Surround Down Mix"
device 0
preserve true
value off
lock true
optional true
}
{
name "Center/LFE Down Mix"
device 0
preserve true
value off
lock true
optional true
}
]
}
}
<confdir:pcm/iec958.conf>
@ -39,9 +111,6 @@ VIA8233.pcm.iec958.0 {
@args.CARD {
type string
}
@args.DEV {
type integer
}
@args.AES0 {
type integer
}