bluetooth: fix suspend on a2dp (to do on HSP non SCO over PCM)
commit9f89907bfa671a5d924c3fe1acd1ea433a87fc71
authorMarc-André Lureau <marc-andre.lureau@nokia.com>
Tue, 17 Feb 2009 10:59:34 +0000 (17 12:59 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 20 Feb 2009 02:32:25 +0000 (20 03:32 +0100)
tree0789527aada6e7fe73a5fc686e249e745604c0de
parent6aa110ad4e55bdffebd2f187933ebfcfd5b23e50
bluetooth: fix suspend on a2dp (to do on HSP non SCO over PCM)

 - s/setup_stream_fd/start_stream_fd

 - introduce stop_stream_fd to suspend properly the stream_fd (does
   not seem necessary when shuting down)

 - move {start,stop}_stream_fd to IO thread, it is also a good idea
   because it takes about 1s to setup.
src/modules/bluetooth/module-bluetooth-device.c