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-09-02 09:21:23.000000000 +0800 +++ alsa-ucm-conf-1.2.2/debian/changelog 2020-09-15 21:58:46.000000000 +0800 @@ -1,3 +1,11 @@ +alsa-ucm-conf (1.2.2-1ubuntu0.4) focal; urgency=medium + + * d/p/0001-ucm2-USB-Audio-Add-more-support-to-Lenovo-ThinkStati.patch + Add MixerElem and proper PCM assignment to Lenovo P620 Main and Rear + audio, respectively (LP: #1895669) + + -- Kai-Heng Feng Tue, 15 Sep 2020 21:58:46 +0800 + alsa-ucm-conf (1.2.2-1ubuntu0.3) focal; urgency=medium * /d/p/0018-USB-Audio-Dell-WD15-Dock-make-input-and-output-volum.patch diff -Nru alsa-ucm-conf-1.2.2/debian/patches/0001-ucm2-USB-Audio-Add-more-support-to-Lenovo-ThinkStati.patch alsa-ucm-conf-1.2.2/debian/patches/0001-ucm2-USB-Audio-Add-more-support-to-Lenovo-ThinkStati.patch --- alsa-ucm-conf-1.2.2/debian/patches/0001-ucm2-USB-Audio-Add-more-support-to-Lenovo-ThinkStati.patch 1970-01-01 08:00:00.000000000 +0800 +++ alsa-ucm-conf-1.2.2/debian/patches/0001-ucm2-USB-Audio-Add-more-support-to-Lenovo-ThinkStati.patch 2020-09-15 21:23:11.000000000 +0800 @@ -0,0 +1,103 @@ +From 44b58af40757318a5645a70108ac79c181591f09 Mon Sep 17 00:00:00 2001 +From: Kai-Heng Feng +Date: Tue, 15 Sep 2020 20:22:22 +0800 +Subject: [PATCH] ucm2: USB-Audio: Add more support to Lenovo ThinkStation P620 + +Add MixerElem and proper PCM assignment to Lenovo P620 Main and Rear +audio, respectively. + +Signed-off-by: Kai-Heng Feng +--- + .../Lenovo-ThinkStation-P620-Main-Headset.conf | 1 + + .../Lenovo-ThinkStation-P620-Rear-Line.conf | 10 ++++++++++ + .../Lenovo-ThinkStation-P620-Rear-Mic.conf | 10 ++++++++++ + .../Lenovo-ThinkStation-P620-Rear-Speaker.conf | 8 ++++++++ + .../USB-Audio/Lenovo-ThinkStation-P620-Rear.conf | 16 ++++++++++++++++ + 5 files changed, 45 insertions(+) + create mode 100644 ucm2/USB-Audio/Lenovo-ThinkStation-P620-Rear-Line.conf + create mode 100644 ucm2/USB-Audio/Lenovo-ThinkStation-P620-Rear-Mic.conf + create mode 100644 ucm2/USB-Audio/Lenovo-ThinkStation-P620-Rear-Speaker.conf + create mode 100644 ucm2/USB-Audio/Lenovo-ThinkStation-P620-Rear.conf + +diff --git a/ucm2/USB-Audio/Lenovo-ThinkStation-P620-Main-Headset.conf b/ucm2/USB-Audio/Lenovo-ThinkStation-P620-Main-Headset.conf +index 5362c5e..f0f01ad 100644 +--- a/ucm2/USB-Audio/Lenovo-ThinkStation-P620-Main-Headset.conf ++++ b/ucm2/USB-Audio/Lenovo-ThinkStation-P620-Main-Headset.conf +@@ -15,5 +15,6 @@ SectionDevice."Microphone" { + CapturePriority 200 + CapturePCM "hw:${CardId}" + JackControl "Mic - Input Jack" ++ CaptureMixerElem "Mic" + } + } +diff --git a/ucm2/USB-Audio/Lenovo-ThinkStation-P620-Rear-Line.conf b/ucm2/USB-Audio/Lenovo-ThinkStation-P620-Rear-Line.conf +new file mode 100644 +index 0000000..f372989 +--- /dev/null ++++ b/ucm2/USB-Audio/Lenovo-ThinkStation-P620-Rear-Line.conf +@@ -0,0 +1,10 @@ ++SectionDevice."Line" { ++ Comment "Line In" ++ ++ Value { ++ CapturePriority 100 ++ CapturePCM "hw:${CardId}" ++ JackControl "Line - Input Jack" ++ CaptureMixerElem "Line" ++ } ++} +diff --git a/ucm2/USB-Audio/Lenovo-ThinkStation-P620-Rear-Mic.conf b/ucm2/USB-Audio/Lenovo-ThinkStation-P620-Rear-Mic.conf +new file mode 100644 +index 0000000..44a79d0 +--- /dev/null ++++ b/ucm2/USB-Audio/Lenovo-ThinkStation-P620-Rear-Mic.conf +@@ -0,0 +1,10 @@ ++SectionDevice."Mic" { ++ Comment "Microphone" ++ ++ Value { ++ CapturePriority 200 ++ CapturePCM "hw:${CardId},1" ++ JackControl "Mic - Input Jack" ++ CaptureMixerElem "Mic" ++ } ++} +diff --git a/ucm2/USB-Audio/Lenovo-ThinkStation-P620-Rear-Speaker.conf b/ucm2/USB-Audio/Lenovo-ThinkStation-P620-Rear-Speaker.conf +new file mode 100644 +index 0000000..edebbd3 +--- /dev/null ++++ b/ucm2/USB-Audio/Lenovo-ThinkStation-P620-Rear-Speaker.conf +@@ -0,0 +1,8 @@ ++SectionDevice."Speaker" { ++ Comment "Speaker" ++ ++ Value { ++ PlaybackPCM "hw:${CardId}" ++ JackControl "Speaker - Output Jack" ++ } ++} +diff --git a/ucm2/USB-Audio/Lenovo-ThinkStation-P620-Rear.conf b/ucm2/USB-Audio/Lenovo-ThinkStation-P620-Rear.conf +new file mode 100644 +index 0000000..42e436b +--- /dev/null ++++ b/ucm2/USB-Audio/Lenovo-ThinkStation-P620-Rear.conf +@@ -0,0 +1,16 @@ ++Syntax 2 ++Comment "USB-audio on Lenovo ThinkStation P620 Rear Audio" ++SectionUseCase."Line" { ++ Comment "Line In" ++ File "Lenovo-ThinkStation-P620-Rear-Line.conf" ++} ++ ++SectionUseCase."Speaker" { ++ Comment "Speaker" ++ File "Lenovo-ThinkStation-P620-Rear-Speaker.conf" ++} ++ ++SectionUseCase."Mic" { ++ Comment "Microphone" ++ File "Lenovo-ThinkStation-P620-Rear-Mic.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-09-02 09:21:23.000000000 +0800 +++ alsa-ucm-conf-1.2.2/debian/patches/series 2020-09-15 21:56:53.000000000 +0800 @@ -17,3 +17,5 @@ 0017-Add-support-for-Lenovo-ThinkStation-P620-Main-Audio.patch 0018-USB-Audio-Dell-WD15-Dock-make-input-and-output-volum.patch + +0001-ucm2-USB-Audio-Add-more-support-to-Lenovo-ThinkStati.patch