Luiz Augusto von Dentz
841e96bc65
android/A2DP: Add stream suspend command/response struct
...
This adds the definitions to stream suspend command and response.
2014-01-07 13:37:53 +02:00
Luiz Augusto von Dentz
ba880cc4c4
android/A2DP: Add stream resume command/response struct
...
This adds the definitions to stream resume command and response.
2014-01-07 13:37:53 +02:00
Luiz Augusto von Dentz
2d805557f2
android/A2DP: Add stream close command/response struct
...
This adds the definitions to stream close command and response.
2014-01-07 13:37:53 +02:00
Luiz Augusto von Dentz
62cfe1bc62
android/A2DP: Add stream open command/response struct
...
This adds the definitions to stream open command and response.
2014-01-07 13:37:53 +02:00
Luiz Augusto von Dentz
dfb5f89f63
android/A2DP: Add audio close command/response struct
...
This adds the definitions to audio close command and response.
2014-01-07 13:37:53 +02:00
Luiz Augusto von Dentz
3d2f0eeaf0
android/A2DP: Add audio open command/response struct
...
This adds the definitions to audio open command and response.
2014-01-07 13:37:53 +02:00
Luiz Augusto von Dentz
23893fbe93
android/A2DP: Add initial code to handle audio IPC commands
...
This adds initial code to handle audio IPC commands.
2014-01-07 13:37:53 +02:00
Luiz Augusto von Dentz
82c1095423
android/AVDTP: Duplicate fd passed to avdtp_new
...
This use dup to create a new fd to be used by AVDTP session leaving the
caller free to close the original fd. Note that even if the caller
decides to keep the original fd it will still be notified when
avdtp_shutdown is called since it uses shutdown.
2013-12-20 13:07:53 +02:00
Luiz Augusto von Dentz
6b0038ef55
android/A2DP: Fix disconnecting after AVDTP session creation
...
Once the connection is handover to AVDTP code the GIOChannel can be
unref but it should not close the connection.
2013-12-20 09:26:54 +02:00
Luiz Augusto von Dentz
c9f7f76c2c
android/A2DP: Use avdtp_add_disconnect_cb to cleanup on disconnect
...
This replaces the use of g_io_add_watch with avdtp_add_disconnect_cb so
connection tracking stay within AVDTP code.
2013-12-20 09:26:54 +02:00
Andrei Emeltchenko
6397489bc4
android/a2dp: Fix possible NULL dereference
...
Since a2dp_record may return NULL, check return value. This
silences static analysers tools.
2013-12-08 17:31:58 +02:00
Szymon Janc
ffb856322c
android: Use G_N_ELEMENTS macro for table elements calculation
...
It is more common in codebase to use this macro instead of opencoded
(sizeof(foo)/sizeof(foo[0])).
2013-12-03 13:44:04 +02:00
Szymon Janc
e457ba2989
android/a2dp: Use generic IPC message handling for commands
...
Handlers are registered on service register and unregistered on
unregister.
2013-12-02 16:24:02 +02:00
Szymon Janc
7624ea2d42
android: Don't pass notification socket on services register
...
It is no longer needed as proper socket is use by IPC helpers.
2013-11-28 18:02:27 +02:00
Szymon Janc
daf1186c38
android: Use ipc_send_notif for sending notifications
2013-11-28 18:02:26 +02:00
Szymon Janc
6456e15664
android: Remove socket parameter from ipc_send_rsp
...
Use command socket provided to IPC on init.
2013-11-28 18:02:26 +02:00
Luiz Augusto von Dentz
21b1bd698b
android/AVDTP: Strip dependencies
...
This strips AVDTP code of any dependency of core and btio to make it
transport agnostic.
2013-11-25 16:50:31 +02:00
Luiz Augusto von Dentz
ee750796da
android/a2dp: Cleanup devices on unregister
...
This cleanup any existing devices in bt_a2dp_unregister
2013-11-21 10:15:51 +02:00
Ravi kumar Veeramally
b32461d42d
android: Handle multiple init(register) and cleanup(unregister) calls properly
...
This can be tested with haltest.
2013-11-19 18:15:37 +02:00
Andrei Emeltchenko
e818990935
android/A2DP: Use sdp_data_free for freeing sdp data types
2013-11-19 12:15:51 +02:00
Andrei Emeltchenko
fafd7c20b1
android/A2DP: trivial: Use NULL for zero pointer
2013-11-19 12:15:19 +02:00
Szymon Janc
fc10c55498
android: Improve IPC helper to not send invalid status response
...
This fix issue with sending invalid success response from several
places where ipc_send_rsp was used for reporting success. Instead of
using using ipc_send for success response, make helper handle that.
2013-11-18 15:17:22 +02:00
Andrei Emeltchenko
f9d15c95af
android/a2dp: Use NULL for zero pointer
2013-11-18 13:04:22 +02:00
Luiz Augusto von Dentz
711331d28f
android/a2dp: Add implementation of SDP record
...
This adds the following record:
Service Name: Audio Source
Service RecHandle: 0x10001
Service Class ID List:
"Audio Source" (0x110a)
Protocol Descriptor List:
"L2CAP" (0x0100)
PSM: 25
"AVDTP" (0x0019)
uint16: 0x103
Profile Descriptor List:
"Advanced Audio" (0x110d)
Version: 0x0103
2013-11-14 17:27:48 +02:00
Luiz Augusto von Dentz
41599b1d3b
android/a2dp: Add initial implementation of HAL_OP_A2DP_DISCONNECT
2013-11-14 14:25:39 +02:00
Luiz Augusto von Dentz
9cb73c97f8
android/a2dp: Add initial implementation of HAL_OP_A2DP_CONNECT
2013-11-14 14:25:24 +02:00
Luiz Augusto von Dentz
46c8cd97fc
android/a2dp: Add initial implementation of socket handling
...
This adds initial code to handle incoming connection and notifying
connection states.
2013-11-14 14:20:53 +02:00
Szymon Janc
d842e88a47
android: Rename a2dp HAL related IPC API to match service name
...
Use 'Android HAL name' string from IPC doc as base for names.
2013-11-07 17:58:39 +02:00
Szymon Janc
052e481adc
android: Pass notification socket fd to service handlers
...
IPC helpers were converted to accept socket, not GIOChannel so there
is no need of passing former to handlers.
2013-11-07 17:05:47 +02:00
Szymon Janc
32f29761bf
android: Make IPC helpers accept file descriptor
...
There is no need to pass GIOChannel as writes are done immediately.
2013-11-07 17:05:07 +02:00
Luiz Augusto von Dentz
00e69a7570
android/a2dp: Add initial code for handling commands
2013-11-04 21:12:25 +02:00
Luiz Augusto von Dentz
5daffcb642
android: Add initial skeleton for a2dp in the daemon
2013-11-04 21:12:23 +02:00