diff -Nru alsa-ucm-conf-1.2.2/debian/changelog alsa-ucm-conf-1.2.2/debian/changelog --- alsa-ucm-conf-1.2.2/debian/changelog 2020-12-18 07:10:56.000000000 +0000 +++ alsa-ucm-conf-1.2.2/debian/changelog 2021-05-25 12:16:51.000000000 +0000 @@ -1,3 +1,10 @@ +alsa-ucm-conf (1.2.2-1ubuntu5.3) UNRELEASED; urgency=medium + + * d/p/0001-HDA-Intel-add-RearMic-JackControl.patch + Add "Rear Mic Jack" to make P520 rear mic works correctly. (LP: #1929371) + + -- Jeremy Szu Tue, 25 May 2021 12:16:51 +0000 + alsa-ucm-conf (1.2.2-1ubuntu5.2) groovy; urgency=medium * d/p/0001-rt715-init-setup-ADC07-to-a-proper-volume.patch diff -Nru alsa-ucm-conf-1.2.2/debian/patches/0025-HDA-Intel-add-RearMic-JackControl.patch alsa-ucm-conf-1.2.2/debian/patches/0025-HDA-Intel-add-RearMic-JackControl.patch --- alsa-ucm-conf-1.2.2/debian/patches/0025-HDA-Intel-add-RearMic-JackControl.patch 1970-01-01 00:00:00.000000000 +0000 +++ alsa-ucm-conf-1.2.2/debian/patches/0025-HDA-Intel-add-RearMic-JackControl.patch 2021-05-25 12:14:31.000000000 +0000 @@ -0,0 +1,34 @@ +From: Jeremy Szu +Date: Tue, 25 May 2021 12:13:37 +0000 +Subject: HDA-Intel-add-RearMic-JackControl + +On the LENOVO P520 (dual codecs machine), the Jack name of Rear Mic is +"Rear Mic Jack". + +Below is picked from alsa-info.txt on the LENOVO p520 machine: + control.18 { + iface CARD + name 'Rear Mic Jack' + value true + comment { + access read + type BOOLEAN + count 1 + } + } +--- + ucm2/HDA-Intel/HiFi-dual.conf | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/ucm2/HDA-Intel/HiFi-dual.conf b/ucm2/HDA-Intel/HiFi-dual.conf +index e0e814f..cff948e 100644 +--- a/ucm2/HDA-Intel/HiFi-dual.conf ++++ b/ucm2/HDA-Intel/HiFi-dual.conf +@@ -96,6 +96,7 @@ SectionDevice."Mic2" { + CapturePriority 300 + CapturePCM "hw:${CardId}" + JackHWMute "Line2" ++ JackControl "Rear Mic Jack" + } + + ConflictingDevice [ diff -Nru alsa-ucm-conf-1.2.2/debian/patches/series alsa-ucm-conf-1.2.2/debian/patches/series --- alsa-ucm-conf-1.2.2/debian/patches/series 2020-12-18 07:10:56.000000000 +0000 +++ alsa-ucm-conf-1.2.2/debian/patches/series 2021-05-25 12:15:02.000000000 +0000 @@ -28,3 +28,4 @@ 0001-rt715-init-setup-ADC07-to-a-proper-volume.patch +0025-HDA-Intel-add-RearMic-JackControl.patch