mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-27 07:00:09 -05:00
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:
parent
90112fff1e
commit
eecfed7569
12 changed files with 108 additions and 4 deletions
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue