summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu-Hsuan Hsu <yuhsuan@chromium.org>2021-04-07 14:04:27 +0800
committerCommit Bot <commit-bot@chromium.org>2021-04-07 13:01:24 +0000
commit3624a4296888926a21462bfd499d4ba91268046b (patch)
treeca7dfc0be4d7537a809cfa92da9a783e199da92e
parentbc7c7d6cfcc99b06fcc504ff4a62388e34153041 (diff)
downloadadhd-3624a4296888926a21462bfd499d4ba91268046b.tar.gz
ucm-config: Use the software volume on Mi Earphones
If we use the hardware volume control, the device will 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: I6b014a410cc4037457af15b05b4ae1f895494797 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/2809828 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/Mi Dual Driver Earphones Type-C/HiFi.conf25
-rw-r--r--ucm-config/for_all_boards/Mi Dual Driver Earphones Type-C/Mi Dual Driver Earphones Type-C.conf6
2 files changed, 31 insertions, 0 deletions
diff --git a/ucm-config/for_all_boards/Mi Dual Driver Earphones Type-C/HiFi.conf b/ucm-config/for_all_boards/Mi Dual Driver Earphones Type-C/HiFi.conf
new file mode 100644
index 00000000..9d63e16e
--- /dev/null
+++ b/ucm-config/for_all_boards/Mi Dual Driver Earphones Type-C/HiFi.conf
@@ -0,0 +1,25 @@
+SectionVerb {
+ Value {
+ FullySpecifiedUCM "1"
+ }
+
+ EnableSequence [
+ cdev "hw:TypeC"
+ cset "name='PCM Playback Volume' 45"
+ ]
+
+ DisableSequence [
+ ]
+}
+
+SectionDevice."Mi Earphones Output".0 {
+ Value {
+ PlaybackPCM "hw:TypeC,0"
+ }
+}
+
+SectionDevice."Mi Earphones Input".0 {
+ Value {
+ CapturePCM "hw:TypeC,0"
+ }
+}
diff --git a/ucm-config/for_all_boards/Mi Dual Driver Earphones Type-C/Mi Dual Driver Earphones Type-C.conf b/ucm-config/for_all_boards/Mi Dual Driver Earphones Type-C/Mi Dual Driver Earphones Type-C.conf
new file mode 100644
index 00000000..df19b47b
--- /dev/null
+++ b/ucm-config/for_all_boards/Mi Dual Driver Earphones Type-C/Mi Dual Driver Earphones Type-C.conf
@@ -0,0 +1,6 @@
+Comment "Mi Dual Driver Earphones Type-C"
+
+SectionUseCase."HiFi" {
+ File "HiFi.conf"
+ Comment "Default"
+}