bluetooth: Config MTU transport after acquire
authorMikel Astiz <mikel.astiz@bmw-carit.de>
Fri, 31 Aug 2012 10:51:03 +0000 (12:51 +0200)
committerJaska Uimonen <jaska.uimonen@intel.com>
Mon, 10 Dec 2012 20:43:58 +0000 (22:43 +0200)
commit629c591f20c55d10a4693c75566b18fed83ebf40
treec19d67a675c503dbfba3cff0f43b2910c836c30c
parent23acb23b0582b0411dd81679aea1ced81f8e5b2a
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