Android-x86
Fork
Spenden

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-bluetooth-bluez: Liste der Commits

external/bluetooth/bluez


RSS
Rev. Zeit Autor
63fe786 donut-x86 android-x86-1.6 2009-10-09 20:21:45 Chih-Wei Huang

add sbc_primitives_mmx.c for x86

665d019 2009-09-29 14:20:42 Ian Kent

bluez a2dp - use a sensible write timeout

The 500 msec write timeout is extremely optimistic, a 1000 msec
timeout is closer to reality.

9b834d0 2009-09-29 14:20:42 Ian Kent

bluez a2dp - fix wait_for_start() spurious wakeup

When waiting on a condition is is possble to receive spurious
wake ups. Deal with this in wait_for_start().

3a62ebe 2009-09-29 14:20:29 Ian Kent

bluez a2dp - fix wait_for_start() synchronization

On entry to wait_for_start() it's possible we are in state
A2DP_STATE_NONE if a2dp_thread() has not completed bluetooth_init().
Also, we call the pthread_mutex_*() functions more frequently than
we really need to.

Move the mutex locking outside the loop and let condition wait
take care of the locking. Also move the A2DP_STATE_NONE check
below the condition wait so we can be sure the state machine
has been poked before we test it.

a081784 2009-09-29 14:14:36 Ian Kent

bluez a2dp - destroy thread attr after thread create

Pthread resources may be used by the thread attributes object.
We should destroy this after thread creation.

3d0cfa0 2009-09-29 14:14:28 Ian Kent

bluez a2dp - destroy thread resources at exit

The dynamically created pthread mutex and condition variables
consume pthread resources. They should be destroyed prior to
freeing the structure containing them.

19b92b3 2009-09-29 14:14:18 Ian Kent

bluez a2dp - fix a2dp_thread() spurious wakeup

When waiting on a condition is is possble to receive spurious
wake ups. Use the fact that when we poke the state machine the
command must have changed to deal with this.

4cd4556 2009-09-29 14:14:10 Ian Kent

bluez a2dp - fix state machine synchronization

Using a worker thread implementation for A2DP means that if we don't
have some way to syncroniize state transitions we can get overlap of
requested command functions or lost signals. In order for the A2DP
state machine to function each command operation must complete before
the next is initiated or we will get errors caused by these out of
sequence commands. And if we signal the thread when it is not waiting
on the condition the signal will be missed.

This could be partly resolved by implementing a queue but then there
is an overhead with also implementing a wait mechamism for state
transitions. It's much easier and simpler to just hold the mutex
during command processing which also deals with the lost signals issue.
This may well not achieve the original goal of the worker thread
implementation but neither would a queue implementation. It looks
like this is just the way things are!

ce4f50e 2009-09-29 14:13:50 Ian Kent

bluez a2dp - syncronize worker thread start

There is an order of execution assumption made when starting the
a2dp worker thread. Add an additional condition variable to allow
us to make sure we have reached the thread_wait condition wait
before returning from a2dp_init().

36cb3b0 2009-07-26 09:48:01 Jean-Baptiste Queru

Merge korg/donut into korg/master

cb75ad7 2009-06-20 00:50:02 Mike Lockwood

liba2dp: Fix timeout computation in wait_for_start()

Also increase a2dp_write timeout from 100ms to 500 ms
to avoid losing the first fraction of a second of a song
when streaming starts.

Signed-off-by: Mike Lockwood <lockwood@android.com>

5c4a7a5 2009-05-15 05:46:03 Mike Lockwood

liba2dp: Move control logic to a separate thread to avoid blocking audio writes.

Signed-off-by: Mike Lockwood <lockwood@android.com>

8318f2b 2009-05-05 15:40:01 Tim Chick

This fix is present on 3.36, but not here?

See http://article.gmane.org/gmane.linux.bluez.devel/8836

d57ff83 2009-05-05 15:37:39 Tim Chick

Add bccmd tool to makefile, conditional on board bluetooth type

I think bcsp support needs to be added to hciattach too.

b40666b 2009-04-25 05:54:56 The Android Open Source Project

Merge commit 'korg/donut'

3576a49 2009-04-23 09:56:51 Jean-Baptiste Queru

merge cupcake into donut

72042c2 2009-04-15 10:18:00 The Android Open Source Project

Merge commit 'korg/cupcake'

f837f3c 2009-04-14 08:11:00 Nick Pelly <>

AI 145972: am: CL 145785 Don't close the A2DP data socket on data error - prevents mediaserver from wedging on A2DP device poweroff.
This prevents a race that occurs when an A2DP headset is powered down. If the data socket closes itself then mediaserver tries to recover the stream, while the control path in hcid tries to cleanup the disconnected stream. hcid cant handle this and wedges mediaserver.
Instead let the control path code trigger all the cleanup (including eventually closing the data socket through bluetooth_close() or bluetooth_stop()).
Original author: npelly
Merged from: //branches/cupcake/...

Automated import of CL 145972

b53e009 2009-04-11 08:41:57 Nick Pelly <>

AI 145785: Don't close the A2DP data socket on data error - prevents mediaserver from wedging on A2DP device poweroff.
This prevents a race that occurs when an A2DP headset is powered down. If the data socket closes itself then mediaserver tries to recover the stream, while the control path in hcid tries to cleanup the disconnected stream. hcid cant handle this and wedges mediaserver.
Instead let the control path code trigger all the cleanup (including eventually closing the data socket through bluetooth_close() or bluetooth_stop()).
BUG=1774568

Automated import of CL 145785

fc6d963 2009-04-01 07:24:36 Nick Pelly <>

AI 143826: am: CL 143774 Fix SIGSEGV attempting to make callback on freed session.
pid: 3290, tid: 3290 >>> /system/bin/hcid <<<
signal 11 (SIGSEGV), fault addr 0000001a
r0 00014c70 r1 00000000 r2 bea74a80 r3 00000014
r4 00000450 r5 00014c70 r6 0000001b r7 0000008a
r8 000003e8 r9 00010a90 10 000135b0 fp 00000000
ip aed141c0 sp bea74a80 lr aed05611 pc 0000001a
Stack Trace:
RELADDR FUNCTION FILE:LINE
0000560e finalize_discovery external/bluez/utils/audio/avdtp.c:851
00006ee2 connection_lost external/bluez/utils/audio/avdtp.c:889
00007226 disconnect_timeout external/bluez/utils/audio/avdtp.c:594
00021804 timeout_handlers_check external/bluez/utils/eglib/gmain.c:456
000219d2 g_main_loop_run external/bluez/utils/eglib/gmain.c:557
v------> main external/bluez/utils/hcid/main.c:979
00019dc2 .text external/bluez/utils/hcid/main.c:979
0001fd22 __libc_init_common bionic/libc/bionic/libc_init_common.c:121
0000bcb2 __libc_init bionic/libc/bionic/libc_init_dynamic.c:65
v------> link_image bionic/linker/linker.c:1637
b000157e __dl_$t bionic/linker/linker.c:1637
Original author: npelly
Merged from: //branches/cupcake/...

Automated import of CL 143826

ca75519 2009-04-01 06:28:51 Nick Pelly <>

AI 143774: Fix SIGSEGV attempting to make callback on freed session.
pid: 3290, tid: 3290 >>> /system/bin/hcid <<<
signal 11 (SIGSEGV), fault addr 0000001a
r0 00014c70 r1 00000000 r2 bea74a80 r3 00000014
r4 00000450 r5 00014c70 r6 0000001b r7 0000008a
r8 000003e8 r9 00010a90 10 000135b0 fp 00000000
ip aed141c0 sp bea74a80 lr aed05611 pc 0000001a
Stack Trace:
RELADDR FUNCTION FILE:LINE
0000560e finalize_discovery external/bluez/utils/audio/avdtp.c:851
00006ee2 connection_lost external/bluez/utils/audio/avdtp.c:889
00007226 disconnect_timeout external/bluez/utils/audio/avdtp.c:594
00021804 timeout_handlers_check external/bluez/utils/eglib/gmain.c:456
000219d2 g_main_loop_run external/bluez/utils/eglib/gmain.c:557
v------> main external/bluez/utils/hcid/main.c:979
00019dc2 .text external/bluez/utils/hcid/main.c:979
0001fd22 __libc_init_common bionic/libc/bionic/libc_init_common.c:121
0000bcb2 __libc_init bionic/libc/bionic/libc_init_dynamic.c:65
v------> link_image bionic/linker/linker.c:1637
b000157e __dl_$t bionic/linker/linker.c:1637
BUG=1749718

Automated import of CL 143774

e9560bd 2009-04-01 03:05:44 Mike Lockwood <>

AI 143676: am: CL 143537 Sanity check to make sure the session still exists in auth_cb().
BUG=1744549
Original author: lockwood
Merged from: //branches/cupcake/...

Automated import of CL 143676

c46b54a 2009-03-31 07:24:03 Mike Lockwood <>

AI 143537: Sanity check to make sure the session still exists in auth_cb().
BUG=1744549

Automated import of CL 143537

5c22430 2009-03-28 07:30:36 The Android Open Source Project

Merge commit 'korg/cupcake'

02e95fd 2009-03-26 09:33:54 Nick Pelly <>

Automated import from //branches/donutburger/...@142766,142766

30440a3 2009-03-26 07:43:37 Nick Pelly <>

Automated import from //branches/cupcake/...@142761,142761

9bf977b 2009-03-25 12:45:28 Nick Pelly <>

Automated import from //branches/donutburger/...@141697,141697

0cc2375 2009-03-25 11:52:15 Nick Pelly <>

Automated import from //branches/donutburger/...@141219,141219

2394628 2009-03-25 10:11:41 Nick Pelly <>

Automated import from //branches/cupcake/...@141694,141694

e7d8688 2009-03-20 15:08:37 The Android Open Source Project

auto import from //branches/cupcake_rel/...@141571

Show on old repository browser