mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-19 07:00:06 -05:00
Added argument handling for the slave PCMs.
The configuration root (snd_config) can be specified for the internal routines. The pcm_hooks code was recoded (independent code moved to control/setup.c). Improved the pcm_multi plugin (added master configuration).
This commit is contained in:
parent
61bf03ce70
commit
bf780a25a5
29 changed files with 1179 additions and 1070 deletions
|
|
@ -2,17 +2,70 @@
|
|||
# Configuration for the SI7018 chip
|
||||
#
|
||||
|
||||
pcm.surround40_0_trident_dx_nx {
|
||||
pcm.front {
|
||||
$.0 CARD
|
||||
$.1 DEV
|
||||
$.2 SUBDEV
|
||||
$.CARD {
|
||||
type integer
|
||||
}
|
||||
$.DEV {
|
||||
type integer
|
||||
}
|
||||
$.SUBDEV {
|
||||
type integer
|
||||
default -1
|
||||
}
|
||||
type hw
|
||||
card $(CARD)
|
||||
device $(DEV)
|
||||
subdevice -1
|
||||
subdevice $(SUBDEV)
|
||||
}
|
||||
|
||||
pcm_slave.front {
|
||||
pcm pcm.front
|
||||
channels 2
|
||||
}
|
||||
|
||||
pcm.rear {
|
||||
$.0 CARD
|
||||
$.1 DEV
|
||||
$.2 SUBDEV
|
||||
$.CARD {
|
||||
type integer
|
||||
}
|
||||
$.DEV {
|
||||
type integer
|
||||
}
|
||||
$.SUBDEV {
|
||||
type integer
|
||||
default -1
|
||||
}
|
||||
type hw
|
||||
card $(CARD)
|
||||
device $(DEV)
|
||||
subdevice $(SUBDEV)
|
||||
}
|
||||
|
||||
pcm_slave.rear {
|
||||
pcm pcm.rear
|
||||
channels 2
|
||||
}
|
||||
|
||||
pcm.surround40_0_trident_dx_nx {
|
||||
$.0 CARD
|
||||
$.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 }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue