mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-29 06:59:53 -05:00
Ok, back to use '@func refer' inside alsa.conf (following Abramo's
interpellation).
This commit is contained in:
parent
735e5473e0
commit
455edb9e21
9 changed files with 264 additions and 549 deletions
|
|
@ -2,54 +2,26 @@
|
|||
# Configuration for the ENS1370 chip
|
||||
#
|
||||
|
||||
pcm.ens1370_front {
|
||||
@args [ CARD DEV SUBDEV ]
|
||||
@args.CARD {
|
||||
type integer
|
||||
}
|
||||
@args.DEV {
|
||||
type integer
|
||||
}
|
||||
@args.SUBDEV {
|
||||
type integer
|
||||
default -1
|
||||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device $DEV
|
||||
subdevice $SUBDEV
|
||||
}
|
||||
|
||||
pcm.front_0 {
|
||||
cards.ENS1370.pcm.front.0 {
|
||||
@args [ CARD ]
|
||||
@args.CARD {
|
||||
type integer
|
||||
}
|
||||
@func refer
|
||||
name {
|
||||
@func concat
|
||||
strings [ "pcm.ens1370_front:" $CARD ",0,-1" ]
|
||||
}
|
||||
}
|
||||
type hw
|
||||
card $CARD
|
||||
device 1
|
||||
}
|
||||
|
||||
pcm.ens1370_rear {
|
||||
@args [ CARD DEV SUBDEV ]
|
||||
cards.ENS1370.pcm.rear.0 {
|
||||
@args [ CARD ]
|
||||
@args.CARD {
|
||||
type integer
|
||||
}
|
||||
@args.DEV {
|
||||
type integer
|
||||
}
|
||||
@args.SUBDEV {
|
||||
type integer
|
||||
default -1
|
||||
}
|
||||
type hooks
|
||||
slave.pcm {
|
||||
@func concat
|
||||
strings [
|
||||
"pcm.ens1370_front:" $CARD "," $DEV "," $SUBDEV
|
||||
]
|
||||
type hw
|
||||
card $CARD
|
||||
device 0
|
||||
}
|
||||
hooks.0 {
|
||||
type ctl_elems
|
||||
|
|
@ -70,19 +42,7 @@ pcm.ens1370_rear {
|
|||
}
|
||||
}
|
||||
|
||||
pcm.rear_0 {
|
||||
@args [ CARD ]
|
||||
@args.CARD {
|
||||
type integer
|
||||
}
|
||||
@func refer
|
||||
name {
|
||||
@func concat
|
||||
strings [ "pcm.ens1370_rear:" $CARD ",0,-1" ]
|
||||
}
|
||||
}
|
||||
|
||||
pcm.surround40_0 {
|
||||
cards.ENS1370.pcm.surround40.0 {
|
||||
@args [ CARD ]
|
||||
@args.CARD {
|
||||
type integer
|
||||
|
|
@ -94,7 +54,7 @@ pcm.surround40_0 {
|
|||
pcm {
|
||||
@func concat
|
||||
strings [
|
||||
"pcm.ens1370_front:" $CARD ",0,-1"
|
||||
"cards.ENS1370.pcm.front.0:CARD=" $CARD
|
||||
]
|
||||
}
|
||||
channels 2
|
||||
|
|
@ -103,7 +63,7 @@ pcm.surround40_0 {
|
|||
pcm {
|
||||
@func concat
|
||||
strings [
|
||||
"pcm.ens1370_rear:" $CARD ",0,-1"
|
||||
"cards.ENS1370.pcm.rear.0:CARD=" $CARD
|
||||
]
|
||||
}
|
||||
channels 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue