| 24efc486 |
android/pts: Update GAP test results |
Eva Kolanska |
11 years ago |
1 file, +54, -20 |
| 254d71e0 |
android/pts: Re-run PTS for A2DP
PTS session for A2DP which includes new PICS settings with PICS:
'Additional encoder Codec' set to TRUE as there is aptX support
added. |
Sebastian Chlad |
11 years ago |
2 files, +2, -2 |
| cbea7459 |
doc: Update management command list for 3.16 kernels |
Marcel Holtmann |
11 years ago |
1 file, +6, -1 |
| fbe7d522 |
plugins/sixaxis: Add a set_leds_sysfs() function
On recent kernels the hid-sony driver exposes leds class entries in
sysfs for setting the Sixaxis LEDs, use this interface and fall back to
hidraw in case using sysfs fails (e.g. on older hid-sony versions).
Setting the LEDs via sysfs is the preferred way on newer kernels, the
rationale behind that is:
1. the Sixaxis uses the same HID output report for setting both LEDs
and rumble effects;
2. hid-sony remembers the state of LEDs in order to preserve them when
setting rumble effects;
3. when the LEDs are set via hidraw hid-sony has no way to know the
new LEDs state and thus can change the LEDs in an inconsistent way
when setting rumble effects later.
Also require libudev >= 172, this is where
udev_enumerate_add_match_parent() has been first introduced.
NOTE: using udev_enumerate_add_match_parent() results in a memory leak
when enumerating child devices, this has been fixed in udev 207; the
commit which fixes the issue is this one:
http://cgit.freedesktop.org/systemd/systemd/commit/?id=51cc07576e119dea6e65478eeba9472979fd0936 |
Antonio Ospite |
11 years ago |
2 files, +87, -6 |
| 1a124e4a |
plugins/sixaxis: Add a get_leds_data() function
Get all the data necessary to set the LEDs in a single function,
returning a leds_data structure to be passed as argument to the
setup_leds() callback.
For now only a 'bitmap' field is used, which is the only thing that
set_leds_hidraw() needs. |
Antonio Ospite |
11 years ago |
1 file, +40, -9 |
| fdbe9332 |
plugins/sixaxis: Fix get_js_number() for devices connected via BT
Match hid devices and input devices using HID_UNIQ and UNIQ when these
are available, this is the correct way to get matching devices when the
controllers are connected via BT (UNIQ refers to the device bdaddr, PHYS
is the adapter bdaddr, so matching against PHYS will result in all
devices with the same LED number).
Fall back to HID_PHYS and PHYS when needed, hid devices do not define
HID_UNIQ when connected via USB. |
Antonio Ospite |
11 years ago |
1 file, +25, -8 |
| 94235472 |
unit: The crypto create and cleanup functions are not test cases |
Marcel Holtmann |
11 years ago |
2 files, +13, -16 |
| 8e07f075 |
android/pts: Update GATT test result |
Eva Kolanska |
11 years ago |
1 file, +125, -16 |
| 64bd6b25 |
android/client: Fix reversing send_response values
Add function to parse hex string to uint8_t array and use it in
send_response command. |
Marcin Kraglak |
11 years ago |
1 file, +59, -2 |
| e8782aa1 |
doc: Update test coverage numbers |
Luiz Augusto von Dentz |
11 years ago |
1 file, +2, -2 |
| 85e5b72c |
android/hal-audio-aptx: Add encoding |
Andrzej Kaczmarek |
11 years ago |
1 file, +32, -3 |
| 922a069b |
android/hal-audio-aptx: Load aptX encoder library
This patch adds loading of aptX encoder library which should be provided
by user. hal-audio-aptx will try to load 'libbt-aptx.so' so it should be
available in search patch, preferably in /system/lib. |
Andrzej Kaczmarek |
11 years ago |
1 file, +46, -3 |
| 683aa4bf |
android/hal-audio-aptx: Add initial support for aptX codec
This patch adds support for aptX codec. Since this is proprietary codec
it requires to obtain license form vendor (CSR) in order to use it.
Also shared library which provices encoder implementation is required
since this implementation only wraps it into audio HAL. |
Andrzej Kaczmarek |
11 years ago |
5 files, +209, -0 |
| 99849cb5 |
android/hal-audio: Allow codec to init on startup
This patch adds optional load/unload methods for codec which can be
used to initialize some static data for codec, e.g. load shared library
which provides encoder. Unlike init/cleanup which are called on stream
open/close these methods are called when audio device is opened/closed
thus most likely only once.
Codecs which are loaded properly (or do not have load callback) are
added to separate queue and used later to register endpoints. |
Andrzej Kaczmarek |
11 years ago |
3 files, +66, -16 |
| c44c923b |
android/hal-audio: Always call qos_update
As it turned out, it's better to always call update_qos and just
provide dummy callback from codecs which do not support it. |
Andrzej Kaczmarek |
11 years ago |
1 file, +2, -4 |
| 53e754a9 |
android/avrcp-lib: Add fragmentation support
This adds handling for fragmentation if the PDU cannot fit into a AV/C
frame which can be up to 512 bytes or less depending on the L2CAP MTU
negotiated. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +185, -22 |
| c05c7432 |
android/avctp: Add define for AV/C data MTU and offset
This defines the MTU and offset of AV/C data in AVCTP PDU. |
Luiz Augusto von Dentz |
11 years ago |
2 files, +5, -5 |
| 1573ebb8 |
unit/test-avrcp: Add /TP/RCR/BV-04-C test
To verify the TG can accept abort fragmentation correctly. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +17, -1 |
| ae65964e |
unit/test-avrcp: Add /TP/RCR/BV-02-C test
To verify that the TG can handle fragmentation correctly. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +45, -2 |
| 4e486830 |
android/pts: Update GATT results
Update results for server's Service Changed Indication (CCC) tests. |
Jakub Tyszkowski |
11 years ago |
1 file, +24, -3 |
| 1fce0a2a |
android/gatt: Make CCC descriptor readable
Descriptor unlike characteristic should be readable. |
Jakub Tyszkowski |
11 years ago |
1 file, +37, -3 |
| 04b9cb41 |
android/gatt: Store CCC and indicate service change
We indicate service change on service stop and service start API calls.
Indication is also send when connecting to bonded device to force it
rebuilding its cache. Write request is properly handled on the response
queue know. |
Jakub Tyszkowski |
11 years ago |
1 file, +90, -16 |
| 3a5e8fe9 |
android: Add gatt CCC value storage
Client Characteristic Configuration for Service Changed Characteristic
should be stored for every bonded device, so we know if we should be
sending value (range affected by changes) indication. |
Jakub Tyszkowski |
11 years ago |
2 files, +56, -0 |
| 120bc542 |
android/gatt: Set attrib MTU correctly
We should set g_attrib mtu with MIN of two values: Remote Rx MTU
and local Tx MTU. In previous solution once we set g_attrib mtu, we
could only reduce MTU (because we took previously set g_attrib MTU
and Remote Rx MTU). It affected cases when remote wanted to increase
MTU. |
Marcin Kraglak |
11 years ago |
1 file, +5, -4 |
| 17bbfe25 |
android/gatt: Handle prepare and execute write
Once remote device sends write execute we need to notify all the
server applications with this. Application will send response on this and
once we collect all the responses we should send execute write response
to remote device
This is initial version of handling execute write. Still many corner cases
have to be handled. Some of them seems to be not easy to solve with
existing BT HAL API e.g. BlueZ sends execute write to couple of server
applications and one of them reply with error. According to spec execute
write shall be atomic. In scenario that one server out of many replies
with error makes this write not atomic. There is no way to handle it with current
BT HAL API. |
Lukasz Rymanowski |
11 years ago |
1 file, +106, -6 |
| f6b9be29 |
android/gatt: Fix state of pending request for prep write
State PENDING is used when we send request to upper layer and this is
how we do with prep write request |
Lukasz Rymanowski |
11 years ago |
1 file, +1, -1 |
| a94d2065 |
android/gatt: Fix parallel reading/writing attributes values from applications
It is needed because in some cases we send few read requests to applications.
Now all transactions data are overriden by last one, and if application wants
to respond to previous requests, transaction data is not found.
It happens when two devices will read attribute from one application in the same
time or if device will read few values in time (i.e. read by type request or find
by type value request). |
Marcin Kraglak |
11 years ago |
1 file, +50, -27 |
| 2fbdb09d |
android/client: Fix handling hex test arguments
This patch allows to pass as argument hex and int values as test command
argument. Hex values must be prefixed by '0x' or '0X'. |
Grzegorz Kolodziejczyk |
11 years ago |
1 file, +2, -1 |
| 40c05ce9 |
android/client: Add additional support for handling hex values
This patch allows to handle properly hex values prefixed by "0x" or
"0X" as function parameter. |
Grzegorz Kolodziejczyk |
11 years ago |
1 file, +2, -1 |
| 06ba8f93 |
android/client: Add properly print prefix for hex values
This patch fix print hex values by adding "0x" prefix. |
Grzegorz Kolodziejczyk |
11 years ago |
1 file, +11, -11 |
| 000d8538 |
gitignore: Add cscope files |
Andre Guedes |
11 years ago |
1 file, +4, -0 |
| be05ab5d |
android: Fix compile error
During configure, if SBC is not installed in the system, we may use
SBC_CFLAGS and SBC_LIBS variables to indicate where SBC headers and
binaries can be found.
However, SBC_CFLAGS variable is not used in android/Makefile.am,
causing the following compile error:
$ ./bootstrap-configure SBC_CFLAGS=-I../sbc SBC_LIBS=-L../sbc/src/
$ make
(...)
android/hal-audio-sbc.c:22:21: fatal error: sbc/sbc.h: No such file or directory
#include <sbc/sbc.h>
^
compilation terminated.
make[1]: *** [android/android_audio_a2dp_default_la-hal-audio-sbc.lo] Error 1
This patch fixes this error by appending SBC_CFLAGS to android_audio_
a2dp_default_la_CFLAGS. |
Andre Guedes |
11 years ago |
1 file, +2, -1 |
| 64bb9bec |
profiles/audio: Fix propagation of EHOSTDOWN error
EHOSTDOWN error is now overwritten by EIO and once it's passed to
device_profile_connected it triggers connection of another profiles
while it should actually stop connecting them. |
Andrzej Kaczmarek |
11 years ago |
2 files, +16, -10 |
| b2c877b4 |
core: Fix cleaning pending services when ACL connection failed
In case ACL connection failed to establish, all pending services shall
be always removed. At the moment it's only done in case there's pending
Connect message which does not take into account reconnect scenario,
i.e. service connection was triggered by reconnection timeout and there
is no pending message.
In such case, when reconnection failed there will be some services on
pending list and subsequent reconnect attempts will fail with EBUSY
immediately. |
Andrzej Kaczmarek |
11 years ago |
1 file, +3, -3 |
| c55aea27 |
android/pts: Update GATT test results |
Eva Kolanska |
11 years ago |
1 file, +9, -2 |
| 682fb9d3 |
android/pts: Update GATT test results |
Eva Kolanska |
11 years ago |
1 file, +18, -4 |
| 2d5f7437 |
android/hal-audio-sbc: Fix use of incorrect number of frames per packet
Number of frames should always be limited to the maximun that can be set
in the payload header. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +4, -1 |
| 8b62dc61 |
audio/media: Check if setting value is already set
If the setting value is already set the is no need to send anything. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +6, -1 |
| 86a6ea1f |
audio/media: Fix crash while changing repeat mode
By changing repeat mode to 'group' which does not have a direct
translation to MPRIS LoopStatus will cause the following crash:
_dbus_abort () from /usr/lib/libdbus-1.so.3
_dbus_warn_check_failed () from /usr/lib/libdbus-1.so.3
dbus_message_iter_append_basic () from /usr/lib/libdbus-1.so.3
set_repeat_setting (key=0x80d6a87 "Repeat", value=0x80d8079 "group", user_data=0x984ab40) at profiles/audio/media.c:1050 |
Luiz Augusto von Dentz |
11 years ago |
1 file, +2, -0 |
| 48519c78 |
tools/btmgmt: Trival whitespace fix |
Andrzej Kaczmarek |
11 years ago |
1 file, +1, -1 |
| 4a56237a |
tools/btmgmt: Fix io-cap usage message |
Andrzej Kaczmarek |
11 years ago |
1 file, +1, -1 |
| 1285ac18 |
tools/btmgmt: Rename set-io-cap to io-cap
Every other 'set-something' command is just called 'something', so
let's keep this consistent. |
Andrzej Kaczmarek |
11 years ago |
1 file, +6, -6 |
| d85a5543 |
tools/btmgmt: Add scan-params command |
Andrzej Kaczmarek |
11 years ago |
1 file, +41, -0 |
| 2316c1eb |
monitor: Fix crash when parsing SDP
get_tid() may return NULL if bogus tid is passed.
This fix following crash:
Invalid write of size 1
at 0x4A0A643: memcpy@@GLIBC_2.14 (in /usr/lib64/valgrind/
vgpreload_memcheck-amd64-linux.so)
by 0x4218E4: search_attr_req (sdp.c:413)
by 0x42214D: sdp_packet (sdp.c:748)
by 0x41ED09: l2cap_frame (l2cap.c:2632)
by 0x414D51: packet_hci_acldata (packet.c:7713)
by 0x415133: packet_monitor (packet.c:3332)
by 0x404AEC: control_reader (control.c:911)
by 0x40231A: main (main.c:197)
Address 0x6 is not stack'd, malloc'd or (recently) free'd
Process terminating with default action of signal 11 (SIGSEGV)
Access not within mapped region at address 0x6
at 0x4A0A643: memcpy@@GLIBC_2.14 (in /usr/lib64/valgrind/
vgpreload_memcheck-amd64-linux.so)
by 0x4218E4: search_attr_req (sdp.c:413)
by 0x42214D: sdp_packet (sdp.c:748)
by 0x41ED09: l2cap_frame (l2cap.c:2632)
by 0x414D51: packet_hci_acldata (packet.c:7713)
by 0x415133: packet_monitor (packet.c:3332)
by 0x404AEC: control_reader (control.c:911)
by 0x40231A: main (main.c:197) |
Szymon Janc |
11 years ago |
1 file, +3, -3 |
| 45749f6a |
emulator: Fix random address type in LE conn complete events |
Johan Hedberg |
11 years ago |
1 file, +6, -1 |
| 895e0a16 |
emulator: Fix matching up connections to random addresses |
Johan Hedberg |
11 years ago |
1 file, +33, -7 |
| ded7da46 |
monitor: Fix User Passkey Request name |
Johan Hedberg |
11 years ago |
1 file, +1, -1 |
| 0fcb1d95 |
tools/btmgmt: Add support for passkey notification |
Johan Hedberg |
11 years ago |
1 file, +23, -0 |
| a2760306 |
tools/btmgmt: Add support for passkey requests |
Johan Hedberg |
11 years ago |
1 file, +96, -0 |
| b45ae2a1 |
android/gatt: Check for invalid handle errors
Check if handle or handle range is valid for server. If is invalid,
reply with ATT_ECODE_INVALID_HANDLE. |
Marcin Kraglak |
11 years ago |
1 file, +25, -1 |