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-08-13 22:18:58.000000000 +0800 +++ alsa-ucm-conf-1.2.2/debian/changelog 2020-08-18 17:39:15.000000000 +0800 @@ -1,3 +1,11 @@ +alsa-ucm-conf (1.2.2-1ubuntu3) groovy; urgency=medium + + * d/p/0001-Add-support-for-Lenovo-ThinkStation-P620-Main-Audio.patch + Add proper stream and jack assignment to Lenovo ThinkStation P620 + (LP: #1891461) + + -- Kai-Heng Feng Tue, 18 Aug 2020 17:39:15 +0800 + alsa-ucm-conf (1.2.2-1ubuntu2) groovy; urgency=medium * d/p/0003-ucm-fix-wrong-If-in-sequence-in-HiFi-dual.conf.patch diff -Nru alsa-ucm-conf-1.2.2/debian/patches/0001-Add-support-for-Lenovo-ThinkStation-P620-Main-Audio.patch alsa-ucm-conf-1.2.2/debian/patches/0001-Add-support-for-Lenovo-ThinkStation-P620-Main-Audio.patch --- alsa-ucm-conf-1.2.2/debian/patches/0001-Add-support-for-Lenovo-ThinkStation-P620-Main-Audio.patch 1970-01-01 08:00:00.000000000 +0800 +++ alsa-ucm-conf-1.2.2/debian/patches/0001-Add-support-for-Lenovo-ThinkStation-P620-Main-Audio.patch 2020-08-18 17:20:12.000000000 +0800 @@ -0,0 +1,79 @@ +From fc489d2a140000eb2b04181dc6c97201376accfc Mon Sep 17 00:00:00 2001 +From: Kai-Heng Feng +Date: Thu, 6 Aug 2020 16:54:11 +0800 +Subject: [PATCH] Add support for Lenovo ThinkStation P620 Main Audio + +This add support for internal speaker and front headset. + +We need two separate configs to let PulseAudio understands they are two +different profiles, so the headset's port availability won't affect +speaker's profile availability. +--- + ...Lenovo-ThinkStation-P620-Main-Headset.conf | 19 +++++++++++++++++++ + ...Lenovo-ThinkStation-P620-Main-Speaker.conf | 9 +++++++++ + .../Lenovo-ThinkStation-P620-Main.conf | 11 +++++++++++ + 3 files changed, 39 insertions(+) + create mode 100644 ucm2/USB-Audio/Lenovo-ThinkStation-P620-Main-Headset.conf + create mode 100644 ucm2/USB-Audio/Lenovo-ThinkStation-P620-Main-Speaker.conf + create mode 100644 ucm2/USB-Audio/Lenovo-ThinkStation-P620-Main.conf + +diff --git a/ucm2/USB-Audio/Lenovo-ThinkStation-P620-Main-Headset.conf b/ucm2/USB-Audio/Lenovo-ThinkStation-P620-Main-Headset.conf +new file mode 100644 +index 0000000..5362c5e +--- /dev/null ++++ b/ucm2/USB-Audio/Lenovo-ThinkStation-P620-Main-Headset.conf +@@ -0,0 +1,19 @@ ++SectionDevice."Headphones" { ++ Comment "Headphones" ++ ++ Value { ++ PlaybackPriority 200 ++ PlaybackPCM "hw:${CardId},1" ++ JackControl "Headphone - Output Jack" ++ } ++} ++ ++SectionDevice."Microphone" { ++ Comment "Microphone" ++ ++ Value { ++ CapturePriority 200 ++ CapturePCM "hw:${CardId}" ++ JackControl "Mic - Input Jack" ++ } ++} +diff --git a/ucm2/USB-Audio/Lenovo-ThinkStation-P620-Main-Speaker.conf b/ucm2/USB-Audio/Lenovo-ThinkStation-P620-Main-Speaker.conf +new file mode 100644 +index 0000000..a83a947 +--- /dev/null ++++ b/ucm2/USB-Audio/Lenovo-ThinkStation-P620-Main-Speaker.conf +@@ -0,0 +1,9 @@ ++SectionDevice."Speaker" { ++ Comment "Speaker" ++ ++ Value { ++ PlaybackPriority 100 ++ PlaybackPCM "hw:${CardId}" ++ JackControl "Speaker - Output Jack" ++ } ++} +diff --git a/ucm2/USB-Audio/Lenovo-ThinkStation-P620-Main.conf b/ucm2/USB-Audio/Lenovo-ThinkStation-P620-Main.conf +new file mode 100644 +index 0000000..ad1bd91 +--- /dev/null ++++ b/ucm2/USB-Audio/Lenovo-ThinkStation-P620-Main.conf +@@ -0,0 +1,11 @@ ++Syntax 2 ++Comment "USB-audio on Lenovo ThinkStation P620 Main Audio" ++SectionUseCase."Speaker" { ++ Comment "Internal Speaker" ++ File "Lenovo-ThinkStation-P620-Main-Speaker.conf" ++} ++ ++SectionUseCase."Headset" { ++ Comment "Front Headset" ++ File "Lenovo-ThinkStation-P620-Main-Headset.conf" ++} +-- +2.17.1 + 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-08-13 22:18:27.000000000 +0800 +++ alsa-ucm-conf-1.2.2/debian/patches/series 2020-08-18 17:19:56.000000000 +0800 @@ -15,3 +15,5 @@ 0015-HDA-Intel-only-bind-the-acp-dmic-to-the-soundcard-wi.patch 0016-Fix-invalid-Regex-Type-in-various-Condition-blocks.patch +0001-Add-support-for-Lenovo-ThinkStation-P620-Main-Audio.patch +