aboutsummaryrefslogtreecommitdiff
path: root/ucm2
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2020-06-24 10:39:42 +0200
committerJaroslav Kysela <perex@perex.cz>2020-06-24 10:39:51 +0200
commit6ed067e0d448b34eaa8217f9785830aa1a3f716f (patch)
tree66777551afb34c15ac08494610c239c4a898757e /ucm2
parent450bebd628975ffab153978b80f1493100910e53 (diff)
sof-hda-dsp: make the boot init optional for all controls
Also don't initialize "Auto-Mute Mode" in the HiFi verb. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'ucm2')
-rw-r--r--ucm2/sof-hda-dsp/HiFi.conf12
-rw-r--r--ucm2/sof-hda-dsp/sof-hda-dsp.conf53
2 files changed, 43 insertions, 22 deletions
diff --git a/ucm2/sof-hda-dsp/HiFi.conf b/ucm2/sof-hda-dsp/HiFi.conf
index 1279488..5c03da1 100644
--- a/ucm2/sof-hda-dsp/HiFi.conf
+++ b/ucm2/sof-hda-dsp/HiFi.conf
@@ -1,17 +1,7 @@
# Use case Configuration for sof-hda-dsp
SectionVerb {
- If.automute {
- Condition {
- Type ControlExists
- Control "name='Auto-Mute Mode'"
- }
- True {
- EnableSequence [
- cset "name='Auto-Mute Mode' 'Disabled'"
- ]
- }
- }
+ Value.TQ "HiFi"
}
SectionDevice."Headphones" {
diff --git a/ucm2/sof-hda-dsp/sof-hda-dsp.conf b/ucm2/sof-hda-dsp/sof-hda-dsp.conf
index 24d0359..c8069a6 100644
--- a/ucm2/sof-hda-dsp/sof-hda-dsp.conf
+++ b/ucm2/sof-hda-dsp/sof-hda-dsp.conf
@@ -7,21 +7,52 @@ SectionUseCase."HiFi" {
# the kcontrols initial values, which will be set by `alsactl init`
-BootSequence [
- cset "name='Master Playback Volume' 80"
- cset "name='Headphone Playback Volume' 80"
- cset "name='Speaker Playback Volume' 80"
- cset "name='Auto-Mute Mode' off"
-]
+If.amute {
+ Condition {
+ Type ControlExists
+ Control "name='Auto-Mute Mode'"
+ }
+ True.BootSequence [
+ cset "name='Auto-Mute Mode' off"
+ ]
+}
+
+If.master {
+ Condition {
+ Type ControlExists
+ Control "name='Master Playback Volume'"
+ }
+ True.BootSequence [
+ cset "name='Master Playback Volume' 60%"
+ ]
+}
+
+If.speaker {
+ Condition {
+ Type ControlExists
+ Control "name='Speaker Playback Volume'"
+ }
+ True.BootSequence [
+ cset "name='Speaker Playback Volume' 60%"
+ ]
+}
+
+If.headphone {
+ Condition {
+ Type ControlExists
+ Control "name='Headphone Playback Volume'"
+ }
+ True.BootSequence [
+ cset "name='Headphone Playback Volume' 60%"
+ ]
+}
If.Dmic0 {
Condition {
Type ControlExists
Control "name='Dmic0 Capture Volume'"
}
- True {
- BootSequence [
- cset "name='Dmic0 Capture Volume' 70"
- ]
- }
+ True.BootSequence [
+ cset "name='Dmic0 Capture Volume' 70%"
+ ]
}