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:
Jaroslav Kysela 2025-11-17 18:36:32 +01:00
parent a8620e814b
commit 9e933a08ed
2 changed files with 107 additions and 42 deletions

View file

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