summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWhaleChang <whalechang@google.com>2024-04-16 15:37:07 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2024-04-18 07:32:57 +0000
commit1eef28056ce94cd0b7e156a66f5b0e3b6c6b0e96 (patch)
treeb86f08a14a9ad4f18aa8124a7bd4ca886d47af37
parent0504761822ba1aedf072cd898b57afd776ee1907 (diff)
downloadadhd-1eef28056ce94cd0b7e156a66f5b0e3b6c6b0e96.tar.gz
ucm: fix JieLi BR21 playback sound too small
JieLi BR21 incorrectly reports the volume range as 0, resulting in trigger software volume. Using software volume is not a problem. The problem is the volume range on the device is incorrect, resulting in the software volume not being able to set to the maximum. This fix ensures that the mixer control is set to the maximum volume and also flags the use of software volume. BUG=b:328817525 TEST=verify the fix with feedback report user Change-Id: I4f85fb55b577ea10f00379a701b982b242a0b8f6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/5457176 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: Ching Yun Chang <whalechang@google.com>
-rw-r--r--ucm-config/for_all_boards/JieLi BR21/HiFi.conf26
-rw-r--r--ucm-config/for_all_boards/JieLi BR21/JieLi BR21.conf6
2 files changed, 32 insertions, 0 deletions
diff --git a/ucm-config/for_all_boards/JieLi BR21/HiFi.conf b/ucm-config/for_all_boards/JieLi BR21/HiFi.conf
new file mode 100644
index 00000000..9d403405
--- /dev/null
+++ b/ucm-config/for_all_boards/JieLi BR21/HiFi.conf
@@ -0,0 +1,26 @@
+SectionVerb {
+ Value {
+ FullySpecifiedUCM "1"
+ DisableSoftwareVolume "0"
+ }
+
+ EnableSequence [
+ cdev "hw:BR21"
+ cset "name='PCM Playback Volume' 255"
+ ]
+
+ DisableSequence [
+ ]
+}
+
+SectionDevice."JieLi BR21 Output".0 {
+ Value {
+ PlaybackPCM "hw:BR21,0"
+ }
+}
+
+SectionDevice."JieLi BR21 Input".0 {
+ Value {
+ CapturePCM "hw:BR21,0"
+ }
+}
diff --git a/ucm-config/for_all_boards/JieLi BR21/JieLi BR21.conf b/ucm-config/for_all_boards/JieLi BR21/JieLi BR21.conf
new file mode 100644
index 00000000..c57870b7
--- /dev/null
+++ b/ucm-config/for_all_boards/JieLi BR21/JieLi BR21.conf
@@ -0,0 +1,6 @@
+Comment "JieLi BR21"
+
+SectionUseCase."HiFi" {
+ File "HiFi.conf"
+ Comment "Default"
+}