bluetooth: Fix HSP volume handling.
authorTanu Kaskinen <tanu.kaskinen@digia.com>
Thu, 31 Mar 2011 12:00:52 +0000 (15:00 +0300)
committerColin Guthrie <colin@mageia.org>
Fri, 1 Apr 2011 12:33:50 +0000 (13:33 +0100)
commit35c93f711df803cee81a4753700f1fe2ec73bf21
tree73f56d2f0a3e176c8b9db563c5b1eb431b30d227
parentccbf7a3006abfda81cb891a68625a9304689b352
bluetooth: Fix HSP volume handling.

Previously the userdata for the volume callbacks was saved to
pa_core.shared only once when loading module-bluetooth-device, and only when
the SCO over PCM feature was used. That breaks volume handling in cases where
the HSP profile is used without the SCO over PCM setup. Now the userdata is
set always when a sink or source is created, and removed when a sink or source
is removed.
src/modules/bluetooth/module-bluetooth-device.c