Luiz Augusto von Dentz
bcc3728974
android/avrcp-lib: Add avrcp_get_element_attrs_rsp function
...
This function can be used to generate GetElementAttributes response PDUs.
2014-03-04 11:32:43 +02:00
Luiz Augusto von Dentz
5dce69dd21
android/avrcp-lib: Add avrcp_get_play_status_rsp function
...
This function can be used to generate GetPlayStatus response PDUs.
2014-03-04 11:32:43 +02:00
Luiz Augusto von Dentz
fb079ff5fd
android/avrcp: Add handler for GetCapabilities command
2014-03-04 11:32:43 +02:00
Luiz Augusto von Dentz
44b0c9f1ed
android/avrcp-lib: Make IEEEID_BTSIG public
2014-03-04 11:32:43 +02:00
Luiz Augusto von Dentz
ccebe1ffa1
android/avrcp-lib: Make hton24 and ntoh24 public
...
This avoids duplicating those function everytime.
2014-03-04 11:32:43 +02:00
Luiz Augusto von Dentz
b82332a07a
android/avrcp-lib: Add pressed status to passthrough handler callback
...
This adds pressed status to passthrough handler callback which is
required by Android HAL for certain keys such as fast forward and rewind.
2014-03-04 11:32:43 +02:00
Luiz Augusto von Dentz
6727058328
android/avrcp-lib: Fix not passing user data of passthrough callback
2014-03-04 11:32:42 +02:00
Luiz Augusto von Dentz
9350da3d4d
android/avrcp-lib: Embed response code into handler table
...
This makes the handlers code simpler as they don't need to care about
the response or reject opcode.
2014-03-04 11:32:42 +02:00
Luiz Augusto von Dentz
024b631ad0
android/avrcp-lib: Rework handler callback parameters
...
This rework handler callback parameters to make it able to return
proper error such as -EAGAIN to implement asynchronous responses.
2014-03-04 11:32:42 +02:00
Luiz Augusto von Dentz
ec6e9a9e13
android/avrcp-lib: Add avrcp_send function
...
This adds avrcp_send function which can be used to response to
outstanding requests.
2014-03-04 11:32:42 +02:00
Marcel Holtmann
537dba6265
android: Fix ntoh24 and hton24 for big endian platforms
2014-03-01 12:01:21 -08:00
Andrei Emeltchenko
b0d2871a18
android/avrcp: Implement get player attributes text
2014-02-28 11:02:15 +02:00
Andrei Emeltchenko
2fdd6528a5
android/avrcp: Add list player attributes command
2014-02-28 11:02:15 +02:00
Andrei Emeltchenko
c1977e7f3c
android/avrcp: Refactor get_caps() to allow parameter
...
Allow passing parameter specifying capability ID.
2014-02-28 10:59:00 +02:00
Andrei Emeltchenko
0da74a1afc
unit/avrcp: Add /TP/CFG/BV-02-C test
...
Test verifies that the Target responds to Get Capability request.
2014-02-26 18:26:04 +01:00
Andrei Emeltchenko
ded70b727e
android/avrcp: Add avrcp_get_capabilities request
...
Implement avrcp_get_capabilities() request through
avrcp_send_vendordep_req(). avctp_send_req() is not exported so we use
the functions which are exported by AVCTP code.
2014-02-26 18:26:03 +01:00
Luiz Augusto von Dentz
3dd85709ac
android/avrcp-lib: Add avrcp_set_passthrough_handlers
...
This adds avrcp_set_passthrough_handlers which can be used to set
pass-through PDU handlers table and user data.
2014-02-24 13:34:18 +01:00
Luiz Augusto von Dentz
8656a965de
android/avrcp-lib: Add avrcp_set_control_handlers
...
This adds avrcp_set_control_handlers which can be used to set control
PDU handlers table and user data.
2014-02-24 13:33:59 +01:00
Andrei Emeltchenko
4351d46804
android: Add initial AVRCP common code
...
The patch makes AVRCP to be transport agnostic so that it can be used in
with socket pair to build unit tests.
The idea is that all AVRCP specific logic will stay on avrcp-lib until it
receives proper unit tests and then eventually will be used by audio
plugin as well.
2014-02-20 13:57:55 +02:00