aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Ward <david.ward@gatech.edu>2020-02-09 10:06:52 -0500
committerJaroslav Kysela <perex@perex.cz>2020-02-19 10:26:11 +0100
commit98c6eabdfb0c98350bdaa1f491935a86fd9872da (patch)
tree76fff16814959952603dfc037498b1e54831e4cb
parentd943fb97d6e1ddf9596027a6d58fc169d8b51831 (diff)
broadwell-rt286: more conformance and other fixes
Remove JackHWMute, because the hardware does not forcibly shut off the internal speakers or microphone when the jack is in use. The CaptureMixerElem and CaptureMasterElem devices were swapped. Do not manually set the "ADC0 Capture Switch" when disabling a capture device; it will be set automatically instead. Correct "Handset" to "Headset". Apply maximum gain to the headset microphone ("AMIC Volume") when in use, based on testing. Signed-off-by: David Ward <david.ward@gatech.edu> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rw-r--r--ucm2/broadwell-rt286/HiFi.conf32
1 files changed, 13 insertions, 19 deletions
diff --git a/ucm2/broadwell-rt286/HiFi.conf b/ucm2/broadwell-rt286/HiFi.conf
index 611a03e..1dca382 100644
--- a/ucm2/broadwell-rt286/HiFi.conf
+++ b/ucm2/broadwell-rt286/HiFi.conf
@@ -2,7 +2,7 @@
# Adapted to Ubuntu Touch by David Henningsson <david.henningsson@canonical.com>
SectionDevice."Speaker" {
- Comment "Speaker playback"
+ Comment "Speakers"
ConflictingDevice [
"Headphones"
@@ -17,7 +17,7 @@ SectionDevice."Speaker" {
DisableSequence [
cset "name='Speaker Switch' off"
cset "name='Speaker Playback Switch' off"
- cset "name='SPO Switch' 0"
+ cset "name='SPO Switch' off"
]
Value {
@@ -29,7 +29,7 @@ SectionDevice."Speaker" {
}
SectionDevice."Headphones" {
- Comment "Headphones playback"
+ Comment "Headphones"
ConflictingDevice [
"Speaker"
@@ -54,35 +54,30 @@ SectionDevice."Headphones" {
PlaybackMasterElem "Master"
JackDev "rt286-jack"
JackControl "Headphone Jack"
- JackHWMute "Speaker"
}
}
SectionDevice."Mic" {
- Comment "Microphone"
+ Comment "Internal Microphone"
ConflictingDevice [
- "Handset"
+ "Headset"
]
EnableSequence [
cset "name='ADC 0 Mux' 2"
]
- DisableSequence [
- cset "name='ADC0 Capture Switch' off"
- ]
-
Value {
CapturePriority 100
CapturePCM "hw:${CardId}"
- CaptureMixerElem "Mic"
- CaptureMasterElem "ADC0"
+ CaptureMixerElem "ADC0"
+ CaptureMasterElem "Mic"
}
}
-SectionDevice."Handset" {
- Comment "Handset Microphone"
+SectionDevice."Headset" {
+ Comment "Headset Microphone"
ConflictingDevice [
"Mic"
@@ -90,20 +85,19 @@ SectionDevice."Handset" {
EnableSequence [
cset "name='ADC 0 Mux' 0"
- cset "name='AMIC Volume' 1"
+ cset "name='AMIC Volume' 3"
]
DisableSequence [
- cset "name='ADC0 Capture Switch' off"
+ cset "name='AMIC Volume' 0"
]
Value {
CapturePriority 200
CapturePCM "hw:${CardId}"
- CaptureMixerElem "Mic"
- CaptureMasterElem "ADC0"
+ CaptureMixerElem "ADC0"
+ CaptureMasterElem "Mic"
JackDev "rt286-jack"
JackControl "Mic Jack"
- JackHWMute "Mic"
}
}