mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
pcm config files cleanups and name hint extension
- remove device 0/subdevice 0 from configuration files (it's default)
- name_hint
- fixed parsing slaves
- obtain device numbers directly from 'type hw' configurations to
avoid poluting of configurations scripts with hint.device lines
This commit is contained in:
parent
b40a116b8e
commit
d7916981bf
57 changed files with 79 additions and 177 deletions
|
|
@ -11,7 +11,6 @@ AACI.pcm.front.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
||||
<confdir:pcm/surround40.conf>
|
||||
|
|
|
|||
|
|
@ -13,11 +13,10 @@ ATIIXP-MODEM.pcm.modem.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
slave.channels 2
|
||||
slave.format S16_LE
|
||||
ttable.0.1 1
|
||||
ttable.1.0 0
|
||||
hint 0
|
||||
hint.show off
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ ATIIXP-SPDMA.pcm.front.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
||||
# default with dmix/dsnoop
|
||||
|
|
@ -48,7 +47,6 @@ ATIIXP-SPDMA.pcm.surround40.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
channels 4
|
||||
}
|
||||
hooks.0 {
|
||||
|
|
@ -92,7 +90,6 @@ ATIIXP-SPDMA.pcm.surround51.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
channels 6
|
||||
}
|
||||
hooks.0 {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ ATIIXP.pcm.front.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
||||
# default with dmix/dsnoop
|
||||
|
|
@ -48,7 +47,6 @@ ATIIXP.pcm.surround40.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
channels 4
|
||||
}
|
||||
hooks.0 {
|
||||
|
|
@ -92,7 +90,6 @@ ATIIXP.pcm.surround51.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
channels 6
|
||||
}
|
||||
hooks.0 {
|
||||
|
|
@ -166,21 +163,18 @@ ATIIXP.pcm.iec958.0 {
|
|||
hook_args [
|
||||
{
|
||||
name "IEC958 Playback AC97-SPSA"
|
||||
device 0
|
||||
lock true
|
||||
preserve true
|
||||
value 3
|
||||
}
|
||||
{
|
||||
name "IEC958 Playback Default"
|
||||
device 0
|
||||
lock true
|
||||
preserve true
|
||||
value [ $AES0 $AES1 $AES2 $AES3 ]
|
||||
}
|
||||
{
|
||||
name "IEC958 Playback Switch"
|
||||
device 0
|
||||
lock true
|
||||
preserve true
|
||||
value true
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ AU8810.pcm.front.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
||||
<confdir:pcm/iec958.conf>
|
||||
|
|
|
|||
|
|
@ -11,5 +11,4 @@ AU8820.pcm.front.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ AU8830.pcm.front.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
||||
<confdir:pcm/surround40.conf>
|
||||
|
|
|
|||
|
|
@ -13,14 +13,12 @@ Audigy.pcm.front.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
hooks.0 {
|
||||
type ctl_elems
|
||||
hook_args [
|
||||
{
|
||||
interface PCM
|
||||
device 0
|
||||
name "EMU10K1 PCM Send Volume"
|
||||
index { @func private_pcm_subdevice }
|
||||
lock true
|
||||
|
|
@ -37,7 +35,6 @@ Audigy.pcm.front.0 {
|
|||
}
|
||||
{
|
||||
interface PCM
|
||||
device 0
|
||||
name "EMU10K1 PCM Send Routing"
|
||||
index { @func private_pcm_subdevice }
|
||||
lock true
|
||||
|
|
@ -55,7 +52,6 @@ Audigy.pcm.front.0 {
|
|||
|
||||
]
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
<confdir:pcm/rear.conf>
|
||||
|
|
@ -69,14 +65,12 @@ Audigy.pcm.rear.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
hooks.0 {
|
||||
type ctl_elems
|
||||
hook_args [
|
||||
{
|
||||
interface PCM
|
||||
device 0
|
||||
name "EMU10K1 PCM Send Volume"
|
||||
index { @func private_pcm_subdevice }
|
||||
lock true
|
||||
|
|
@ -106,14 +100,12 @@ Audigy.pcm.center_lfe.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
hooks.0 {
|
||||
type ctl_elems
|
||||
hook_args [
|
||||
{
|
||||
interface PCM
|
||||
device 0
|
||||
name "EMU10K1 PCM Send Volume"
|
||||
index { @func private_pcm_subdevice }
|
||||
lock true
|
||||
|
|
@ -130,7 +122,6 @@ Audigy.pcm.center_lfe.0 {
|
|||
}
|
||||
{
|
||||
interface PCM
|
||||
device 0
|
||||
name "EMU10K1 PCM Send Routing"
|
||||
index { @func private_pcm_subdevice }
|
||||
lock true
|
||||
|
|
@ -257,7 +248,6 @@ Audigy.pcm.iec958.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
||||
hooks.0 {
|
||||
|
|
@ -266,7 +256,6 @@ Audigy.pcm.iec958.0 {
|
|||
{
|
||||
interface PCM
|
||||
name "IEC958 Playback Default"
|
||||
device 0
|
||||
lock true
|
||||
preserve true
|
||||
optional true
|
||||
|
|
@ -288,7 +277,6 @@ Audigy.pcm.iec958.0 {
|
|||
}
|
||||
{
|
||||
interface PCM
|
||||
device 0
|
||||
name "EMU10K1 PCM Send Volume"
|
||||
index { @func private_pcm_subdevice }
|
||||
lock true
|
||||
|
|
@ -305,7 +293,6 @@ Audigy.pcm.iec958.0 {
|
|||
}
|
||||
{
|
||||
interface PCM
|
||||
device 0
|
||||
name "EMU10K1 PCM Send Routing"
|
||||
index { @func private_pcm_subdevice }
|
||||
lock true
|
||||
|
|
|
|||
|
|
@ -13,14 +13,12 @@ Audigy2.pcm.front.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
hooks.0 {
|
||||
type ctl_elems
|
||||
hook_args [
|
||||
{
|
||||
interface PCM
|
||||
device 0
|
||||
name "EMU10K1 PCM Send Volume"
|
||||
index { @func private_pcm_subdevice }
|
||||
lock true
|
||||
|
|
@ -37,7 +35,6 @@ Audigy2.pcm.front.0 {
|
|||
}
|
||||
{
|
||||
interface PCM
|
||||
device 0
|
||||
name "EMU10K1 PCM Send Routing"
|
||||
index { @func private_pcm_subdevice }
|
||||
lock true
|
||||
|
|
@ -55,7 +52,6 @@ Audigy2.pcm.front.0 {
|
|||
|
||||
]
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
<confdir:pcm/rear.conf>
|
||||
|
|
@ -69,14 +65,12 @@ Audigy2.pcm.rear.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
hooks.0 {
|
||||
type ctl_elems
|
||||
hook_args [
|
||||
{
|
||||
interface PCM
|
||||
device 0
|
||||
name "EMU10K1 PCM Send Volume"
|
||||
index { @func private_pcm_subdevice }
|
||||
lock true
|
||||
|
|
@ -106,14 +100,12 @@ Audigy2.pcm.center_lfe.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
hooks.0 {
|
||||
type ctl_elems
|
||||
hook_args [
|
||||
{
|
||||
interface PCM
|
||||
device 0
|
||||
name "EMU10K1 PCM Send Volume"
|
||||
index { @func private_pcm_subdevice }
|
||||
lock true
|
||||
|
|
@ -130,7 +122,6 @@ Audigy2.pcm.center_lfe.0 {
|
|||
}
|
||||
{
|
||||
interface PCM
|
||||
device 0
|
||||
name "EMU10K1 PCM Send Routing"
|
||||
index { @func private_pcm_subdevice }
|
||||
lock true
|
||||
|
|
@ -160,14 +151,12 @@ Audigy2.pcm.side.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
hooks.0 {
|
||||
type ctl_elems
|
||||
hook_args [
|
||||
{
|
||||
interface PCM
|
||||
device 0
|
||||
name "EMU10K1 PCM Send Volume"
|
||||
index { @func private_pcm_subdevice }
|
||||
lock true
|
||||
|
|
@ -184,7 +173,6 @@ Audigy2.pcm.side.0 {
|
|||
}
|
||||
{
|
||||
interface PCM
|
||||
device 0
|
||||
name "EMU10K1 PCM Send Routing"
|
||||
index { @func private_pcm_subdevice }
|
||||
lock true
|
||||
|
|
@ -369,7 +357,6 @@ Audigy2.pcm.iec958.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
||||
hooks.0 {
|
||||
|
|
@ -378,7 +365,6 @@ Audigy2.pcm.iec958.0 {
|
|||
{
|
||||
interface PCM
|
||||
name "IEC958 Playback Default"
|
||||
device 0
|
||||
preserve true
|
||||
optional true
|
||||
value [ $AES0 $AES1 $AES2 $AES3 ]
|
||||
|
|
@ -398,7 +384,6 @@ Audigy2.pcm.iec958.0 {
|
|||
}
|
||||
{
|
||||
interface PCM
|
||||
device 0
|
||||
name "EMU10K1 PCM Send Volume"
|
||||
index { @func private_pcm_subdevice }
|
||||
lock true
|
||||
|
|
@ -415,7 +400,6 @@ Audigy2.pcm.iec958.0 {
|
|||
}
|
||||
{
|
||||
interface PCM
|
||||
device 0
|
||||
name "EMU10K1 PCM Send Routing"
|
||||
index { @func private_pcm_subdevice }
|
||||
lock true
|
||||
|
|
|
|||
|
|
@ -59,7 +59,6 @@ Aureon51.pcm.center_lfe.0 {
|
|||
type hw
|
||||
card $CARD
|
||||
device 2
|
||||
subdevice 0
|
||||
}
|
||||
|
||||
<confdir:pcm/side.conf>
|
||||
|
|
|
|||
|
|
@ -46,7 +46,6 @@ Aureon71.pcm.rear.0 {
|
|||
type hw
|
||||
card $CARD
|
||||
device 2
|
||||
subdevice 0
|
||||
}
|
||||
|
||||
<confdir:pcm/center_lfe.conf>
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@ CA0106.pcm.front.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
||||
<confdir:pcm/rear.conf>
|
||||
|
|
@ -241,7 +240,6 @@ CA0106.pcm.iec958.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
hooks.0 {
|
||||
type ctl_elems
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ CMI8338-SWIEC.pcm.front.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
||||
# default with dmix/dsnoop
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ CMI8338.pcm.front.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
||||
# default with dmix/dsnoop
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ CMI8738-MC6.pcm.front.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
||||
# default with dmix/dsnoop
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ CMI8738-MC8.pcm.front.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
control {
|
||||
name "PCM Playback Volume"
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ CS46xx.pcm.front.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
||||
# default with plughw/dsnoop
|
||||
|
|
@ -209,7 +208,6 @@ CS46xx.pcm.iec958.0 {
|
|||
# for compatibility with older drivers
|
||||
interface PCM
|
||||
name "IEC958 Playback PCM Stream"
|
||||
device 0
|
||||
lock true
|
||||
preserve true
|
||||
optional true
|
||||
|
|
|
|||
|
|
@ -13,14 +13,12 @@ EMU10K1.pcm.front.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
hooks.0 {
|
||||
type ctl_elems
|
||||
hook_args [
|
||||
{
|
||||
interface PCM
|
||||
device 0
|
||||
name "EMU10K1 PCM Send Volume"
|
||||
index { @func private_pcm_subdevice }
|
||||
lock true
|
||||
|
|
@ -37,7 +35,6 @@ EMU10K1.pcm.front.0 {
|
|||
}
|
||||
{
|
||||
interface PCM
|
||||
device 0
|
||||
name "EMU10K1 PCM Send Routing"
|
||||
index { @func private_pcm_subdevice }
|
||||
lock true
|
||||
|
|
@ -67,14 +64,12 @@ EMU10K1.pcm.rear.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
hooks.0 {
|
||||
type ctl_elems
|
||||
hook_args [
|
||||
{
|
||||
interface PCM
|
||||
device 0
|
||||
name "EMU10K1 PCM Send Volume"
|
||||
index { @func private_pcm_subdevice }
|
||||
lock true
|
||||
|
|
@ -104,7 +99,6 @@ EMU10K1.pcm.center_lfe.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
hooks.0 {
|
||||
type ctl_elems
|
||||
|
|
@ -135,7 +129,6 @@ EMU10K1.pcm.center_lfe.0 {
|
|||
# }
|
||||
{
|
||||
interface PCM
|
||||
device 0
|
||||
name "EMU10K1 PCM Send Volume"
|
||||
index { @func private_pcm_subdevice }
|
||||
lock true
|
||||
|
|
@ -152,7 +145,6 @@ EMU10K1.pcm.center_lfe.0 {
|
|||
}
|
||||
{
|
||||
interface PCM
|
||||
device 0
|
||||
name "EMU10K1 PCM Send Routing"
|
||||
index { @func private_pcm_subdevice }
|
||||
lock true
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@ EMU10K1X.pcm.front.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
||||
<confdir:pcm/rear.conf>
|
||||
|
|
@ -169,7 +168,6 @@ EMU10K1X.pcm.iec958.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
hooks.0 {
|
||||
type ctl_elems
|
||||
|
|
|
|||
|
|
@ -48,7 +48,6 @@ ENS1370.pcm.rear.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
hooks.0 {
|
||||
type ctl_elems
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ ENS1371.pcm.front.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
||||
# default with dmix/dsnoop
|
||||
|
|
@ -119,7 +118,6 @@ ENS1371.pcm.iec958.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
hooks.0 {
|
||||
type ctl_elems
|
||||
|
|
|
|||
|
|
@ -9,5 +9,4 @@ ES1968.pcm.front.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ FM801.pcm.front.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
||||
# default with dmix/dsnoop
|
||||
|
|
@ -70,7 +69,6 @@ FM801.pcm.iec958.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
hooks.0 {
|
||||
type ctl_elems
|
||||
|
|
|
|||
|
|
@ -13,13 +13,11 @@ HDA-Intel.pcm.front.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
control {
|
||||
name "PCM Playback Volume"
|
||||
card $CARD
|
||||
}
|
||||
hint.device 0
|
||||
}
|
||||
|
||||
# default with dmix+softvol & dsnoop
|
||||
|
|
@ -50,16 +48,6 @@ HDA-Intel.pcm.default {
|
|||
strings [ "dsnoop:" $CARD ]
|
||||
}
|
||||
}
|
||||
hint {
|
||||
device_output {
|
||||
@func refer
|
||||
name defaults.pcm.dmix.device
|
||||
}
|
||||
device_input {
|
||||
@func refer
|
||||
name defaults.pcm.dsnoop.device
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<confdir:pcm/surround40.conf>
|
||||
|
|
|
|||
|
|
@ -59,7 +59,6 @@ ICE1724.pcm.center_lfe.0 {
|
|||
type hw
|
||||
card $CARD
|
||||
device 2
|
||||
subdevice 0
|
||||
}
|
||||
|
||||
<confdir:pcm/side.conf>
|
||||
|
|
|
|||
|
|
@ -11,6 +11,5 @@ ICH-MODEM.pcm.modem.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
hint 0
|
||||
hint.show off
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ ICH.pcm.front.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
control {
|
||||
name "PCM Playback Volume"
|
||||
|
|
@ -64,7 +63,6 @@ ICH.pcm.surround40.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
channels 4
|
||||
}
|
||||
hooks.0 {
|
||||
|
|
@ -123,7 +121,6 @@ ICH.pcm.surround51.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
channels 6
|
||||
}
|
||||
hooks.0 {
|
||||
|
|
@ -197,7 +194,6 @@ ICH.pcm.iec958.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
hooks.0 {
|
||||
type ctl_elems
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ ICH4.pcm.front.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
control {
|
||||
name "PCM Playback Volume"
|
||||
|
|
@ -64,7 +63,6 @@ ICH4.pcm.surround40.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
channels 4
|
||||
}
|
||||
hooks.0 {
|
||||
|
|
@ -115,7 +113,6 @@ ICH4.pcm.surround51.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
channels 6
|
||||
}
|
||||
hooks.0 {
|
||||
|
|
@ -194,7 +191,6 @@ ICH4.pcm.iec958.0 {
|
|||
hook_args [
|
||||
{
|
||||
name "IEC958 Playback AC97-SPSA"
|
||||
device 0
|
||||
lock true
|
||||
preserve true
|
||||
value 3
|
||||
|
|
@ -202,14 +198,12 @@ ICH4.pcm.iec958.0 {
|
|||
}
|
||||
{
|
||||
name "IEC958 Playback Default"
|
||||
device 0
|
||||
lock true
|
||||
preserve true
|
||||
value [ $AES0 $AES1 $AES2 $AES3 ]
|
||||
}
|
||||
{
|
||||
name "IEC958 Playback Switch"
|
||||
device 0
|
||||
lock true
|
||||
preserve true
|
||||
value true
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ Maestro3.pcm.front.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
||||
# default with dmix/dsnoop
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ NFORCE.pcm.front.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
control {
|
||||
name "PCM Playback Volume"
|
||||
|
|
@ -64,7 +63,6 @@ NFORCE.pcm.surround40.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
channels 4
|
||||
}
|
||||
hooks.0 {
|
||||
|
|
@ -123,7 +121,6 @@ NFORCE.pcm.surround51.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
channels 6
|
||||
}
|
||||
hooks.0 {
|
||||
|
|
@ -204,21 +201,18 @@ NFORCE.pcm.iec958.0 {
|
|||
hook_args [
|
||||
{
|
||||
name "IEC958 Playback AC97-SPSA"
|
||||
device 0
|
||||
lock true
|
||||
preserve true
|
||||
value 0
|
||||
}
|
||||
{
|
||||
name "IEC958 Playback Default"
|
||||
device 0
|
||||
lock true
|
||||
preserve true
|
||||
value [ $AES0 $AES1 $AES2 $AES3 ]
|
||||
}
|
||||
{
|
||||
name "IEC958 Playback Switch"
|
||||
device 0
|
||||
lock true
|
||||
preserve true
|
||||
value true
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ PC-Speaker.pcm.front.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
||||
# default with dmix & null
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ PMac.pcm.front.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
||||
# default with dmix/dsnoop
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ PMacToonie.pcm.front.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
control {
|
||||
name "PCM Playback Volume"
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ RME9636.pcm.front.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
||||
# FIXME: This configuration is not valid for double-speed rates.
|
||||
|
|
@ -42,7 +41,6 @@ RME9636.pcm.iec958.0 {
|
|||
pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
channels 18
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ RME9652.pcm.front.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
||||
# FIXME: This configuration is not valid for double-speed rates.
|
||||
|
|
@ -42,7 +41,6 @@ RME9652.pcm.iec958.0 {
|
|||
pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
channels 26
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ SI7018.pcm.front.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
||||
<confdir:pcm/rear.conf>
|
||||
|
|
@ -27,7 +26,6 @@ SI7018.pcm.rear.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
hooks.0 {
|
||||
type ctl_elems
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ TRID4DWAVENX.pcm.front.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
||||
<confdir:pcm/rear.conf>
|
||||
|
|
@ -25,7 +24,6 @@ TRID4DWAVENX.pcm.rear.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
hooks.0 {
|
||||
type ctl_elems
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ VIA686A.pcm.front.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
||||
# default with dmix/dsnoop
|
||||
|
|
@ -63,28 +62,24 @@ VIA686A.pcm.iec958.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
hooks.0 {
|
||||
type ctl_elems
|
||||
hook_args [
|
||||
{
|
||||
name "IEC958 Playback AC97-SPSA"
|
||||
device 0
|
||||
lock true
|
||||
preserve true
|
||||
value 0
|
||||
}
|
||||
{
|
||||
name "IEC958 Playback Default"
|
||||
device 0
|
||||
lock true
|
||||
preserve true
|
||||
value [ $AES0 $AES1 $AES2 $AES3 ]
|
||||
}
|
||||
{
|
||||
name "IEC958 Playback Switch"
|
||||
device 0
|
||||
lock true
|
||||
preserve true
|
||||
value true
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ VIA8233.pcm.front.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
||||
# default with softvol/dsnoop
|
||||
|
|
@ -29,7 +28,6 @@ VIA8233.pcm.default {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
control {
|
||||
name "PCM Playback Volume"
|
||||
|
|
@ -65,7 +63,6 @@ VIA8233.pcm.surround40.0 {
|
|||
hook_args [
|
||||
{
|
||||
name "Channel Mode"
|
||||
device 0
|
||||
preserve true
|
||||
value "4ch"
|
||||
lock true
|
||||
|
|
@ -80,7 +77,6 @@ VIA8233.pcm.surround40.0 {
|
|||
}
|
||||
{
|
||||
name "Surround Down Mix"
|
||||
device 0
|
||||
preserve true
|
||||
value off
|
||||
lock true
|
||||
|
|
@ -111,7 +107,6 @@ VIA8233.pcm.surround51.0 {
|
|||
hook_args [
|
||||
{
|
||||
name "Channel Mode"
|
||||
device 0
|
||||
preserve true
|
||||
value "6ch"
|
||||
lock true
|
||||
|
|
@ -132,7 +127,6 @@ VIA8233.pcm.surround51.0 {
|
|||
}
|
||||
{
|
||||
name "Surround Down Mix"
|
||||
device 0
|
||||
preserve true
|
||||
value off
|
||||
lock true
|
||||
|
|
@ -140,7 +134,6 @@ VIA8233.pcm.surround51.0 {
|
|||
}
|
||||
{
|
||||
name "Center/LFE Down Mix"
|
||||
device 0
|
||||
preserve true
|
||||
value off
|
||||
lock true
|
||||
|
|
@ -173,7 +166,6 @@ VIA8233.pcm.iec958.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
subdevice 3
|
||||
}
|
||||
hooks.0 {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ VIA8233A.pcm.front.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
||||
# default with dmix/dsnoop
|
||||
|
|
@ -48,7 +47,6 @@ VIA8233A.pcm.surround40.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
channels 4
|
||||
}
|
||||
hooks.0 {
|
||||
|
|
@ -56,7 +54,6 @@ VIA8233A.pcm.surround40.0 {
|
|||
hook_args [
|
||||
{
|
||||
name "Swap Surround Slot"
|
||||
device 0
|
||||
lock true
|
||||
preserve true
|
||||
value false
|
||||
|
|
@ -100,7 +97,6 @@ VIA8233A.pcm.surround51.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
channels 6
|
||||
}
|
||||
hooks.0 {
|
||||
|
|
@ -108,7 +104,6 @@ VIA8233A.pcm.surround51.0 {
|
|||
hook_args [
|
||||
{
|
||||
name "Swap Surround Slot"
|
||||
device 0
|
||||
lock true
|
||||
preserve true
|
||||
value true
|
||||
|
|
@ -182,28 +177,24 @@ VIA8233A.pcm.iec958.0 {
|
|||
hook_args [
|
||||
{
|
||||
name "IEC958 Playback AC97-SPSA"
|
||||
device 0
|
||||
lock true
|
||||
preserve true
|
||||
value 3
|
||||
}
|
||||
{
|
||||
name "IEC958 Playback Default"
|
||||
device 0
|
||||
lock true
|
||||
preserve true
|
||||
value [ $AES0 $AES1 $AES2 $AES3 ]
|
||||
}
|
||||
{
|
||||
name "IEC958 Playback Switch"
|
||||
device 0
|
||||
lock true
|
||||
preserve true
|
||||
value true
|
||||
}
|
||||
{
|
||||
name "IEC958 Output Switch"
|
||||
device 0
|
||||
lock true
|
||||
preserve true
|
||||
value true
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ VIA8237.pcm.front.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
||||
# default with softvol/dsnoop
|
||||
|
|
@ -29,7 +28,6 @@ VIA8237.pcm.default {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
control {
|
||||
name "PCM Playback Volume"
|
||||
|
|
@ -65,7 +63,6 @@ VIA8237.pcm.surround40.0 {
|
|||
hook_args [
|
||||
{
|
||||
name "Channel Mode"
|
||||
device 0
|
||||
preserve true
|
||||
value "4ch"
|
||||
lock true
|
||||
|
|
@ -73,7 +70,6 @@ VIA8237.pcm.surround40.0 {
|
|||
}
|
||||
{
|
||||
name "Surround Down Mix"
|
||||
device 0
|
||||
preserve true
|
||||
value off
|
||||
lock true
|
||||
|
|
@ -112,7 +108,6 @@ VIA8237.pcm.surround51.0 {
|
|||
hook_args [
|
||||
{
|
||||
name "Channel Mode"
|
||||
device 0
|
||||
preserve true
|
||||
value "6ch"
|
||||
lock true
|
||||
|
|
@ -120,7 +115,6 @@ VIA8237.pcm.surround51.0 {
|
|||
}
|
||||
{
|
||||
name "Surround Down Mix"
|
||||
device 0
|
||||
preserve true
|
||||
value off
|
||||
lock true
|
||||
|
|
@ -128,7 +122,6 @@ VIA8237.pcm.surround51.0 {
|
|||
}
|
||||
{
|
||||
name "Center/LFE Down Mix"
|
||||
device 0
|
||||
preserve true
|
||||
value off
|
||||
lock true
|
||||
|
|
@ -163,7 +156,6 @@ VIA8237.pcm.iec958.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
subdevice 3
|
||||
}
|
||||
hooks.0 {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ VX222.pcm.front.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
||||
<confdir:pcm/iec958.conf>
|
||||
|
|
@ -37,7 +36,6 @@ VX222.pcm.iec958.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
hooks.0 {
|
||||
type ctl_elems
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ VXPocket.pcm.front.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
||||
<confdir:pcm/iec958.conf>
|
||||
|
|
@ -37,7 +36,6 @@ VXPocket.pcm.iec958.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
hooks.0 {
|
||||
type ctl_elems
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ VXPocket440.pcm.front.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
||||
<confdir:pcm/rear.conf>
|
||||
|
|
@ -86,7 +85,6 @@ VXPocket440.pcm.iec958.0 {
|
|||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
hooks.0 {
|
||||
type ctl_elems
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ YMF744.pcm.front.0 {
|
|||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
|
||||
<confdir:pcm/rear.conf>
|
||||
|
|
|
|||
|
|
@ -53,5 +53,6 @@ pcm.!center_lfe {
|
|||
name defaults.namehint.basic
|
||||
}
|
||||
description "Center and Subwoofer speakers"
|
||||
device $DEV
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,25 +18,40 @@ pcm.!default {
|
|||
}
|
||||
}
|
||||
}
|
||||
# use card-specific definition if exists
|
||||
@func refer
|
||||
name {
|
||||
@func concat
|
||||
strings [
|
||||
"cards."
|
||||
{
|
||||
@func card_driver
|
||||
type empty
|
||||
slave.pcm {
|
||||
# use card-specific definition if exists
|
||||
@func refer
|
||||
name {
|
||||
@func concat
|
||||
strings [
|
||||
"cards."
|
||||
{
|
||||
@func card_driver
|
||||
card $CARD
|
||||
}
|
||||
".pcm.default1:CARD=" $CARD
|
||||
]
|
||||
}
|
||||
default {
|
||||
# use plughw as default
|
||||
type plug
|
||||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
}
|
||||
".pcm.default:CARD=" $CARD
|
||||
]
|
||||
hint.device 0
|
||||
}
|
||||
}
|
||||
default {
|
||||
# use plughw as default
|
||||
type plug
|
||||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
hint {
|
||||
description "Default Audio Device"
|
||||
device_output {
|
||||
@func refer
|
||||
name defaults.pcm.dmix.device
|
||||
}
|
||||
device_input {
|
||||
@func refer
|
||||
name defaults.pcm.dsnoop.device
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,5 +53,6 @@ pcm.!front {
|
|||
name defaults.namehint.basic
|
||||
}
|
||||
description "Front speakers"
|
||||
device $DEV
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -78,5 +78,6 @@ pcm.!iec958 {
|
|||
name defaults.namehint.basic
|
||||
}
|
||||
description "IEC958 (S/PDIF) Digital Audio Output"
|
||||
device $DEV
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,5 +53,6 @@ pcm.!rear {
|
|||
name defaults.namehint.basic
|
||||
}
|
||||
description "Rear speakers"
|
||||
device $DEV
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,5 +53,6 @@ pcm.!side {
|
|||
name defaults.namehint.basic
|
||||
}
|
||||
description "Side speakers"
|
||||
device $DEV
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,5 +52,8 @@ pcm.!surround40 {
|
|||
]
|
||||
}
|
||||
}
|
||||
hint.description "4.0 Surround output to Front and Rear speakers"
|
||||
hint {
|
||||
description "4.0 Surround output to Front and Rear speakers"
|
||||
device $DEV
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -59,5 +59,8 @@ pcm.!surround41 {
|
|||
ttable.2.2 1
|
||||
ttable.3.3 1
|
||||
ttable.4.5 1
|
||||
hint.description "4.1 Surround output to Front, Rear and Subwoofer speakers"
|
||||
hint {
|
||||
description "4.1 Surround output to Front, Rear and Subwoofer speakers"
|
||||
device $DEV
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -59,5 +59,8 @@ pcm.!surround50 {
|
|||
ttable.2.2 1
|
||||
ttable.3.3 1
|
||||
ttable.4.4 1
|
||||
hint.description "5.0 Surround output to Front, Center and Rear speakers"
|
||||
hint {
|
||||
description "5.0 Surround output to Front, Center and Rear speakers"
|
||||
device $DEV
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,5 +54,8 @@ pcm.!surround51 {
|
|||
]
|
||||
}
|
||||
}
|
||||
hint.description "5.1 Surround output to Front, Center, Rear and Subwoofer speakers"
|
||||
hint {
|
||||
description "5.1 Surround output to Front, Center, Rear and Subwoofer speakers"
|
||||
device $DEV
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -56,5 +56,8 @@ pcm.!surround71 {
|
|||
]
|
||||
}
|
||||
}
|
||||
hint.description "7.1 Surround output to Front, Center, Side, Rear and Woofer speakers"
|
||||
hint {
|
||||
description "7.1 Surround output to Front, Center, Side, Rear and Woofer speakers"
|
||||
device $DEV
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -185,7 +185,7 @@ static char *get_dev_name(struct hint_list *list)
|
|||
strcat(res, ", ");
|
||||
strcat(res, str1);
|
||||
strcat(res, " {");
|
||||
strcat(res, list->iface == SND_CTL_ELEM_IFACE_PCM ? "Capture" : "Input");
|
||||
strcat(res, str2);
|
||||
strcat(res, "}");
|
||||
free(str1);
|
||||
return res;
|
||||
|
|
@ -205,7 +205,7 @@ static int try_config(struct hint_list *list,
|
|||
const char *name)
|
||||
{
|
||||
snd_lib_error_handler_t eh;
|
||||
snd_config_t *res = NULL, *cfg, *n;
|
||||
snd_config_t *res = NULL, *cfg, *cfg1, *n;
|
||||
snd_config_iterator_t i, next;
|
||||
char *buf, *buf1 = NULL, *buf2;
|
||||
const char *str;
|
||||
|
|
@ -253,11 +253,26 @@ static int try_config(struct hint_list *list,
|
|||
}
|
||||
#endif
|
||||
|
||||
cfg = res;
|
||||
cfg1 = res;
|
||||
level = 0;
|
||||
__hint:
|
||||
level++;
|
||||
if (snd_config_search(cfg, "hint", &cfg) >= 0) {
|
||||
if (snd_config_search(cfg1, "type", &cfg) >= 0 &&
|
||||
snd_config_get_string(cfg, &str) >= 0 &&
|
||||
strcmp(str, "hw") == 0) {
|
||||
dev = 0;
|
||||
list->device_input = -1;
|
||||
list->device_output = -1;
|
||||
if (snd_config_search(cfg1, "device", &cfg) >= 0) {
|
||||
if (snd_config_get_integer(cfg, &dev) < 0) {
|
||||
SNDERR("(%s) device must be an integer", buf);
|
||||
err = -EINVAL;
|
||||
goto __cleanup;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (snd_config_search(cfg1, "hint", &cfg) >= 0) {
|
||||
if (snd_config_get_type(cfg) != SND_CONFIG_TYPE_COMPOUND) {
|
||||
SNDERR("hint (%s) must be a compound", buf);
|
||||
err = -EINVAL;
|
||||
|
|
@ -302,8 +317,8 @@ static int try_config(struct hint_list *list,
|
|||
}
|
||||
} else if (level == 1 && !list->show_all)
|
||||
goto __skip_add;
|
||||
if (snd_config_search(cfg, "slave", &cfg) >= 0 &&
|
||||
snd_config_search(cfg, base, &cfg) >= 0)
|
||||
if (snd_config_search(cfg1, "slave", &cfg) >= 0 &&
|
||||
snd_config_search(cfg, base, &cfg1) >= 0)
|
||||
goto __hint;
|
||||
snd_config_delete(res);
|
||||
res = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue