Skip to content

Commit

Permalink
HDA-DualCodecs: Fix wrong jack control on Lenovo P520
Browse files Browse the repository at this point in the history
Lenovo P520 uses the same line out switch like other dual codecs
systems, however it uses another jack control. So consolidate the switch and
separate the jacks to make its jack control work again.

From: Kai-Heng Feng <kai.heng.feng@canonical.com>
Fixes: 7dda1e2 ("HDA: improve support for HDAudio-Gigabyte-ALC1220DualCodecs")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
  • Loading branch information
perexg committed May 10, 2022
1 parent 701775d commit 56bf69c
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions ucm2/HDA/DualCodecs/HiFi.conf
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,15 @@ SectionDevice."Line1" {
Type ControlExists
Control "name='Front Playback Switch'"
}
True {
Value {
PlaybackMixerElem "Front"
JackControl "Line Out Front Jack"
}
}
False {
Value {
JackControl "Line Out Jack"
JackHWMute "Speaker"
}
True.Value.PlaybackMixerElem "Front"
}
If.1 {
Condition {
Type ControlExists
Control "iface=CARD,name='Line Out Front Jack'"
}
True.Value.JackControl "Line Out Front Jack"
False.Value.JackControl "Line Out Jack"
}
}

Expand Down Expand Up @@ -104,7 +101,6 @@ SectionDevice."Headphones" {
}
True.Value.JackHWMute "Speaker"
}

}

SectionDevice."Line2" {
Expand Down

0 comments on commit 56bf69c

Please sign in to comment.