OSDN Git Service

Add support for Lenovo ThinkStation P620 Main Audio
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Thu, 20 Aug 2020 14:12:02 +0000 (22:12 +0800)
committerJaroslav Kysela <perex@perex.cz>
Mon, 7 Sep 2020 11:08:40 +0000 (13:08 +0200)
This add support for its internal speaker and front headset.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/USB-Audio/Lenovo-ThinkStation-P620-Main-HiFi.conf [new file with mode: 0644]
ucm2/USB-Audio/Lenovo-ThinkStation-P620-Main.conf [new file with mode: 0644]

diff --git a/ucm2/USB-Audio/Lenovo-ThinkStation-P620-Main-HiFi.conf b/ucm2/USB-Audio/Lenovo-ThinkStation-P620-Main-HiFi.conf
new file mode 100644 (file)
index 0000000..c515d46
--- /dev/null
@@ -0,0 +1,29 @@
+SectionDevice."Headphones" {
+       Comment "Headphones"
+
+       Value {
+               PlaybackPriority 200
+               PlaybackPCM "hw:${CardId},1"
+               JackControl "Headphone - Output Jack"
+       }
+}
+
+SectionDevice."Mic" {
+       Comment "Mic"
+
+       Value {
+               CapturePriority 200
+               CapturePCM "hw:${CardId}"
+               JackControl "Mic - Input Jack"
+       }
+}
+
+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 (file)
index 0000000..53ef729
--- /dev/null
@@ -0,0 +1,6 @@
+Syntax 2
+Comment "USB-audio on Lenovo ThinkStation P620 Main Audio"
+SectionUseCase."HiFi" {
+       Comment "Default"
+       File "Lenovo-ThinkStation-P620-Main-HiFi.conf"
+}