[pulseaudio-tickets] [Bug 99222] ouput sound is not switched automatically to bluetooth headset

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Mar 3 16:11:27 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=99222

--- Comment #3 from Tanu Kaskinen <tanuk at iki.fi> ---
(In reply to Christian Kellner from comment #2)
> Just to clarify the problem: Connecting wired headphones will automatically
> select these as default sink (source) for sound. Connecting bluetooth
> headphones will not. I see no reason why the latter should be treated
> differently then the former. Happy to help with this bug (info, debugging,
> coding).

Coding help would be welcome.

The problem is probably very simple: the bluetooth sink just has a lower
priority than the analog output sink. The sink priorities are set in
pa_device_init_priority(). That function seems to assign weird priorities (the
form factor and bus attributes seem to get ranked in the exact opposite order
than what I'd think would make sense), so you can probably fix the bug simply
by adjusting the priorities to be more sane.

In the future the sink priorities will probably be replaced by port priorities,
but I don't think you need to worry about that at this point. I've submitted a
patch for that, but it's stuck in the review process. (I can't review my own
patches, but if you submit a patch, I can review that.)

-- 
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: <https://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20170303/58fce791/attachment.html>


More information about the pulseaudio-bugs mailing list