Enhanced configuration syntax (added [ ] block for arrays).

The snd_config_expand functions expands the runtime contents (@func...).
Removed the environment variable replace code from the configuration parser.
Updated the alsa.conf configuration file.
This commit is contained in:
Jaroslav Kysela 2001-06-13 09:31:05 +00:00
parent bf780a25a5
commit 5c3075d32f
9 changed files with 1062 additions and 485 deletions

View file

@ -3,16 +3,14 @@
#
pcm.front {
$.0 CARD
$.1 DEV
$.2 SUBDEV
$.CARD {
args [ CARD DEV SUBDEV ]
args.CARD {
type integer
}
$.DEV {
args.DEV {
type integer
}
$.SUBDEV {
args.SUBDEV {
type integer
default -1
}
@ -28,16 +26,14 @@ pcm_slave.front {
}
pcm.rear {
$.0 CARD
$.1 DEV
$.2 SUBDEV
$.CARD {
args [ CARD DEV SUBDEV ]
args.CARD {
type integer
}
$.DEV {
args.DEV {
type integer
}
$.SUBDEV {
args.SUBDEV {
type integer
default -1
}
@ -53,19 +49,29 @@ pcm_slave.rear {
}
pcm.surround40_0_trident_dx_nx {
$.0 CARD
$.CARD {
args [ CARD ]
args.CARD {
type integer
}
type multi
slaves {
0 "pcm_slave.front:$(CARD),0,-1"
1 "pcm_slave.rear:$(CARD),0,-1"
}
bindings {
0 { slave 0 channel 0 }
1 { slave 0 channel 1 }
2 { slave 1 channel 0 }
3 { slave 1 channel 1 }
}
slaves [
{
@func concat
strings [
"pcm_slave.front:" $(CARD) ",0,-1"
]
}
{
@func concat
strings [
"pcm_slave.rear:" $(CARD) ",0,-1"
]
}
]
bindings [
{ slave 0 channel 0 }
{ slave 0 channel 1 }
{ slave 1 channel 0 }
{ slave 1 channel 1 }
]
}