[pulseaudio-tickets] [Bug 87002] Headphones selected on first run while unplugged and other ports are available
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Dec 5 03:54:19 PST 2014
https://bugs.freedesktop.org/show_bug.cgi?id=87002
--- Comment #14 from David Henningsson <david.henningsson at canonical.com> ---
Ok, I've looked at this issue now.
The startup order is something like:
1) module_alsa_card's init_jacks initializes port availability, and for every
port, we get a callback to port_available_hook_callback. No action is done here
due to the fix for bug 73375.
2) module_alsa_card's init_profile is called, which in turn creates sources and
sinks. At this point, we don't switch profiles: our current profile is analog,
we don't switch away from profiles when ports become unavailable.
The thing is, to solve this properly, we should need a callback *between* 1)
and 2). We can't act on 1), because not all ports are guaranteed to have its
availability set yet. But acting on 2) is too late, because then the profile is
already set.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20141205/8bedc297/attachment.html>
More information about the pulseaudio-bugs
mailing list