Ok, back to use '@func refer' inside alsa.conf (following Abramo's

interpellation).
This commit is contained in:
Jaroslav Kysela 2001-06-19 10:36:31 +00:00
parent 735e5473e0
commit 455edb9e21
9 changed files with 264 additions and 549 deletions

View file

@ -2,54 +2,26 @@
# Configuration for the SI7018 chip
#
pcm.si7018_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.SI_7018.pcm.front.0 {
@args [ CARD ]
@args.CARD {
type integer
}
@func refer
name {
@func concat
strings [ "pcm.si7018_front:" $CARD ",0,-1" ]
}
}
type hw
card $CARD
device 0
}
pcm.si7018_rear {
@args [ CARD DEV SUBDEV ]
cards.SI_7018.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.si7018_front:" $CARD "," $DEV "," $SUBDEV
]
type hw
card $CARD
device 0
}
hooks.0 {
type ctl_elems
@ -64,19 +36,7 @@ pcm.si7018_rear {
}
}
pcm.rear_0 {
@args [ CARD ]
@args.CARD {
type integer
}
@func refer
name {
@func concat
strings [ "pcm.si7018_rear:" $CARD ",0,-1" ]
}
}
pcm.surround40_0 {
cards.SI_7018.pcm.surround40.0 {
@args [ CARD ]
@args.CARD {
type integer
@ -87,7 +47,7 @@ pcm.surround40_0 {
pcm {
@func concat
strings [
"pcm.si7018_front:" $CARD ",0,-1"
"cards.SI_7018.pcm.front.0:CARD=" $CARD
]
}
channels 2
@ -96,7 +56,7 @@ pcm.surround40_0 {
pcm {
@func concat
strings [
"pcm.si7018_rear:" $CARD ",0,-1"
"cards.SI_7018.pcm.rear.0:CARD=" $CARD
]
}
channels 2