]> code.delx.au - pulseaudio/commit
bluetooth: Request headset audio during profile switch
authorMikel Astiz <mikel.astiz@bmw-carit.de>
Mon, 3 Dec 2012 10:03:59 +0000 (11:03 +0100)
committerTanu Kaskinen <tanuk@iki.fi>
Tue, 4 Dec 2012 01:11:23 +0000 (03:11 +0200)
commitbbb47c67bb4434d752f2225d7f1744721c6e6054
tree29208c8e7a58b723e29a307c2d6765315c216e64
parent01435e613417258f35e406f1ab95042b1c48b832
bluetooth: Request headset audio during profile switch

When a headset is having a profile switch, we can either leave the
SCO state unmodified (as it was before this patch) or we can
alternatively request it (as older versions of PA).

This patch tries to avoid a potential regression in case a module
such as module-suspend-on-idle is not present, due to the provided
resume-on-running policy. Without this patch, and without such a policy,
the sink and sources would stay suspended until the user manually
performed another profile switch (i.e. hsp->off->hsp).

There are several other solutions currently being discussed as a longer
term solution, some of which require extendind the core. This patch is
therefore proposed as a short-term workaround to avoid the regression.
src/modules/bluetooth/module-bluetooth-device.c