mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-28 07:00:15 -05:00
- 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:
parent
0ecc03111d
commit
eaa016554c
5 changed files with 282 additions and 50 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue