From 3af0be03645296b4d39555f71e17b87aef43856a Mon Sep 17 00:00:00 2001 From: WhaleChang Date: Thu, 23 Nov 2023 14:50:54 +0800 Subject: [PATCH] ucm: Arctis Pro Wireless The Arctis Pro Wireless has two pcm devices: hw:Wireless,0 for its bluetooth headset hw:Wireless,1 for external speakers. It also has two associated mixer controls: PCM,0 controls bluetooth headset volume PCM,1 controls external speakers. CRAS creates all devices in the soundcard, but it only shows the first device to the user. This means that users cannot use the external speakers path. To fix this issue, we need to explicitly map the correct settings of pcm device and mixer control in UCM. BUG=b:302668792 TEST=QA verify Arctis Pro Wireless Change-Id: Ie4aef266eb64dccc3b3cd41adf3b9bd0dfee1212 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/5056048 Reviewed-by: Hsinyu Chao Tested-by: chromeos-cop-builder@chromeos-cop.iam.gserviceaccount.com Commit-Queue: Ching Yun Chang --- .../Arctis Pro Wireless.conf | 6 ++++ .../Arctis Pro Wireless/HiFi.conf | 31 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 ucm-config/for_all_boards/Arctis Pro Wireless/Arctis Pro Wireless.conf create mode 100644 ucm-config/for_all_boards/Arctis Pro Wireless/HiFi.conf diff --git a/ucm-config/for_all_boards/Arctis Pro Wireless/Arctis Pro Wireless.conf b/ucm-config/for_all_boards/Arctis Pro Wireless/Arctis Pro Wireless.conf new file mode 100644 index 000000000..9beb5059b --- /dev/null +++ b/ucm-config/for_all_boards/Arctis Pro Wireless/Arctis Pro Wireless.conf @@ -0,0 +1,6 @@ +Comment "Arctis Pro Wireless" + +SectionUseCase."HiFi" { + File "HiFi.conf" + Comment "Default" +} diff --git a/ucm-config/for_all_boards/Arctis Pro Wireless/HiFi.conf b/ucm-config/for_all_boards/Arctis Pro Wireless/HiFi.conf new file mode 100644 index 000000000..610bd8345 --- /dev/null +++ b/ucm-config/for_all_boards/Arctis Pro Wireless/HiFi.conf @@ -0,0 +1,31 @@ +SectionVerb { + Value { + FullySpecifiedUCM "1" + } + + EnableSequence [ + ] + + DisableSequence [ + ] +} + +SectionDevice."Arctis Pro Wireless Output 0".0 { + Value { + PlaybackPCM "hw:Wireless,0" + PlaybackMixerElem "PCM,0" + } +} + +SectionDevice."Arctis Pro Wireless Output 1".0 { + Value { + PlaybackPCM "hw:Wireless,1" + PlaybackMixerElem "PCM,1" + } +} + +SectionDevice."Arctis Pro Wireless Input".0 { + Value { + CapturePCM "hw:Wireless,0" + } +}