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 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