mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-03-20 05:33:44 -04:00
ucm: add possibility to inline Verb configurations to the main configuration file
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
a8620e814b
commit
9e933a08ed
2 changed files with 107 additions and 42 deletions
|
|
@ -63,7 +63,7 @@ use case verbs for that sound card. i.e.:
|
|||
# Example master file for blah sound card
|
||||
# By Joe Blogs <joe@bloggs.org>
|
||||
|
||||
Syntax 7
|
||||
Syntax 8
|
||||
|
||||
# Use Case name for user interface
|
||||
Comment "Nice Abstracted Soundcard"
|
||||
|
|
@ -80,6 +80,31 @@ SectionUseCase."HiFi" {
|
|||
Comment "Play and record HiFi quality Music."
|
||||
}
|
||||
|
||||
# Since Syntax 8, you can also use Config to specify configuration inline
|
||||
# instead of referencing an external file. Only one of File or Config can be used.
|
||||
|
||||
SectionUseCase."Inline Example" {
|
||||
Comment "Example with inline configuration"
|
||||
Config {
|
||||
SectionVerb {
|
||||
EnableSequence [
|
||||
cset "name='Power Save' off"
|
||||
]
|
||||
DisableSequence [
|
||||
cset "name='Power Save' on"
|
||||
]
|
||||
}
|
||||
SectionDevice."Speaker" {
|
||||
EnableSequence [
|
||||
cset "name='Speaker Switch' on"
|
||||
]
|
||||
DisableSequence [
|
||||
cset "name='Speaker Switch' off"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Define Value defaults
|
||||
|
||||
ValueDefaults {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue