Skip to content

Commit

Permalink
Add support for Lenovo ThinkStation P620 Main Audio
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
khfeng committed Aug 6, 2020
1 parent 3e89730 commit 1949094
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
19 changes: 19 additions & 0 deletions 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"
}
}
9 changes: 9 additions & 0 deletions 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"
}
}
11 changes: 11 additions & 0 deletions 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"
}

0 comments on commit 1949094

Please sign in to comment.