Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-bluetooth-bluez: 提交列表

external/bluetooth/bluez


RSS
Rev. 时间 作者
d783f1b froyo-x86 android-x86-2.2-r2 2011-06-26 15:59:42 Chih-Wei Huang

Merge remote-tracking branch 'korg/froyo' into froyo-x86

081f723 android-x86-2.2 2010-06-27 18:28:38 Chih-Wei Huang

add sbc_primitives_mmx.c for x86

14be985 2010-05-28 01:41:46 Jaikumar Ganesh

Add voice dailing feature to the SDP record.

Bug: 2719204
Dr No: Eastham / Jsh

Change-Id: I03d8d6761d8b114e2cdf95ed0fab86c7cb61e469

198e17b 2010-04-08 17:09:18 Eric Laurent

Fix issue 2516842 Device runtime restarts while pairing and connecting A2DP HS.

There are several problems in liba2dp.c:

1 There is a bug in bluetooth_parse_capabilities(): the capabilities field pointer increment
in the while loop is wrong and in case the first capabilities field is not the one we need
we end up reading undefined data.
2 In the same while loop there is no protection for infinite looping if the length of the
capabilities field is 0.
3 When start or configure fail, we just reset state to A2DP_STATE_INITIALIZED to force a new
configuration attempt. This is bad as we don't close the connection and configure expects a
closed connection. Subsequent configure attempts will fail reading sbc capabilites.
4 When there is a problem executing a command in a2dp_thread() loop, we do not reset current command
which prevents from executing the same command again.

Here is what happens in this issue:
There is an error in the A2DP start request because the headset has been disconnected and we go back to configure.
Because of problem 3, the connection is still opened when we run configure again and the 1st capabilitites
field lock indicator is set. We try to read next field and because of problems 1 & 2 we end up looping here for ever.
As data->mutex is locked, it cannot be acquired by pthread_cond_timedwait() trying to exit in
wait_for_start() and the timeout mechanism fails. We stay locked here with A2dpAudioInterface::A2dpAudioStreamOut::mLock also
locked as we are in A2dpAudioInterface::A2dpAudioStreamOut:write().
When system_server tries to disable bluetooth A2DP, A2dpAudioInterface::A2dpAudioStreamOut::setBluetoothEnabled()
tries to acquire mLock and system_server is also deadlocked.

Change-Id: I785250fe65651ec6fc2ae01a4250a61f2fd43908

af90b5b 2010-03-23 01:51:47 Bao Liang

Allow configure default link policy in main.conf

Currently BlueZ is hard-coding the default link policy to include
role switch, hold mode, sniff mode and park state. However, some
device will have problem to maintain the connection or setup SCO
if they are in park state. Making these operation modes configurable
in main.conf improves flexibility so any of these four modes can be
disabled if necessary.

Signed-off-by: Bao Liang <tim.bao@motorola.com>

145242c 2010-03-12 08:35:41 Nick Pelly

Increase A2DP flush timeout from 120ms to 200ms.

This is to reduce the chance of skipping on A2DP sinks that have buffers
larger than 120ms. Changed on advice from BCM.

Change-Id: I3d6574b30b362b43e311991eb3cc41776c5f9b52

2b65727 2010-03-10 09:56:29 Jaikumar Ganesh

Merge "Add an API to set the link timeout."

5b4da47 2010-03-10 09:46:11 Jaikumar Ganesh

Add an API to set the link timeout.

Change-Id: I5abd8fc37e20a7916e84e624f883c7a1987b0587

426c2d9 2010-03-09 11:04:17 Jean-Baptiste Queru

Add an empty CleanSpec.mk

Change-Id: I352eaaa2ba844b7c14bce1589156161c050afe34

6a2bb8e 2010-02-26 12:41:07 Jaikumar Ganesh

Merge "Update Bluetooth configuration path."

2815856 2010-02-26 11:19:58 Jaikumar Ganesh

Update Bluetooth configuration path.

3c1ad94 2010-02-24 09:40:54 Nick Pelly

Add option to change sco packet type in scotest.

Change-Id: I5afca60a75a318e69c543d231c69e3264e0dff12

08aea50 2010-02-24 09:40:49 Nick Pelly

Update userspace headers for SCO/eSCO packet selection in struct sockaddr_sco.

uint16_t sco_pkt_type is introduced to struct sockaddr_sco. It allows bitwise
selection of SCO/eSCO packet types. Currently those bits are:

0x0001 HV1 may be used.
0x0002 HV2 may be used.
0x0004 HV3 may be used.
0x0008 EV3 may be used.
0x0010 EV4 may be used.
0x0020 EV5 may be used.
0x0040 2-EV3 may be used.
0x0080 3-EV3 may be used.
0x0100 2-EV5 may be used.
0x0200 3-EV5 may be used.

This is similar to the Packet Type parameter in the HCI Setup Synchronous
Connection Command, except that we are not reversing the logic on the EDR bits.
This makes the use of sco_pkt_tpye forward portable for the use case of
white-listing packet types, which we expect will be the primary use case.

If sco_pkt_type is zero, or userspace uses the old struct sockaddr_sco,
then the default behavior is to allow all packet types.

Packet type selection is just a request made to the Bluetooth chipset, and
it is up to the link manager on the chipset to negiotiate and decide on the
actual packet types used. Furthermore, when a SCO/eSCO connection is eventually
made there is no way for the host stack to determine which packet type was used
(however it is possible to get the link type of SCO or eSCO).

sco_pkt_type is ignored for incoming SCO connections. It is possible
to add this in the future as a parameter to the Accept Synchronous Connection
Command, however its a little trickier because the kernel does not
currently preserve sockaddr_sco data between userspace calls to accept().

The most common use for sco_pkt_type will be to white-list only SCO packets,
which can be done with the hci.h constant SCO_ESCO_MASK.

This patch is motivated by broken Bluetooth carkits such as the Motorola
HF850 (it claims to support eSCO, but will actually reject eSCO connections
after 5 seconds) and the 2007/2008 Infiniti G35/37 (fails to route audio
if a 2-EV5 packet type is negiotiated). With this patch userspace can maintain
a list of compatible packet types to workaround remote devices such as these.

Change-Id: Ie6dc57a6a2d4ec4b42f919070d98d39f225eaf95

137b00d 2010-02-06 07:14:29 The Android Open Source Project

am 1a4ab293: am e7532b6a: reconcile main tree with open-source eclair

Merge commit '1a4ab293f0652242ab818613f4301ffd761efb59'

* commit '1a4ab293f0652242ab818613f4301ffd761efb59':
android-2.1_r1 snapshot

1a4ab29 2010-02-06 01:43:46 The Android Open Source Project

am e7532b6a: reconcile main tree with open-source eclair

Merge commit 'e7532b6aced6424a38e5b67db8602513bdbc9883' into eclair-plus-aosp

* commit 'e7532b6aced6424a38e5b67db8602513bdbc9883':
android-2.1_r1 snapshot

e7532b6 2010-02-06 01:09:33 The Android Open Source Project

reconcile main tree with open-source eclair

4e2dc5a 2010-02-05 01:57:45 Nick Pelly

Add 0xff (any object type) to sdptool OPUSH supported formats list.

This fixed an issue with sending an image from OSX. OSX would show a warning
that the bluez stack does not support this file type, but offer to send it
anyway (which works). This change to advertise support for all object types
will remove this warning.

The list of file types that can be advertised in the SDP record is very limited
anyway. It is best to list that we support all file types here, and then filter
at the OPP/OBEX connection instead.

For reference:
0x01 = vCard 2.1
0x02 = vCard 3.0
0x03 = vCal 1.0
0x04 = iCal 2.0
0x05 = vNote
0x06 = vMessage
0xFF = any type of object.

d534026 2010-02-05 01:57:45 Nick Pelly

Revert "Set OPUSH SDP record supported format list to 0xff (any object type)."

This reverts commit ee7f17f2e9bc434c04fdfe5bfab84a6c48687b7a.

01449fe 2010-02-03 06:08:51 Nick Pelly

Set OPUSH SDP record supported format list to 0xff (any object type).

This fixed an issue with sending an image from OSX. OSX would show a warning
that the bluez stack does not support this file type, but offer to send it
anyway (which works). This change to advertise support for all object types
will remove this warning.

The list of file types that can be advertised in the SDP record is very limited
anyway. It is best to list that we support all file types here, and then filter
at the OPP/OBEX connection instead.

For reference:
0x01 = vCard 2.1
0x02 = vCard 3.0
0x03 = vCal 1.0
0x04 = iCal 2.0
0x05 = vNote
0x06 = vMessage
0xFF = any type of object.

Change-Id: I6ca5b8f3ec463ec30b77c7a83d23e1e3cd3c39cb

a8af7b1 2010-01-30 07:07:48 The Android Open Source Project

reconcile android-2.1_r1 snapshot

877eae1 2010-01-28 10:38:15 San Mehat

bluez: Enable pand in build

Signed-off-by: San Mehat <san@google.com>

1b6edfc 2010-01-22 04:12:44 San Mehat

bluez: pand: Enable android logging

Signed-off-by: San Mehat <san@google.com>

022b727 2010-01-22 03:19:53 San Mehat

bluez: Add Android.mk for pand (off by default)

Signed-off-by: San Mehat <san@google.com>

2f92adf 2010-01-13 08:18:17 The Android Open Source Project

android-2.1_r1 snapshot

505ac5e 2009-12-18 03:46:40 Nick Pelly

am 928e6acc: am 60e8a333: Use monotonically increasing clock for A2DP timing.

Merge commit '928e6acc10ad4966bc7f0f9ca896f04af2340a16'

* commit '928e6acc10ad4966bc7f0f9ca896f04af2340a16':
Use monotonically increasing clock for A2DP timing.

928e6ac 2009-12-18 03:44:15 Nick Pelly

am 60e8a333: Use monotonically increasing clock for A2DP timing.

Merge commit '60e8a3334a826bdfacb74231a343227981f2e380' into eclair-plus-aosp

* commit '60e8a3334a826bdfacb74231a343227981f2e380':
Use monotonically increasing clock for A2DP timing.

60e8a33 2009-12-17 20:12:26 Nick Pelly

Use monotonically increasing clock for A2DP timing.

This is to avoid skips when the system time changes.

b086caf 2009-12-16 08:04:43 Nick Pelly

am 464dbc9c: am f3002f06: Stop trying to send A2DP packets quickly to catch-up on missed write()\'s after falling behind by 200ms, or on poll() timeout.

Merge commit '464dbc9c5d6e4346ba0af20008849826ca30380c'

* commit '464dbc9c5d6e4346ba0af20008849826ca30380c':
Stop trying to send A2DP packets quickly to catch-up on missed write()'s after

464dbc9 2009-12-16 00:41:22 Nick Pelly

am f3002f06: Stop trying to send A2DP packets quickly to catch-up on missed write()\'s after falling behind by 200ms, or on poll() timeout.

Merge commit 'f3002f064c3f20af793e83f1de02647ebc6f2037' into eclair-plus-aosp

* commit 'f3002f064c3f20af793e83f1de02647ebc6f2037':
Stop trying to send A2DP packets quickly to catch-up on missed write()'s after

220157b 2009-12-15 17:44:41 Android Git Automerger

Merge commit 'goog/eclair-plus-aosp'

Show on old repository browser