summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu-Hsuan Hsu <yuhsuan@chromium.org>2021-04-06 14:18:44 +0800
committerCommit Bot <commit-bot@chromium.org>2021-04-06 19:16:30 +0000
commitbc7c7d6cfcc99b06fcc504ff4a62388e34153041 (patch)
tree5a39c3e402fc027a4d54f52d6992eae5916a521e
parentc2260aea977564db35ad5be09b257d522d4bf4bc (diff)
downloadadhd-bc7c7d6cfcc99b06fcc504ff4a62388e34153041.tar.gz
ucm-config: Use the software volume on HUAWEI Headset
If we use the hardware volume control, the device somehow output the loud voice just after plugged. Use the software volume instead to fix this issue. BUG=b:183909450 TEST=Verified by ODM Change-Id: Idc77078a11aee64186557511893676db8ffe20e0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/2807221 Reviewed-by: Cheng-Yi Chiang <cychiang@chromium.org> Commit-Queue: Yu-Hsuan Hsu <yuhsuan@chromium.org> Tested-by: Yu-Hsuan Hsu <yuhsuan@chromium.org>
-rw-r--r--ucm-config/for_all_boards/HUAWEI USB-C HEADSET/HUAWEI USB-C HEADSET.conf6
-rw-r--r--ucm-config/for_all_boards/HUAWEI USB-C HEADSET/HiFi.conf25
2 files changed, 31 insertions, 0 deletions
diff --git a/ucm-config/for_all_boards/HUAWEI USB-C HEADSET/HUAWEI USB-C HEADSET.conf b/ucm-config/for_all_boards/HUAWEI USB-C HEADSET/HUAWEI USB-C HEADSET.conf
new file mode 100644
index 00000000..c1db5193
--- /dev/null
+++ b/ucm-config/for_all_boards/HUAWEI USB-C HEADSET/HUAWEI USB-C HEADSET.conf
@@ -0,0 +1,6 @@
+Comment "HUAWEI USB-C HEADSET"
+
+SectionUseCase."HiFi" {
+ File "HiFi.conf"
+ Comment "Default"
+}
diff --git a/ucm-config/for_all_boards/HUAWEI USB-C HEADSET/HiFi.conf b/ucm-config/for_all_boards/HUAWEI USB-C HEADSET/HiFi.conf
new file mode 100644
index 00000000..d48942bf
--- /dev/null
+++ b/ucm-config/for_all_boards/HUAWEI USB-C HEADSET/HiFi.conf
@@ -0,0 +1,25 @@
+SectionVerb {
+ Value {
+ FullySpecifiedUCM "1"
+ }
+
+ EnableSequence [
+ cdev "hw:HEADSET"
+ cset "name='PCM Playback Volume' 45"
+ ]
+
+ DisableSequence [
+ ]
+}
+
+SectionDevice."HUAWEI USB-C HEADSET Output".0 {
+ Value {
+ PlaybackPCM "hw:HEADSET,0"
+ }
+}
+
+SectionDevice."HUAWEI USB-C HEADSET Input".0 {
+ Value {
+ CapturePCM "hw:HEADSET,0"
+ }
+}