mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-19 07:00:06 -05:00
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:
parent
bf780a25a5
commit
5c3075d32f
9 changed files with 1062 additions and 485 deletions
|
|
@ -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 }
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue