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>
Thu, 24 Jan 2013 07:29:36 +0000 (09:29 +0200)
commite4af4760bd43d04bd6ae02876358e622c21e365f
treee9ba1ec80b59c441481cc33b55513d6bc468c748
parent14f6f0e0fac227a26fdef343db513f65488adf0f
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