OSDN Git Service

android-x86/external-bluetooth-bluez.git
14 years agoadd sbc_primitives_mmx.c for x86 donut-x86 android-x86-1.6
Chih-Wei Huang [Fri, 9 Oct 2009 11:21:45 +0000 (19:21 +0800)]
add sbc_primitives_mmx.c for x86

14 years agobluez a2dp - use a sensible write timeout
Ian Kent [Mon, 28 Sep 2009 15:47:44 +0000 (23:47 +0800)]
bluez a2dp - use a sensible write timeout

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

14 years agobluez a2dp - fix wait_for_start() spurious wakeup
Ian Kent [Mon, 28 Sep 2009 15:47:44 +0000 (23:47 +0800)]
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().

14 years agobluez a2dp - fix wait_for_start() synchronization
Ian Kent [Mon, 28 Sep 2009 15:47:44 +0000 (23:47 +0800)]
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.

14 years agobluez a2dp - destroy thread attr after thread create
Ian Kent [Mon, 28 Sep 2009 15:47:44 +0000 (23:47 +0800)]
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.

14 years agobluez a2dp - destroy thread resources at exit
Ian Kent [Mon, 28 Sep 2009 15:47:44 +0000 (23:47 +0800)]
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.

14 years agobluez a2dp - fix a2dp_thread() spurious wakeup
Ian Kent [Mon, 28 Sep 2009 15:47:44 +0000 (23:47 +0800)]
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.

14 years agobluez a2dp - fix state machine synchronization
Ian Kent [Mon, 28 Sep 2009 15:47:44 +0000 (23:47 +0800)]
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!

14 years agobluez a2dp - syncronize worker thread start
Ian Kent [Mon, 28 Sep 2009 15:47:43 +0000 (23:47 +0800)]
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().

14 years agoMerge korg/donut into korg/master
Jean-Baptiste Queru [Sun, 26 Jul 2009 00:48:01 +0000 (17:48 -0700)]
Merge korg/donut into korg/master

14 years agoliba2dp: Fix timeout computation in wait_for_start()
Mike Lockwood [Fri, 19 Jun 2009 15:50:02 +0000 (11:50 -0400)]
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>
14 years agoliba2dp: Move control logic to a separate thread to avoid blocking audio writes.
Mike Lockwood [Wed, 13 May 2009 13:51:32 +0000 (09:51 -0400)]
liba2dp: Move control logic to a separate thread to avoid blocking audio writes.

Signed-off-by: Mike Lockwood <lockwood@android.com>
15 years agoThis fix is present on 3.36, but not here?
Tim Chick [Tue, 5 May 2009 06:40:01 +0000 (07:40 +0100)]
This fix is present on 3.36, but not here?

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

15 years agoAdd bccmd tool to makefile, conditional on board bluetooth type
Tim Chick [Tue, 5 May 2009 06:37:39 +0000 (07:37 +0100)]
Add bccmd tool to makefile, conditional on board bluetooth type

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

15 years agoMerge commit 'korg/donut'
The Android Open Source Project [Fri, 24 Apr 2009 20:54:56 +0000 (13:54 -0700)]
Merge commit 'korg/donut'

15 years agomerge cupcake into donut
Jean-Baptiste Queru [Thu, 23 Apr 2009 00:56:51 +0000 (17:56 -0700)]
merge cupcake into donut

15 years agoMerge commit 'korg/cupcake'
The Android Open Source Project [Wed, 15 Apr 2009 01:18:00 +0000 (18:18 -0700)]
Merge commit 'korg/cupcake'

15 years agoAI 145972: am: CL 145785 Don't close the A2DP data socket on data error - prevents...
Nick Pelly [Mon, 13 Apr 2009 23:11:00 +0000 (16:11 -0700)]
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

15 years agoAI 145785: Don't close the A2DP data socket on data error - prevents mediaserver...
Nick Pelly [Fri, 10 Apr 2009 23:41:57 +0000 (16:41 -0700)]
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

15 years agoAI 143826: am: CL 143774 Fix SIGSEGV attempting to make callback on freed session.
Nick Pelly [Tue, 31 Mar 2009 22:24:36 +0000 (15:24 -0700)]
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

15 years agoAI 143774: Fix SIGSEGV attempting to make callback on freed session.
Nick Pelly [Tue, 31 Mar 2009 21:28:51 +0000 (14:28 -0700)]
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

15 years agoAI 143676: am: CL 143537 Sanity check to make sure the session still exists in auth_cb().
Mike Lockwood [Tue, 31 Mar 2009 18:05:44 +0000 (11:05 -0700)]
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

15 years agoAI 143537: Sanity check to make sure the session still exists in auth_cb().
Mike Lockwood [Mon, 30 Mar 2009 22:24:03 +0000 (15:24 -0700)]
AI 143537: Sanity check to make sure the session still exists in auth_cb().
  BUG=1744549

Automated import of CL 143537

15 years agoMerge commit 'korg/cupcake'
The Android Open Source Project [Fri, 27 Mar 2009 22:30:36 +0000 (15:30 -0700)]
Merge commit 'korg/cupcake'

15 years agoAutomated import from //branches/donutburger/...@142766,142766
Nick Pelly [Thu, 26 Mar 2009 00:33:54 +0000 (17:33 -0700)]
Automated import from //branches/donutburger/...@142766,142766

15 years agoAutomated import from //branches/cupcake/...@142761,142761
Nick Pelly [Wed, 25 Mar 2009 22:43:37 +0000 (15:43 -0700)]
Automated import from //branches/cupcake/...@142761,142761

15 years agoAutomated import from //branches/donutburger/...@141697,141697
Nick Pelly [Wed, 25 Mar 2009 03:45:28 +0000 (20:45 -0700)]
Automated import from //branches/donutburger/...@141697,141697

15 years agoAutomated import from //branches/donutburger/...@141219,141219
Nick Pelly [Wed, 25 Mar 2009 02:52:15 +0000 (19:52 -0700)]
Automated import from //branches/donutburger/...@141219,141219

15 years agoAutomated import from //branches/cupcake/...@141694,141694
Nick Pelly [Wed, 25 Mar 2009 01:11:41 +0000 (18:11 -0700)]
Automated import from //branches/cupcake/...@141694,141694

15 years agoauto import from //branches/cupcake_rel/...@141571
The Android Open Source Project [Fri, 20 Mar 2009 06:08:37 +0000 (23:08 -0700)]
auto import from //branches/cupcake_rel/...@141571

15 years agoauto import from //branches/cupcake_rel/...@140373
The Android Open Source Project [Thu, 19 Mar 2009 00:39:43 +0000 (17:39 -0700)]
auto import from //branches/cupcake_rel/...@140373

15 years agoMerge commit 'remotes/korg/cupcake' into cupcake_to_master
Jean-Baptiste Queru [Wed, 18 Mar 2009 23:57:31 +0000 (16:57 -0700)]
Merge commit 'remotes/korg/cupcake' into cupcake_to_master

15 years agoauto import from //branches/cupcake_rel/...@138607
The Android Open Source Project [Fri, 13 Mar 2009 20:04:20 +0000 (13:04 -0700)]
auto import from //branches/cupcake_rel/...@138607

15 years agoauto import from //branches/cupcake/...@137873
The Android Open Source Project [Wed, 11 Mar 2009 19:11:54 +0000 (12:11 -0700)]
auto import from //branches/cupcake/...@137873

15 years agoauto import from //depot/cupcake/@136745
The Android Open Source Project [Fri, 6 Mar 2009 04:00:41 +0000 (20:00 -0800)]
auto import from //depot/cupcake/@136745

15 years agoauto import from //depot/cupcake/@136594
The Android Open Source Project [Thu, 5 Mar 2009 22:34:30 +0000 (14:34 -0800)]
auto import from //depot/cupcake/@136594

15 years agoauto import from //depot/cupcake/@135843
The Android Open Source Project [Wed, 4 Mar 2009 03:29:18 +0000 (19:29 -0800)]
auto import from //depot/cupcake/@135843

15 years agoauto import from //depot/cupcake/@135843
The Android Open Source Project [Wed, 4 Mar 2009 02:28:18 +0000 (18:28 -0800)]
auto import from //depot/cupcake/@135843

15 years agoauto import from //depot/cupcake/@132589
The Android Open Source Project [Tue, 3 Mar 2009 22:04:01 +0000 (14:04 -0800)]
auto import from //depot/cupcake/@132589

15 years agoauto import from //depot/cupcake/@137055
The Android Open Source Project [Tue, 3 Mar 2009 06:54:23 +0000 (22:54 -0800)]
auto import from //depot/cupcake/@137055

15 years agoauto import from //branches/cupcake/...@132569
The Android Open Source Project [Fri, 20 Feb 2009 15:38:28 +0000 (07:38 -0800)]
auto import from //branches/cupcake/...@132569

15 years agoauto import from //branches/cupcake/...@132276
The Android Open Source Project [Thu, 19 Feb 2009 18:57:29 +0000 (10:57 -0800)]
auto import from //branches/cupcake/...@132276

15 years agoauto import from //branches/cupcake/...@131421
The Android Open Source Project [Fri, 13 Feb 2009 20:57:48 +0000 (12:57 -0800)]
auto import from //branches/cupcake/...@131421

15 years agoauto import from //branches/cupcake/...@130745
The Android Open Source Project [Tue, 10 Feb 2009 23:43:58 +0000 (15:43 -0800)]
auto import from //branches/cupcake/...@130745

15 years agoMerge branch 'cupcake'
The Android Open Source Project [Thu, 22 Jan 2009 08:15:57 +0000 (00:15 -0800)]
Merge branch 'cupcake'

15 years agoauto import from //branches/cupcake/...@127436
The Android Open Source Project [Thu, 22 Jan 2009 08:13:40 +0000 (00:13 -0800)]
auto import from //branches/cupcake/...@127436

15 years agoMerge branch 'cupcake'
The Android Open Source Project [Tue, 20 Jan 2009 22:05:24 +0000 (14:05 -0800)]
Merge branch 'cupcake'

15 years agoauto import from //branches/cupcake/...@127101
The Android Open Source Project [Tue, 20 Jan 2009 22:03:55 +0000 (14:03 -0800)]
auto import from //branches/cupcake/...@127101

15 years agoMerge branch 'cupcake'
android-build SharedAccount [Fri, 16 Jan 2009 00:15:48 +0000 (16:15 -0800)]
Merge branch 'cupcake'

15 years agoauto import from //branches/cupcake/...@126645
The Android Open Source Project [Fri, 16 Jan 2009 00:12:07 +0000 (16:12 -0800)]
auto import from //branches/cupcake/...@126645

15 years agoMerge branch 'cupcake'
The Android Open Source Project [Sat, 10 Jan 2009 02:04:14 +0000 (18:04 -0800)]
Merge branch 'cupcake'

15 years agoauto import from //branches/cupcake/...@125939
The Android Open Source Project [Sat, 10 Jan 2009 01:51:19 +0000 (17:51 -0800)]
auto import from //branches/cupcake/...@125939

15 years agoCode drop from //branches/cupcake/...@124589
The Android Open Source Project [Thu, 18 Dec 2008 02:04:08 +0000 (18:04 -0800)]
Code drop from //branches/cupcake/...@124589

15 years agoInitial Contribution
The Android Open Source Project [Tue, 21 Oct 2008 14:00:00 +0000 (07:00 -0700)]
Initial Contribution

54 years agoexternal/bluez libs-3.35
Upstream [Mon, 12 Jan 1970 13:46:40 +0000 (13:46 +0000)]
external/bluez libs-3.35

54 years agoexternal/bluez hcidump-1.41
Upstream [Mon, 12 Jan 1970 13:46:40 +0000 (13:46 +0000)]
external/bluez hcidump-1.41

54 years agoexternal/bluez utils-3.35
Upstream [Mon, 12 Jan 1970 13:46:40 +0000 (13:46 +0000)]
external/bluez utils-3.35