Skip to content

Initial AVDTP for Android

Luiz Augusto von Dentz linux-bluetooth 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest19 of 20 patches 1 replyIn review
  2. v119 patches 0 repliesSuperseded

19 of 20 patches are in this archive. The cover letter announces 20.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
2/20android/AVDTP: Strip dependenciesandroid/Android.mk android/Makefile.am android/a2dp.c +2 more+102 -7080 replies
3/20unit/AVDTP: Add /TP/SIG/SMG/BV-05-C testMakefile.am unit/test-avdtp.c+242 -00 replies
4/20unit/AVDTP: Add /TP/SIG/SMG/BV-06-C testunit/test-avdtp.c+19 -00 replies
5/20unit/AVDTP: Add /TP/SIG/SMG/BV-07-C testunit/test-avdtp.c+21 -20 replies
6/20unit/AVDTP: Add /TP/SIG/SMG/BV-08-C testunit/test-avdtp.c+46 -20 replies
7/20unit/AVDTP: Add /TP/SIG/SMG/BV-09-C testunit/test-avdtp.c+68 -00 replies
8/20unit/AVDTP: Add /TP/SIG/SMG/BV-10-C testunit/test-avdtp.c+9 -00 replies
9/20unit/AVDTP: Add /TP/SIG/SMG/BV-11-C testunit/test-avdtp.c+47 -00 replies
10/20unit/AVDTP: Add /TP/SIG/SMG/BV-12-C testunit/test-avdtp.c+14 -10 replies
11/20unit/AVDTP: Add /TP/SIG/SMG/BV-15-C testunit/test-avdtp.c+54 -20 replies
12/20unit/AVDTP: Add /TP/SIG/SMG/BV-16-C testunit/test-avdtp.c+11 -00 replies
13/20unit/AVDTP: Add /TP/SIG/SMG/BV-17-C testunit/test-avdtp.c+54 -00 replies
14/20unit/AVDTP: Add /TP/SIG/SMG/BV-18-C testunit/test-avdtp.c+76 -620 replies
15/20unit/AVDTP: Add /TP/SIG/SMG/BV-19-C testunit/test-avdtp.c+46 -50 replies
16/20unit/AVDTP: Add /TP/SIG/SMG/BV-20-C testunit/test-avdtp.c+15 -00 replies
17/20unit/AVDTP: Add /TP/SIG/SMG/BV-21-C testunit/test-avdtp.c+29 -950 replies
18/20unit/AVDTP: Add /TP/SIG/SMG/BV-22-C testunit/test-avdtp.c+15 -00 replies
19/20unit/AVDTP: Add /TP/SIG/SMG/BV-23-C testunit/test-avdtp.c+12 -00 replies
20/20unit/AVDTP: Add /TP/SIG/SMG/BV-24-C testunit/test-avdtp.c+11 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 00/20] Initial AVDTP for Android

From: Luiz Augusto von Dentz <[email protected]>

The code is based on the current implementation available in profiles/audio/avdtp.{c,h} but it is transport agnostic and does not contain any external dependency except glib for IO handling.

Both the signaling and the transport connection has to be handled by the upper layer, that is why it is not modified in place to avoid breaking current implemention until this work is considered stable.

Two new function are added:

- avdtp_new: Creates AVDTP session and attach signaling transport
- avdtp_stream_set_transport: Set stream transport

Both receives a fd as parameter so in future it should be possible to replace the IO handling.

This set also includes a initial test set based on the current AVDTP test specification, once merged more tests will be added as well, then the intent is to make this used by audio plugin.

Note: It is possible to track back to the original code by doing:
git log --follow or git blame -C -C.

v2: Add a separate commit to copy existing AVDTP files

Luiz Augusto von Dentz (20):
android: Add copy of current AVDTP implemention
android/AVDTP: Strip dependencies
unit/AVDTP: Add /TP/SIG/SMG/BV-05-C test
unit/AVDTP: Add /TP/SIG/SMG/BV-06-C test
unit/AVDTP: Add /TP/SIG/SMG/BV-07-C test
unit/AVDTP: Add /TP/SIG/SMG/BV-08-C test
unit/AVDTP: Add /TP/SIG/SMG/BV-09-C test
unit/AVDTP: Add /TP/SIG/SMG/BV-10-C test
unit/AVDTP: Add /TP/SIG/SMG/BV-11-C test
unit/AVDTP: Add /TP/SIG/SMG/BV-12-C test
unit/AVDTP: Add /TP/SIG/SMG/BV-15-C test
unit/AVDTP: Add /TP/SIG/SMG/BV-16-C test
unit/AVDTP: Add /TP/SIG/SMG/BV-17-C test
unit/AVDTP: Add /TP/SIG/SMG/BV-18-C test
unit/AVDTP: Add /TP/SIG/SMG/BV-19-C test
unit/AVDTP: Add /TP/SIG/SMG/BV-20-C test
unit/AVDTP: Add /TP/SIG/SMG/BV-21-C test
unit/AVDTP: Add /TP/SIG/SMG/BV-22-C test
unit/AVDTP: Add /TP/SIG/SMG/BV-23-C test
unit/AVDTP: Add /TP/SIG/SMG/BV-24-C test

 Makefile.am         |    8 +
 android/Makefile.am |    1 +
 android/a2dp.c      |   23 +
 android/avdtp.c     | 3256 +++++++++++++++++++++++++++++++++++++++++++++++++++
 android/avdtp.h     |  275 +++++
 unit/test-avdtp.c   |  612 ++++++++++
 6 files changed, 4175 insertions(+)
 create mode 100644 android/avdtp.c
 create mode 100644 android/avdtp.h
 create mode 100644 unit/test-avdtp.c
Signature · 1 line
1.8.3.1