Skip to content

Commit

Permalink
ucm: Arctis Pro Wireless
Browse files Browse the repository at this point in the history
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 <hychao@chromium.org>
Tested-by: chromeos-cop-builder@chromeos-cop.iam.gserviceaccount.com <chromeos-cop-builder@chromeos-cop.iam.gserviceaccount.com>
Commit-Queue: Ching Yun Chang <whalechang@google.com>
  • Loading branch information
WhaleChang authored and Chromeos LUCI committed Nov 30, 2023
1 parent 7d72673 commit 3af0be0
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Comment "Arctis Pro Wireless"

SectionUseCase."HiFi" {
File "HiFi.conf"
Comment "Default"
}
31 changes: 31 additions & 0 deletions ucm-config/for_all_boards/Arctis Pro Wireless/HiFi.conf
Original file line number Diff line number Diff line change
@@ -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"
}
}

0 comments on commit 3af0be0

Please sign in to comment.