Skip to content

Commit

Permalink
ucm: fix sof-hda-dsp ucm2 configuraiton
Browse files Browse the repository at this point in the history
The nest level of the capture switch is wrong,
it needs to be moved outside the value section.

BUG=b:314172000
TEST=audio recorder app works with these ucm contents on target device

Change-Id: I81414a5f75dc7feb776b8943e4c54eb4b1df2782
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/5121392
Tested-by: Jiao Zhou <jiaozhou@google.com>
Auto-Submit: Jiao Zhou <jiaozhou@google.com>
Reviewed-by: Steve Kendall <skend@google.com>
Reviewed-by: Terry Cheong <htcheong@chromium.org>
Tested-by: chromeos-cop-builder@chromeos-cop.iam.gserviceaccount.com <chromeos-cop-builder@chromeos-cop.iam.gserviceaccount.com>
Reviewed-by: Curtis Malainey <cujomalainey@chromium.org>
Commit-Queue: Curtis Malainey <cujomalainey@chromium.org>
  • Loading branch information
Jiao Zhou authored and Chromeos LUCI committed Dec 18, 2023
1 parent 1fe12d6 commit 70725c2
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions ucm-config/for_all_boards_ucm2/sof-hda-dsp/HiFi.conf
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,20 @@ SectionDevice."Mic".0 {
}
}
JackDev "sof-hda-dsp Mic"
If.captureswitch {
Condition {
Type ControlExists
Control "name='Capture Switch'"
}
True {
EnableSequence [
cset "name='Capture Volume' 60%"
cset "name='Capture Switch' on"
]
}
}
If.captureswitch {
Condition {
Type ControlExists
Control "name='Capture Switch'"
}
True {
EnableSequence [
cset "name='Capture Volume' 60%"
cset "name='Capture Switch' on"
]
DisableSequence [
cset "name='Capture Switch' off"
]
}
}
EnableSequence [
Expand Down

0 comments on commit 70725c2

Please sign in to comment.