conf: CMI8xxx: define pcm configuration block only one time

There may be multiple CMI8xxx soundcards in the system. Overwrite
the PCM configurations when loaded multiple times.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2025-12-10 12:12:47 +01:00 committed by Jaroslav Kysela
parent 68b8b43541
commit 041299ea39
5 changed files with 29 additions and 29 deletions

View file

@ -5,7 +5,7 @@
<confdir:pcm/front.conf> <confdir:pcm/front.conf>
CMI8338-SWIEC.pcm.front.0 { CMI8338-SWIEC.pcm.front.!0 {
@args [ CARD ] @args [ CARD ]
@args.CARD { @args.CARD {
type string type string
@ -15,7 +15,7 @@ CMI8338-SWIEC.pcm.front.0 {
} }
# default with dmix/dsnoop # default with dmix/dsnoop
CMI8338-SWIEC.pcm.default { CMI8338-SWIEC.pcm.!default {
@args [ CARD ] @args [ CARD ]
@args.CARD { @args.CARD {
type string type string
@ -41,7 +41,7 @@ CMI8338-SWIEC.pcm.default {
# 2nd DAC # 2nd DAC
# FIXME: we need a volume attenuator for rear channel. # FIXME: we need a volume attenuator for rear channel.
CMI8338-SWIEC.pcm.rear.0 { CMI8338-SWIEC.pcm.rear.!0 {
@args [ CARD ] @args [ CARD ]
@args.CARD { @args.CARD {
type string type string
@ -54,7 +54,7 @@ CMI8338-SWIEC.pcm.rear.0 {
<confdir:pcm/surround40.conf> <confdir:pcm/surround40.conf>
# for the old CM8738 with 2nd DAC for rear # for the old CM8738 with 2nd DAC for rear
CMI8338-SWIEC.pcm.surround40.0 { CMI8338-SWIEC.pcm.surround40.!0 {
@args [ CARD ] @args [ CARD ]
@args.CARD { @args.CARD {
type string type string
@ -91,7 +91,7 @@ CMI8338-SWIEC.pcm.surround40.0 {
<confdir:pcm/iec958.conf> <confdir:pcm/iec958.conf>
CMI8338-SWIEC.pcm.iec958.0 { CMI8338-SWIEC.pcm.iec958.!0 {
@args [ CARD AES0 AES1 AES2 AES3 ] @args [ CARD AES0 AES1 AES2 AES3 ]
@args.CARD { @args.CARD {
type string type string

View file

@ -4,7 +4,7 @@
<confdir:pcm/front.conf> <confdir:pcm/front.conf>
CMI8338.pcm.front.0 { CMI8338.pcm.front.!0 {
@args [ CARD ] @args [ CARD ]
@args.CARD { @args.CARD {
type string type string
@ -14,7 +14,7 @@ CMI8338.pcm.front.0 {
} }
# default with dmix/dsnoop # default with dmix/dsnoop
CMI8338.pcm.default { CMI8338.pcm.!default {
@args [ CARD ] @args [ CARD ]
@args.CARD { @args.CARD {
type string type string
@ -40,7 +40,7 @@ CMI8338.pcm.default {
# 2nd DAC # 2nd DAC
# FIXME: we need a volume attenuator for rear channel. # FIXME: we need a volume attenuator for rear channel.
CMI8338.pcm.rear.0 { CMI8338.pcm.rear.!0 {
@args [ CARD ] @args [ CARD ]
@args.CARD { @args.CARD {
type string type string
@ -53,7 +53,7 @@ CMI8338.pcm.rear.0 {
<confdir:pcm/surround40.conf> <confdir:pcm/surround40.conf>
# for the old CM8738 with 2nd DAC for rear # for the old CM8738 with 2nd DAC for rear
CMI8338.pcm.surround40.0 { CMI8338.pcm.surround40.!0 {
@args [ CARD ] @args [ CARD ]
@args.CARD { @args.CARD {
type string type string
@ -90,7 +90,7 @@ CMI8338.pcm.surround40.0 {
<confdir:pcm/iec958.conf> <confdir:pcm/iec958.conf>
CMI8338.pcm.iec958.0 { CMI8338.pcm.iec958.!0 {
@args [ CARD AES0 AES1 AES2 AES3 ] @args [ CARD AES0 AES1 AES2 AES3 ]
@args.CARD { @args.CARD {
type string type string

View file

@ -4,7 +4,7 @@
<confdir:pcm/front.conf> <confdir:pcm/front.conf>
CMI8738-MC6.pcm.front.0 { CMI8738-MC6.pcm.front.!0 {
@args [ CARD ] @args [ CARD ]
@args.CARD { @args.CARD {
type string type string
@ -14,7 +14,7 @@ CMI8738-MC6.pcm.front.0 {
} }
# default with dmix/dsnoop # default with dmix/dsnoop
CMI8738-MC6.pcm.default { CMI8738-MC6.pcm.!default {
@args [ CARD ] @args [ CARD ]
@args.CARD { @args.CARD {
type string type string
@ -40,7 +40,7 @@ CMI8738-MC6.pcm.default {
# 2nd DAC # 2nd DAC
# FIXME: we need a volume attenuator for rear channel. # FIXME: we need a volume attenuator for rear channel.
CMI8738-MC6.pcm.rear.0 { CMI8738-MC6.pcm.rear.!0 {
@args [ CARD ] @args [ CARD ]
@args.CARD { @args.CARD {
type string type string
@ -52,7 +52,7 @@ CMI8738-MC6.pcm.rear.0 {
<confdir:pcm/surround40.conf> <confdir:pcm/surround40.conf>
CMI8738-MC6.pcm.surround40.0 { CMI8738-MC6.pcm.surround40.!0 {
@args [ CARD ] @args [ CARD ]
@args.CARD { @args.CARD {
type string type string
@ -82,7 +82,7 @@ CMI8738-MC6.pcm.surround40.0 {
<confdir:pcm/surround50.conf> <confdir:pcm/surround50.conf>
<confdir:pcm/surround51.conf> <confdir:pcm/surround51.conf>
CMI8738-MC6.pcm.surround51.0 { CMI8738-MC6.pcm.surround51.!0 {
@args [ CARD ] @args [ CARD ]
@args.CARD { @args.CARD {
type string type string
@ -109,7 +109,7 @@ CMI8738-MC6.pcm.surround51.0 {
<confdir:pcm/iec958.conf> <confdir:pcm/iec958.conf>
CMI8738-MC6.pcm.iec958.0 { CMI8738-MC6.pcm.iec958.!0 {
@args [ CARD AES0 AES1 AES2 AES3 ] @args [ CARD AES0 AES1 AES2 AES3 ]
@args.CARD { @args.CARD {
type string type string

View file

@ -4,7 +4,7 @@
<confdir:pcm/front.conf> <confdir:pcm/front.conf>
CMI8738-MC8.pcm.front.0 { CMI8738-MC8.pcm.front.!0 {
@args [ CARD ] @args [ CARD ]
@args.CARD { @args.CARD {
type string type string
@ -21,7 +21,7 @@ CMI8738-MC8.pcm.front.0 {
} }
# default with dmix+softvol & dsnoop # default with dmix+softvol & dsnoop
CMI8738-MC8.pcm.default { CMI8738-MC8.pcm.!default {
@args [ CARD ] @args [ CARD ]
@args.CARD { @args.CARD {
type string type string
@ -53,7 +53,7 @@ CMI8738-MC8.pcm.default {
<confdir:pcm/rear.conf> <confdir:pcm/rear.conf>
# 2nd DAC # 2nd DAC
CMI8738-MC8.pcm.rear.0 { CMI8738-MC8.pcm.rear.!0 {
@args [ CARD ] @args [ CARD ]
@args.CARD { @args.CARD {
type string type string
@ -72,7 +72,7 @@ CMI8738-MC8.pcm.rear.0 {
<confdir:pcm/surround40.conf> <confdir:pcm/surround40.conf>
CMI8738-MC8.pcm.surround40.0 { CMI8738-MC8.pcm.surround40.!0 {
@args [ CARD ] @args [ CARD ]
@args.CARD { @args.CARD {
type string type string
@ -110,7 +110,7 @@ CMI8738-MC8.pcm.surround40.0 {
<confdir:pcm/surround50.conf> <confdir:pcm/surround50.conf>
<confdir:pcm/surround51.conf> <confdir:pcm/surround51.conf>
CMI8738-MC8.pcm.surround51.0 { CMI8738-MC8.pcm.surround51.!0 {
@args [ CARD ] @args [ CARD ]
@args.CARD { @args.CARD {
type string type string
@ -144,7 +144,7 @@ CMI8738-MC8.pcm.surround51.0 {
<confdir:pcm/surround71.conf> <confdir:pcm/surround71.conf>
CMI8738-MC8.pcm.surround71.0 { CMI8738-MC8.pcm.surround71.!0 {
@args [ CARD ] @args [ CARD ]
@args.CARD { @args.CARD {
type string type string
@ -178,7 +178,7 @@ CMI8738-MC8.pcm.surround71.0 {
<confdir:pcm/iec958.conf> <confdir:pcm/iec958.conf>
CMI8738-MC8.pcm.iec958.0 { CMI8738-MC8.pcm.iec958.!0 {
@args [ CARD AES0 AES1 AES2 AES3 ] @args [ CARD AES0 AES1 AES2 AES3 ]
@args.CARD { @args.CARD {
type string type string

View file

@ -4,7 +4,7 @@
<confdir:pcm/front.conf> <confdir:pcm/front.conf>
CMI8788.pcm.front.0 { CMI8788.pcm.front.!0 {
@args [ CARD ] @args [ CARD ]
@args.CARD { @args.CARD {
type string type string
@ -14,7 +14,7 @@ CMI8788.pcm.front.0 {
} }
# default with dmix & dsnoop # default with dmix & dsnoop
CMI8788.pcm.default { CMI8788.pcm.!default {
@args [ CARD ] @args [ CARD ]
@args.CARD { @args.CARD {
type string type string
@ -38,7 +38,7 @@ CMI8788.pcm.default {
<confdir:pcm/surround40.conf> <confdir:pcm/surround40.conf>
CMI8788.pcm.surround40.0 { CMI8788.pcm.surround40.!0 {
@args [ CARD ] @args [ CARD ]
@args.CARD { @args.CARD {
type string type string
@ -53,7 +53,7 @@ CMI8788.pcm.surround40.0 {
<confdir:pcm/surround50.conf> <confdir:pcm/surround50.conf>
<confdir:pcm/surround51.conf> <confdir:pcm/surround51.conf>
CMI8788.pcm.surround51.0 { CMI8788.pcm.surround51.!0 {
@args [ CARD ] @args [ CARD ]
@args.CARD { @args.CARD {
type string type string
@ -65,7 +65,7 @@ CMI8788.pcm.surround51.0 {
<confdir:pcm/surround71.conf> <confdir:pcm/surround71.conf>
CMI8788.pcm.surround71.0 { CMI8788.pcm.surround71.!0 {
@args [ CARD ] @args [ CARD ]
@args.CARD { @args.CARD {
type string type string
@ -77,7 +77,7 @@ CMI8788.pcm.surround71.0 {
<confdir:pcm/iec958.conf> <confdir:pcm/iec958.conf>
CMI8788.pcm.iec958.0 { CMI8788.pcm.iec958.!0 {
@args [ CARD AES0 AES1 AES2 AES3 ] @args [ CARD AES0 AES1 AES2 AES3 ]
@args.CARD { @args.CARD {
type string type string