Commit graph

1683 commits

Author SHA1 Message Date
Andre Eisenbach
9ef3c72ef3 LE: Add notification sent and congestion callbacks (1/4)
This change introduces two new callbacks for applications to better
handle LE notification flow control and transport congestion. The
notification callback is invoked when the remote platform confirms an
indication or when a local notification has been passed to the
controller. No new notifications should be sent until a callback is
received.

Congestion callbacks are triggered when a GATT operation cannot be sent
to the local Bluetooth controller. Repeatedly calling
writeCharacteristic() for example will eventually trigger a congestion
callback. Applications cannot send additional data until a further
callback is received, indicating that the congestion has cleared up.

Change-Id: I613cbf968770921f853a407888bb8308849039f3
2014-06-25 14:00:30 -07:00
Andre Eisenbach
fb5fd093db Merge "LE: Add is_connected() function (1/3)" 2014-06-20 20:43:34 +00:00
Paul McLean
33a6b171ba Implement minimal buffer size for playback
This will enable low-latency playback in mixer/audioflinger.

Change-Id: I415aa1b92e3c6f945a48be7b626527f0b02a82d7
2014-06-20 10:55:11 -07:00
Andre Eisenbach
0d553bc12f LE: Add is_connected() function (1/3)
Change-Id: I1b94ab0c8b0ff2e1026a4f5bbe95dca25be3d104
2014-06-19 11:32:12 -07:00
Jim Miller
8c655490d0 Merge "Minor cleanup of HAL fingerprint API" 2014-06-17 03:47:19 +00:00
Eric Laurent
685fadac73 Merge "usb audio: fix usb capture configuration" 2014-06-17 05:00:50 +00:00
Jim Miller
953524b2bd Minor cleanup of HAL fingerprint API
Change-Id: I7a4b1caadfe499d2394c8645e45903759b672e8b
2014-06-16 21:06:13 -07:00
Eric Laurent
7661a48402 usb audio: fix usb capture configuration
Capture configuration was using cached_output_hardware_config
instead of cached_input_hardware_config.

Also enable mono capture by rejecting first attempt to open
an input stream in mono with -EINVAL error: AudioFlinger will reopen in
stereo and do the channel conversion.

Change-Id: Ibdf53be4aa88d47091745bc71daa1dec002535f8
2014-06-11 12:00:16 -07:00
Wonsik Kim
ace6d32dd7 Merge "tv_input: Add HDMI port ID" 2014-06-10 22:29:12 +00:00
Greg Hackmann
16c19a2c4a update struct-offset.cpp test for camera API 2.3
Change-Id: I2f63f9f5e567099ea9d0005317f7a745c5a63ca6
Signed-off-by: Greg Hackmann <ghackmann@google.com>
2014-06-13 13:52:48 -07:00
Wonsik Kim
45849fb74e tv_input: Add HDMI port ID
Bug: 15570939
Change-Id: Id15ef9dbc79cd9c4f55be1eb114d66e08dfe923d
2014-06-13 11:47:08 +09:00
Ganesh Ganapathi Batta
460343a1b5 Add support for retrieving local LE features via get_adapter_properties
Change-Id: I337614aa96ec08f631667dc4a18b4e5c993a79b1
2014-06-12 01:34:38 +00:00
Nick Vaccaro
8264af903a am aa13433c: am c384b186: Don\'t pass up bad sensor event packets to Sensor Services
* commit 'aa13433c89d720d4b707e2e14110688d8b733e35':
  Don't pass up bad sensor event packets to Sensor Services
2014-06-11 21:48:40 +00:00
Nick Vaccaro
aa13433c89 am c384b186: Don\'t pass up bad sensor event packets to Sensor Services
* commit 'c384b1863768d424116c1bcc7f26f5764c35c330':
  Don't pass up bad sensor event packets to Sensor Services
2014-06-11 19:53:01 +00:00
Nick Vaccaro
c384b18637 Don't pass up bad sensor event packets to Sensor Services
If an event packet is read containing an unknown sensor handle,
don't pass it on to Sensor Services. Drop it on the floor instead
as it's causing Sensor Services to crash.

Moved read of queue size in sensors_poll_context_t::poll() to post
queue mutex grab for safety.

Bug: 15285345
Change-Id: I2ebc0f8591a1ae60f09bf9599b8321c5a3dfae69
2014-06-11 10:42:07 -07:00
Sasha Levitskiy
da105cd382 Merge "HAL: Fingerprint: Incremental scan notification." 2014-06-10 22:12:51 +00:00
Sasha Levitskiy
ba45e05a6a HAL: Fingerprint: Incremental scan notification.
Change-Id: If943fe6b46a8261ca936e07a36e11c10c7e6d63a
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2014-06-11 10:17:25 -07:00
Stewart Miles
ffccd84656 am 10f1a806: Fixed submix buffering when input and output stream formats differ.
* commit '10f1a806e6537835de7f71dbc05db1889436732e':
  Fixed submix buffering when input and output stream formats differ.
2014-06-11 11:24:56 +00:00
Zhijun He
5f36d1af13 Merge "hardware: camera_common: add module open legacy device API" 2014-06-10 21:32:31 +00:00
Zhijun He
bcdebf37fb hardware: camera_common: add module open legacy device API
This adds the module API to open a camera device as lower HAL version legacy
device.

Change-Id: I6616aebc5ec0cef28f675e5dddb334dc6b5dfea9
2014-06-13 11:44:19 -07:00
Mike Lockwood
21e50b1898 Use separate HAL interfaces for A2DP source and sink roles.
Both use the same structs for APIs and callbacks, but now
source and sink mode can operate independently with separate
Bluetooth profile services in the framework.

An extra callback btav_audio_config_callback is used for reporting
audio configuration for A2DP sink role

Change-Id: I6e8172b66ff95e61721d1c35790609b7ae2be030
2014-06-13 09:09:58 -07:00
Mike Lockwood
7da4cb8b6f Move AVRCP controller support to a different HAL interface
This allows us to add a new BluetoothProfile subclass for
the AVRCP controller role independent of the existing AVRCP target support.

Change-Id: I504bbf58a88808d1a884266992ae0c635c62aca1
2014-06-13 09:09:58 -07:00
Hemant Gupta
1beebfc39b Add Support for AVRCP Controller Feature
- Provide support for AVRCP Controller CAT 1 and CAT 2
    passthrough commands.

Change-Id: If437a3bbd1e97d22e5ceddf0d052dbaad1093257
2014-06-13 09:09:57 -07:00
Mike Lockwood
5735b772ee Merge "Bluetooth: Add support for HFP Client role." 2014-06-12 17:09:07 +00:00
Hemant Gupta
e7737c81e8 Bluetooth: Add support for HFP Client role.
Implementation changes in HAL for HFP Client role.
Include HFP Client Interface ID.

Change-Id: I1117c6a0c53e7e7059e46711f7a26639d2bbaee3
2014-06-12 13:20:32 -07:00
Aravind Akella
457265f5c0 Merge "Add sensor flags for reportingMode." 2014-06-12 05:34:42 +00:00
Aravind Akella
c841efdc36 Add sensor flags for reportingMode.
Change-Id: Ife456dd13264bafa7cd50d72b8818526030d7a3e
2014-06-12 14:49:09 -07:00
Sharvil Nanavati
050bcfac92 Add callouts for bluedroid to acquire wake locks and set wake alarms.
Since bluedroid is running outside of system_server, it does not have
the necessary Linux capabilities or filesystem permissions to access
/sys/power/wake_* and /dev/alarm (or any other wake alarm). This change
provides a mechanism by which bluedroid can call back up into Java code
and use the standard Android APIs to get wake locks / wake alarms.

Change-Id: I714fd394224d38da5ff0f82de5559599d522010b

Conflicts:
	include/hardware/bluetooth.h
2014-06-12 21:27:25 +00:00
Sharvil Nanavati
3bd8cba787 Add callouts for bluedroid to acquire wake locks and set wake alarms.
Since bluedroid is running outside of system_server, it does not have
the necessary Linux capabilities or filesystem permissions to access
/sys/power/wake_* and /dev/alarm (or any other wake alarm). This change
provides a mechanism by which bluedroid can call back up into Java code
and use the standard Android APIs to get wake locks / wake alarms.

Change-Id: I714fd394224d38da5ff0f82de5559599d522010b

Conflicts:
	include/hardware/bluetooth.h
2014-06-12 14:01:25 -07:00
Prashant Malani
0f0b6d5ccb Merge "hwcomposer: Add function pointer for setPowerMode() callback" 2014-06-10 21:44:22 +00:00
Prashant Malani
02b31986cb hwcomposer: Add function pointer for setPowerMode() callback
The blank HWC call is being replaced by a setPowerMode() call.
This incorporates all of the blank functionality, but provides added
support for display low power modes, if they are available in hardware.

Currently there are three supported modes:
- HWC_POWER_MODE_OFF    : Turn screen off.
- HWC_POWER_MODE_DOZE   : Put screen in low power mode.
- HWC_POWER_MODE_NORMAL : Turn screen on, and exit low power mode (if
                          display was previously in low power mode).

Where applicable, the device driver is expected to retain and restore
the low power mode state of the display during entry and exit from
suspend, respectively.

Bug: 13472578
Change-Id: I743ea3a2cb58247d14d7c47158b09a5309cca710
Signed-off-by: Prashant Malani <pmalani@google.com>
2014-06-12 17:11:03 +00:00
Stewart Miles
10f1a806e6 Fixed submix buffering when input and output stream formats differ.
When channel conversion is enabled and the pipe is opened with less channels
(e.g 1) than the output stream's channels (e.g 2) the input stream's buffer
size was calculated incorrectly which resulted in the input stream buffer size
being larger than the output stream buffer size in terms of time.  This
changes the pipe size to take into the account maximum frame size so the
output stream buffer size will be greater or equal to the input stream buffer
size.

In addition, if the pipe is created when the input stream is opened and the
output stream is opened at a different sample rate (e.g input = 8KHz,
output = 48Khz) the pipe will incorrectly rate limit writes to the pipe
resulting in gaps of silence in the data read from the pipe by the input
stream.

Bug: 15291446
Change-Id: I01480edff7ef3a199f509866c1e95ecd4c437a92
2014-06-10 11:04:40 -07:00
destradaa
f48cc67fcf IPv6 support for GPS HAL.
Change-Id: Ieb5aead647c10ed42e50bef9c4d7cd558fe7160b
2014-06-10 10:38:53 -07:00
Dan Stoza
cbdd561911 Merge "hwcomposer: Correct padding for 32/64-bit" 2014-06-06 17:23:17 +00:00
Eric Laurent
09bdd1ab25 Merge "sound trigger test/stub HAL - WIP" 2014-06-05 15:46:43 +00:00
Eric Laurent
7bb04adc53 Merge "added sound trigger HAL." 2014-06-05 01:09:46 +00:00
Dan Stoza
91699a82eb hwcomposer: Correct padding for 32/64-bit
The size of hwc_layer_1_t varies depending on whether we're building
for a 32- or 64-bit target. This change splits the padding into two
sections so that we can add more fields without changing the overall
size on either bitness.

Change-Id: Ib7c960a9feb0061586dc6398211d7d3dc012d573
2014-06-04 16:10:46 -07:00
Eric Laurent
cbca9056de sound trigger test/stub HAL - WIP
Change-Id: Ie8120df144662b12bba41e2346bac3ce816f9838
2014-06-04 14:34:43 -07:00
Eric Laurent
46bbe8a782 added sound trigger HAL.
Defined HAL for hardware voice and sound activity
activity detection (sound trigger).

Change-Id: I04f3c770c69a81245e8a15dd9e097e2c3f5ef069
2014-06-04 14:34:06 -07:00
Aravind Akella
80efde7c11 Merge "Replace integer constants with strings in Activity Recognition HAL." 2014-06-03 17:21:37 +00:00
Aravind Akella
871b748733 Replace integer constants with strings in Activity Recognition HAL.
Change-Id: I67d543869f5870f9e771c36c0fe1d58e7495ca57
2014-06-03 01:37:50 +00:00
Jinsuk Kim
5fa7fb99b0 Merge "Header file for MHL HAL interface definition" 2014-05-31 21:21:10 +00:00
Jinsuk Kim
fb09811c30 Header file for MHL HAL interface definition
Added MHL(Mobile High-definition Link) HAL definition to provide
interface between the hardware driver and the HdmiControlService
which also talks to HDMI-CEC HAL. They are both based on HDMI signal
specification.

MHL version 2.0 and above is supported.

Change-Id: Idcdfa1a61abfbf63bf838f6efe8b037fb32764ee
2014-05-31 06:51:39 +09:00
Zhijun He
bbfe583be5 Merge "Camera2: Build both 32 and 64 bit test binaries" 2014-05-30 17:58:59 +00:00
Zhijun He
32282973ba Camera2: Build both 32 and 64 bit test binaries
Change-Id: I6efd201a52bb546efa59ff0a5178a25a040654b4
2014-05-30 10:02:59 -07:00
Etienne Le Grand
2ec41a17b2 Merge "Rewording of tilt sensor" 2014-05-30 02:42:58 +00:00
Etienne Le Grand
426f14df08 Rewording of tilt sensor
Change-Id: I7bb0e63c3e1e6850359d7e690bfeea9e8c8fbcbf
2014-05-29 19:35:48 -07:00
Wonsik Kim
c8bb8fd2b4 am ced2c37d: (-s ours) DO NOT MERGE: Add audio info to tv_input
* commit 'ced2c37d0579d9182c6b44fd50419209613c8c0a':
  DO NOT MERGE: Add audio info to tv_input
2014-05-29 09:43:35 +00:00
Wonsik Kim
ced2c37d05 DO NOT MERGE: Add audio info to tv_input
Bug: 15177175
Change-Id: I5d3d710753065f108a5346237fbb9a1880f7c08d
(cherry picked from commit 8b5714fe2f)
2014-05-29 02:38:26 +00:00
Wonsik Kim
2fb5dc4813 Merge "Add audio info to tv_input" 2014-05-29 02:26:06 +00:00