New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Lenovo ThinkStation P620 Main Audio #42
Conversation
1949094
to
3307c61
Compare
3307c61
to
fc489d2
Compare
1b60507
to
79c21c1
Compare
I'd prefer the conflicting devices scheme rather than two verbs. |
Using the same verbs and conflicting devices still have same issue, i.e. unavailable headset port invalidates the PulseAudio profile. I wonder if https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/290 helps, can you please rebase it on top of master? |
It definitely helps with my device, and I think it would help here. I also thought to use different verbs for it but used ConflictingDevice after seeing it works with that MR. You'd have a Speaker/Headphones conflict, and that MR would create two profiles (Speaker+Mic and Headphones+Mic) where plugging in things would switch between the two. |
} | ||
} | ||
|
||
SectionDevice."Microphone" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be either "Mic" (if internal) or "Headset" (if external), see use-case.h
@khfeng : Please, use the conflicting devices and fix the mic device name. The mentioned PA MR from me should fix the problematic abstraction on the PA side. There's similar issue with the soundwire hardware. |
https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/290 doesn't solve the issue when ConflictingDevice is in use. UCM was changed to
Before headset gets plugged, Speaker profile is unavailable while the Speaker port is available:
After headset gets plugged, Speaker profile becomes available:
|
OK, I hadn't understood what you meant until now. "Mic" being in both profiles makes both unavailable when "Mic" is unavailable. Regardless, if you switch manually to one of the profiles I think plugging the headset in and out will start switching between the two as expected. Otherwise, you can also try adding a Speaker/Mic conflict and you should hopefully get the two profiles you wanted from the start (Speaker-only and Headphones+Mic), though I believe the conflicts are really for parts that cannot work together on the hardware. |
It seems like another issue in PA. If you revert the "dangerous" commit bellow, all should work as expected. References: |
Yes that commit solves the issue. |
fc489d2
to
fea08a0
Compare
Sorry for bothering you again, but I suspect you don't even need the ConflictingDevice parts (or multiple PA profiles) since reverting that commit solves your problem. Can you test with those sections removed? I don't want my earlier confusion to cause more weirdness. |
I didn't revert the commit per se, I use https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/355 to instead. With the patch applied, it works flawlessly without ConflictingDevice. I'll push a new one. |
This add support for its internal speaker and front headset.
fea08a0
to
6ac2113
Compare
@perexg any improvement to make? |
Merged in ce06a25 . Thanks. Please, add signed-off-by line next time. |
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.