Bug 99223 - webcam mic not set to "default alternative"
Summary: webcam mic not set to "default alternative"
Status: RESOLVED FIXED
Alias: None
Product: PulseAudio
Classification: Unclassified
Component: clients (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: pulseaudio-bugs
QA Contact: pulseaudio-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-29 15:12 UTC by promeneur
Modified: 2017-10-13 11:09 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
pactl list log (26.34 KB, text/plain)
2017-01-04 22:14 UTC, promeneur
Details

Description promeneur 2016-12-29 15:12:42 UTC
opensuse 42.2
pulseaudio 9.0
webcam logitech C310

there is only one micro, micro of webcam

in kde multimedia settings webcam is well listed and active

in pavucontrol webcam port is "microphone" and webcam is not "default alternative" this is "internal audio analog stereo" which is "default alternative"

if i set webcam to "default alternative" and i restart pc then webcam is no more "default alternative"

according to use webcam mic with hangouts for eaxample
then
in kde multimedia settings i must set to high priority webcam
Comment 1 promeneur 2017-01-02 13:39:44 UTC
i made an error.

<<if i set webcam to "default alternative" and i restart pc then webcam is no more "default alternative">> is false
Comment 2 Tanu Kaskinen 2017-01-04 18:10:50 UTC
Can you attach the output from "pactl list"?
Comment 3 promeneur 2017-01-04 22:14:10 UTC
Created attachment 128759 [details]
pactl list log
Comment 4 Tanu Kaskinen 2017-01-06 23:04:58 UTC
If I understood correctly, the problem there are two sources, the internal sound card and the webcam, and pulseaudio decides to use the internal sound card, even though it has no microphone actually attached to it. "pactl list" shows that all ports of the internal sound card source are unavailable, so PulseAudio knows that the internal sound card is unusable, but still does the stupid decision.

I believe this is caused by module-device-manager, which KDE uses to manage the device priorities. It doesn't currently understand ports at all, which means that it doesn't check whether the currently active port of a source is unavailable before deciding to use the source.

Thanks for the report, I hope this will get fixed. I can't promise any timeline for that, however.
Comment 5 Tanu Kaskinen 2017-01-06 23:10:06 UTC
I have one thing to add: I assume that by "default alternative" you mean the default source. There's always one source designated as the default source, which you can see in pavucontrol. I have submitted patches that improve the default sink and source handling, and if they get accepted, I think the webcam will be automatically chosen as the default source. However, I believe that won't really help you, because when module-device-manager does its routing, it doesn't care about the default source, because it has its own priority list of sources.
Comment 6 promeneur 2017-01-07 06:56:12 UTC
hello
thanks for all

i add a bug report also to bugs.kde.org about phonon.
https://bugs.kde.org/show_bug.cgi?id=374460

i am going to complete it with your data about module-device-manager
Comment 7 promeneur 2017-10-13 11:09:46 UTC
solved with pa 11


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.