Commit Graph

17931 Commits

Author SHA1 Message Date
Andrei Emeltchenko
efa5208a39 unit/avrcp: Add /TP/PAS/BV-10-C test
Test verifies that the get current player application setting value
response issued from the Target.
2014-03-05 10:28:36 +02:00
Andrei Emeltchenko
c2d03da325 unit/avrcp: Add /TP/PAS/BV-09-C test
Test verifies that get current player application setting value command
issued from the Controller.
2014-03-05 10:28:36 +02:00
Andrei Emeltchenko
47c5cd74a4 android/avrcp: Add avrcp_get_current_player_value() function 2014-03-05 10:28:36 +02:00
Andrei Emeltchenko
9f45944326 unit/avrcp: Add /TP/PAS/BV-08-C test
Test verifies that the get player application setting values response
issued from the Target.
2014-03-05 10:28:36 +02:00
Andrei Emeltchenko
431c1de150 unit/avrcp: Add /TP/PAS/BV-06-C test
Test verifies that the list player application setting values response
issued from the Target.
2014-03-05 10:28:36 +02:00
Luiz Augusto von Dentz
95f8bca2d3 android/avrcp: Search for AVRCP CT record before connecting
This is required in order to retrieve version and features which are
used by remote features notification.
2014-03-05 09:30:40 +02:00
Luiz Augusto von Dentz
6d58ab5901 android/hal-msg: Add possible AVRCP features
This adds possible AVRCP features which can be passed to Remote Features
notification.
2014-03-05 09:30:40 +02:00
Luiz Augusto von Dentz
d17cf9905f AVCTP: Fix sending wrong response format
Reject and Not Implemented responses of PASS THROUGH commands shall
contain the data of the previous frame accourding to AVC Panel Subunit
specification page 87.
2014-03-04 18:03:27 +02:00
Luiz Augusto von Dentz
31505cf155 android/client: Add AVRCP register_notification_cb support 2014-03-04 11:32:45 +02:00
Ravi kumar Veeramally
004fa03201 android/client: Add AVRCP volume_change_cb support 2014-03-04 11:32:44 +02:00
Ravi kumar Veeramally
df1e83cdb8 android/client: Add AVRCP get_element_attr_cb support 2014-03-04 11:32:44 +02:00
Ravi kumar Veeramally
4a63fb225a android/client: Add AVRCP get_play_status_cb support 2014-03-04 11:32:44 +02:00
Ravi kumar Veeramally
ebbac58e66 android/client: Add AVRCP set_volume support 2014-03-04 11:32:44 +02:00
Ravi kumar Veeramally
f6f71246ac android/client: Add AVRCP get_element_attr_rsp support 2014-03-04 11:32:44 +02:00
Ravi kumar Veeramally
90e1ca93ce android/client: Add AVRCP get_play_status_rsp support 2014-03-04 11:32:44 +02:00
Luiz Augusto von Dentz
d1ada8ce81 android/avrcp: Bump version to 1.3 2014-03-04 11:32:44 +02:00
Luiz Augusto von Dentz
c656e9556c android/avrcp: Add handler for RegisterNotification command 2014-03-04 11:32:44 +02:00
Luiz Augusto von Dentz
f50ec3dadd android/avrcp-lib: Add avrcp_register_notification_rsp function
This function can be used to generate RegisterNotification response PDUs.
2014-03-04 11:32:44 +02:00
Luiz Augusto von Dentz
9a19247609 android/avrcp: Add handler for GetElementAttributes command 2014-03-04 11:32:44 +02:00
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
dc049cf35e android/avrcp: Add handler for GetPlayStatus command 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
44019b88c6 android/avrcp: Add passthrough handler for rewind
Rewind should be send via HAL not handled directly by uinput otherwise
Android media player might not interpret it correctly.
2014-03-04 11:32:43 +02:00
Luiz Augusto von Dentz
611c2ca35c android/avrcp: Add passthrough handler for fast forward
Fast forward should be send via HAL not handled directly by uinput
otherwise Android media player might not interpret it correctly.
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
7efeeb014e android/avctp: Make handler return ssize_t
This makes possible to return errors such as -EAGAIN to indicate the
request would block and a response will be sent asynchronously.
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
Andrzej Kaczmarek
3eb9a5f61d android/hal-audio: Provide better audio synchronization
Instead of waiting some fixed amount of useconds before next media
packet is encoded we use absolute time to wait precisely for a moment
when next packet is expected to be produced. This greatly improves flow
as is can compensate for time spent on encoding and writing data.
2014-03-04 10:26:37 +01:00
Andrzej Kaczmarek
fe16c25b4b android/hal-audio: Use payload length for codec init
It makes more sense to pass maximum payload length to codec since this
is actually used for calculations. MTU value is used only to allocate
proper buffer.
2014-03-04 10:26:37 +01:00
Andrzej Kaczmarek
97293ba74d android/hal-audio: Write and sync in common code
There's no need for codec abstraction to take care of writing and
synchronizing actual media stream since this is something that common
code can do regardless of codec used.

Data are synchronized based on number of samples consumed from input
stream instead of frames encoded to output stream which is also more
reliable since it's not affected by encoder errors.
2014-03-04 10:26:37 +01:00
Andrzej Kaczmarek
7f2fc02e7f android/hal-audio: Add encode_mediapacket function
This patch moves code which encodes data for media packet into single
function. It will simply try to put as much encoded frames as will fit
in provided media packet buffer. This is first step to make common code
responsible for media stream write and synchronizarion instead of codec
abstraction code as it is handled now.
2014-03-04 10:26:37 +01:00
Andrzej Kaczmarek
4fe71a03e0 android/hal-audio: Add open/close_endpoint helpers 2014-03-04 10:26:37 +01:00
Szymon Janc
c088a0f5c6 android/handsfree: Add support for disabling HSP or HFP AGs
This allows to tune what profiles are supported by handsfree HAL.
2014-03-04 10:18:27 +01:00
Szymon Janc
a6b131fb47 android/handsfree: Allow to connect to HSP or HFP handsfree unit
This allows to connect to HSP (it HFP is not enabled) or fallback to
HSP if HFP is not supported by remote device.
2014-03-04 10:18:27 +01:00
Szymon Janc
c0d112b1c6 android/handsfree: Add support for HSP AG 2014-03-04 10:18:27 +01:00
Szymon Janc
51072c0618 android/socket: Reserve channel for HSP AG 2014-03-04 10:18:27 +01:00
Szymon Janc
09c05aae19 android/handsfree: Factor out HFP AG enable code
This is in preparation for support to not enable HFP AG when
initializing HAL.
2014-03-04 10:18:27 +01:00
Szymon Janc
14fc3c5403 android: Pass mode parameter to registered services 2014-03-04 10:18:27 +01:00
Szymon Janc
412f893256 android/hal: Update services register commands with mode parameter 2014-03-04 10:18:27 +01:00
Szymon Janc
68cc1c5685 android/ipc: Add Mode parameter to register service command
This will allow to run daemon services in non-default mode.
2014-03-04 10:18:27 +01:00
Szymon Janc
b720a0637f android/bluetooth: Remove leftover function declaration 2014-03-03 20:04:47 +01:00
Szymon Janc
9395261651 android: Fix build under Android 2014-03-03 19:54:27 +01:00
Jakub Tyszkowski
90ce3b7bfc android/hal-gatt: Add skeleton for GATT HAL
This adds skeleton with stubs and proper build system entries.
2014-03-03 16:11:07 +01:00
Grzegorz Kolodziejczyk
1def0ca307 android/gatt: Add stubs for GATT commands handlers
Add empty handlers for GATT IPC commands.
2014-03-03 16:11:07 +01:00