]> code.delx.au - pulseaudio/commit
bluetooth: Config MTU transport after acquire
authorMikel Astiz <mikel.astiz@bmw-carit.de>
Fri, 31 Aug 2012 10:51:03 +0000 (12:51 +0200)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Wed, 26 Sep 2012 11:27:14 +0000 (19:27 +0800)
commit4cc4c301879f24d6e629b7212563587fc6e0e46a
tree33a7eedd46c9137c370c6ef03943518012f4eaa4
parent2a7d001c97da7189d44f27d92e7e3a8ccaa71284
bluetooth: Config MTU transport after acquire

The configuration of the transport that depends on the MTU should be
performed every time the transport has been acquired, since the
parameters depend on what the Media API provides. This requires to
update the parameters of the sinks and sources as well.

This patch moves this code into a new function that will be called
when the stream is starting (setup_stream), from the IO thread.

This makes the code more robust, since the existing multiple calls to
bt_transport_acquire() do not rely on setup_bt() being able to acquire
the transport.
src/modules/bluetooth/module-bluetooth-device.c