OSDN Git Service

android-x86/hardware-libhardware.git
9 years agoam 1eb4a8de: Merge "Added enumeration of legitimate sample rates for input and output...
Paul McLean [Tue, 15 Jul 2014 23:17:50 +0000 (23:17 +0000)]
am 1eb4a8de: Merge "Added enumeration of legitimate sample rates for input and output." into lmp-dev

* commit '1eb4a8def9f586e5befcbaac5b91caa8f8b84c39':
  Added enumeration of legitimate sample rates for input and output.

9 years agoam 7bd1bd05: Merge "Fix warnings" into lmp-dev
Glenn Kasten [Tue, 15 Jul 2014 23:17:48 +0000 (23:17 +0000)]
am 7bd1bd05: Merge "Fix warnings" into lmp-dev

* commit '7bd1bd0523db5505ddd792c7168a8d22e4efe982':
  Fix warnings

9 years agoresolved conflicts for merge of 426a9137 to master
Paul McLean [Tue, 15 Jul 2014 21:57:22 +0000 (14:57 -0700)]
resolved conflicts for merge of 426a9137 to master

Change-Id: Iac4dc57a15b0306d1f54283752872b32fab74e59

9 years agoMerge "Added enumeration of legitimate sample rates for input and output." into lmp-dev
Paul McLean [Tue, 15 Jul 2014 23:07:19 +0000 (23:07 +0000)]
Merge "Added enumeration of legitimate sample rates for input and output." into lmp-dev

9 years agoAdded enumeration of legitimate sample rates for input and output.
Paul McLean [Tue, 15 Jul 2014 19:35:06 +0000 (12:35 -0700)]
Added enumeration of legitimate sample rates for input and output.

Change-Id: Ib53ec5254bd47761dbce84646a841eb9b32fd62a

9 years agoMerge "Fix warnings" into lmp-dev
Glenn Kasten [Tue, 15 Jul 2014 23:00:47 +0000 (23:00 +0000)]
Merge "Fix warnings" into lmp-dev

9 years agoFix warnings
Glenn Kasten [Tue, 15 Jul 2014 18:11:01 +0000 (11:11 -0700)]
Fix warnings

Change-Id: I1ba5c871a1cb44df8c383f595cbe6d75fef02aa3

9 years agoSupport for 32-bit data conversions.
Paul McLean [Fri, 11 Jul 2014 23:29:41 +0000 (16:29 -0700)]
Support for 32-bit data conversions.

Change-Id: I18d955d9b2df99744ae6211bdb924c679ea7a617

Conflicts:
modules/usbaudio/audio_hw.c

9 years agoMerge "hwcomposer: Allow display configuration selection"
Michael Lentine [Tue, 15 Jul 2014 00:11:50 +0000 (00:11 +0000)]
Merge "hwcomposer: Allow display configuration selection"

9 years agohwcomposer: Allow display configuration selection
Dan Stoza [Tue, 6 May 2014 22:56:59 +0000 (15:56 -0700)]
hwcomposer: Allow display configuration selection

Adds two functions to the HWC interface: one for querying the current
display configuration, and one for setting a new configuration. This
will enable DisplayManager to change the mode on demand.

Bug: 14320401
Change-Id: I556c509192b877b38b2103a78f937b3687f35546

9 years agoMerge "Added enumeration of legitimate sample rates for input and output."
Paul McLean [Mon, 14 Jul 2014 22:22:02 +0000 (22:22 +0000)]
Merge "Added enumeration of legitimate sample rates for input and output."

9 years agoAdded enumeration of legitimate sample rates for input and output.
Paul McLean [Fri, 11 Jul 2014 22:14:19 +0000 (15:14 -0700)]
Added enumeration of legitimate sample rates for input and output.

Added device_profile to enable refactoring of query methods.
Refactored query methods (in_get_parameters/out_getParameters)
  in terms of device_get_parameters.
Freeing ALSA parameter structures (pcm_params_free)

Eliminated unnecessay input & output card/device (to support
 other changes).

Change-Id: I771cf4681a628f87ca6d6ee3f85f76ae4d7f1504

9 years agoMerge "Use the term port_id for HDMI port index across definitions"
Jinsuk Kim [Fri, 11 Jul 2014 02:39:35 +0000 (02:39 +0000)]
Merge "Use the term port_id for HDMI port index across definitions"

9 years agoUpdate GPS HAL to accept raw data.
destradaa [Tue, 29 Apr 2014 17:50:22 +0000 (10:50 -0700)]
Update GPS HAL to accept raw data.

Change-Id: Id487c2f9eb4bc95d89dc0fba1332f666ae332ee0

9 years agoUse the term port_id for HDMI port index across definitions
Jinsuk Kim [Wed, 9 Jul 2014 08:17:24 +0000 (17:17 +0900)]
Use the term port_id for HDMI port index across definitions

Renamed various terms like, port, port_num to port_id, and
added a description that the id starts from 1.

Change-Id: I9229edff7fd75dd15e672e309369e237ca339238

9 years agoMerge "camera3: fix some spec issue related with input/bidrectional stream"
Zhijun He [Wed, 9 Jul 2014 01:21:24 +0000 (01:21 +0000)]
Merge "camera3: fix some spec issue related with input/bidrectional stream"

9 years agocamera3: fix some spec issue related with input/bidrectional stream
Zhijun He [Mon, 30 Jun 2014 17:35:58 +0000 (10:35 -0700)]
camera3: fix some spec issue related with input/bidrectional stream

Bug: 13934977
Change-Id: Ibccb80e69ac9da153de6378f1e3b0f00527ce4c9

9 years agosound trigger: update HAL
Eric Laurent [Sun, 6 Jul 2014 23:08:45 +0000 (16:08 -0700)]
sound trigger: update HAL

New start_recognition() prototype with recognition
configuration structure specifying:
- List of keyphrases to listen to.
- Recognition mode for each keyphrase
- List of users and min confidence levels for each users

New recognition event format with confidence level and user ID
for each user.

Bug: 12378680.
Change-Id: I95e998c735321ceb5c27f477d894b574a6eca860

9 years agoMerge "audio: different frame size calculation for input and output"
Eric Laurent [Sun, 6 Jul 2014 17:07:22 +0000 (17:07 +0000)]
Merge "audio: different frame size calculation for input and output"

9 years agoam 611a3b71: am 3e618a6a: Merge "gralloc: let target configure page flipping ioctl"
David Turner [Fri, 4 Jul 2014 13:34:54 +0000 (13:34 +0000)]
am 611a3b71: am 3e618a6a: Merge "gralloc: let target configure page flipping ioctl"

* commit '611a3b71431293a123a11af99ff731ab30067632':
  gralloc: let target configure page flipping ioctl

9 years agoam 3e618a6a: Merge "gralloc: let target configure page flipping ioctl"
David Turner [Fri, 4 Jul 2014 13:30:22 +0000 (13:30 +0000)]
am 3e618a6a: Merge "gralloc: let target configure page flipping ioctl"

* commit '3e618a6aa10c783d1536f20edfc3347939cfa18e':
  gralloc: let target configure page flipping ioctl

9 years agoMerge "gralloc: let target configure page flipping ioctl"
David Turner [Fri, 4 Jul 2014 13:20:55 +0000 (13:20 +0000)]
Merge "gralloc: let target configure page flipping ioctl"

9 years agoaudio: different frame size calculation for input and output
Eric Laurent [Wed, 2 Jul 2014 20:45:32 +0000 (13:45 -0700)]
audio: different frame size calculation for input and output

Bug: 15000850.
Change-Id: I7813e99a0b7ce613cc3b7d7c95be0525cb2d6c81

9 years agoam 18cf130c: Fix my-dir issue
Brian Carlstrom [Wed, 2 Jul 2014 23:13:30 +0000 (23:13 +0000)]
am 18cf130c: Fix my-dir issue

* commit '18cf130c439982d1eafa7ef5f598ef7f4b945821':
  Fix my-dir issue

9 years agoMerge "Remove tx_status event in CEC HAL"
Jinsuk Kim [Fri, 4 Jul 2014 05:10:34 +0000 (05:10 +0000)]
Merge "Remove tx_status event in CEC HAL"

9 years agoRemove tx_status event in CEC HAL
Jinsuk Kim [Thu, 3 Jul 2014 00:30:42 +0000 (09:30 +0900)]
Remove tx_status event in CEC HAL

Removes tx_status event type which turns out not in actual use.
This changes makes send_message() work in sychrnonous fashion
when called by HdmiControlService. HdmiControlService has io thread
dedicated to interact with HAL, hence no need to introduce
another async flow for HAL.

Change-Id: I8ae21b1149cd36bfd0f9da215c4f23b30f0c8d30

9 years agoMerge "Multi-format USB audio input"
Paul McLean [Mon, 7 Jul 2014 16:43:45 +0000 (16:43 +0000)]
Merge "Multi-format USB audio input"

9 years agoMulti-format USB audio input
Paul McLean [Wed, 2 Jul 2014 14:27:41 +0000 (07:27 -0700)]
Multi-format USB audio input

Change-Id: I716a9f79dcfea35eacd0aeeda530e3e3c7eb4d32

9 years agoFix my-dir issue
Brian Carlstrom [Mon, 30 Jun 2014 22:15:45 +0000 (15:15 -0700)]
Fix my-dir issue

(cherry picked from commit 52f493189b02c44c6dc329c86da3176ac9c22ad3)

Change-Id: I3dcca1fc0fb9d58f0d2f3867f8ab89f87a983cc1

9 years agoMerge "audio: fixed channel count determination from channel mask"
Eric Laurent [Wed, 2 Jul 2014 16:47:15 +0000 (16:47 +0000)]
Merge "audio: fixed channel count determination from channel mask"

9 years agoaudio: fixed channel count determination from channel mask
Eric Laurent [Wed, 2 Jul 2014 03:32:28 +0000 (20:32 -0700)]
audio: fixed channel count determination from channel mask

Do not use popcount() to derive channel count from channel mask.

Bug: 15000850.
Change-Id: I4d803dc3e1cb680baa0022e539e6f9eab3ffef1a

9 years agoBluetooth: Support MAP Client role on Bluedroid.
Hemant Gupta [Fri, 18 Apr 2014 06:55:24 +0000 (12:25 +0530)]
Bluetooth: Support MAP Client role on Bluedroid.

Implementation of MAP Client (MCE) role on
Bluedroid stack. Include MAP Client Interface ID.

Change-Id: Icdf11b7f09a161e35aa3aa68b9b5fa315e18fd65

9 years agoMerge "Add WBS support on Bluedroid (4/6)"
Matthew Xie [Mon, 30 Jun 2014 22:45:59 +0000 (22:45 +0000)]
Merge "Add WBS support on Bluedroid (4/6)"

9 years agoFix my-dir issue
Brian Carlstrom [Mon, 30 Jun 2014 22:15:45 +0000 (15:15 -0700)]
Fix my-dir issue

Change-Id: I9c93a273328ac0c6e96f27870b890a16d18479a5

9 years agoMerge "LE Onfound and Onlost feature"
Wei Wang [Mon, 30 Jun 2014 21:29:49 +0000 (21:29 +0000)]
Merge "LE Onfound and Onlost feature"

9 years agoLE Onfound and Onlost feature
Satya Calloji [Sun, 15 Jun 2014 18:51:38 +0000 (11:51 -0700)]
LE Onfound and Onlost feature

Header changes for on found/onlost feature

Change-Id: I72d49a1b6560c2c913a3b7016b7504eef9962258

9 years agoLE ADV Filter changes
Satya Calloji [Thu, 12 Jun 2014 05:53:12 +0000 (22:53 -0700)]
LE ADV Filter changes

Header changes for ADV filter feature

Change-Id: Ib568f422c4171ed8a3bb42d9e75af5250edf98b6

9 years agoLE Batch scan feature
Satya Calloji [Sun, 11 May 2014 06:37:11 +0000 (23:37 -0700)]
LE Batch scan feature

Header changes for LE Batch scan feature

Change-Id: I32a51331d7a3a8eedf8577a66a8bdf90732f32db

9 years agoMerge "usb audio: fix capture channel conversion"
Eric Laurent [Mon, 30 Jun 2014 14:45:24 +0000 (14:45 +0000)]
Merge "usb audio: fix capture channel conversion"

9 years ago[1/2] Bluetooth: Security: Handle authentication rejected error status
Hemant Gupta [Wed, 31 Jul 2013 13:44:02 +0000 (19:14 +0530)]
[1/2] Bluetooth: Security: Handle authentication rejected error status

Handle authentication rejected error status in failure scenario.

Change-Id: Ibd59d161ee5481ced2cb078a6ee6f4a6b045bcd4

9 years agousb audio: fix capture channel conversion
Eric Laurent [Sat, 28 Jun 2014 01:39:21 +0000 (18:39 -0700)]
usb audio: fix capture channel conversion

Change-Id: Ibdff053bd6ecc4bf2bc8bb51384098911f52f6ef

9 years agoMerge "LE ADV Filter changes"
Wei Wang [Mon, 30 Jun 2014 21:29:27 +0000 (21:29 +0000)]
Merge "LE ADV Filter changes"

9 years agoMerge "LE Batch scan feature"
Wei Wang [Mon, 30 Jun 2014 21:29:11 +0000 (21:29 +0000)]
Merge "LE Batch scan feature"

9 years agoMulti-format USB Audio suport
Paul McLean [Wed, 25 Jun 2014 17:42:07 +0000 (10:42 -0700)]
Multi-format USB Audio suport

Change-Id: I2815e1dc38d39a3d88fb0affd52b1b9f50a73b92

9 years agoLE: Add notification sent and congestion callbacks (1/4)
Andre Eisenbach [Fri, 28 Mar 2014 21:53:33 +0000 (14:53 -0700)]
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

9 years agoAdd WBS support on Bluedroid (4/6)
Mudumba Ananth [Mon, 28 Apr 2014 04:04:35 +0000 (21:04 -0700)]
Add WBS support on Bluedroid (4/6)

     Bug 13764086

Change-Id: I7938758d39aaa1218c38956be41d8402f84c2f49

9 years agoMerge "LE: Add is_connected() function (1/3)"
Andre Eisenbach [Fri, 20 Jun 2014 22:18:04 +0000 (22:18 +0000)]
Merge "LE: Add is_connected() function (1/3)"

9 years agoImplement minimal buffer size for playback
Paul McLean [Thu, 19 Jun 2014 19:35:28 +0000 (12:35 -0700)]
Implement minimal buffer size for playback

This will enable low-latency playback in mixer/audioflinger.

Change-Id: I415aa1b92e3c6f945a48be7b626527f0b02a82d7

9 years agoLE: Add is_connected() function (1/3)
Andre Eisenbach [Wed, 18 Jun 2014 19:18:34 +0000 (12:18 -0700)]
LE: Add is_connected() function (1/3)

Change-Id: I1b94ab0c8b0ff2e1026a4f5bbe95dca25be3d104

9 years agoMerge "Minor cleanup of HAL fingerprint API"
Jim Miller [Tue, 17 Jun 2014 20:20:48 +0000 (20:20 +0000)]
Merge "Minor cleanup of HAL fingerprint API"

9 years agoMerge "usb audio: fix usb capture configuration"
Eric Laurent [Tue, 17 Jun 2014 18:26:43 +0000 (18:26 +0000)]
Merge "usb audio: fix usb capture configuration"

9 years agoMinor cleanup of HAL fingerprint API
Jim Miller [Tue, 17 Jun 2014 00:59:40 +0000 (17:59 -0700)]
Minor cleanup of HAL fingerprint API

Change-Id: I7a4b1caadfe499d2394c8645e45903759b672e8b

9 years agoam c384b186: Don\'t pass up bad sensor event packets to Sensor Services
Nick Vaccaro [Wed, 11 Jun 2014 19:53:01 +0000 (19:53 +0000)]
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

9 years agousb audio: fix usb capture configuration
Eric Laurent [Wed, 11 Jun 2014 19:00:16 +0000 (12:00 -0700)]
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

9 years agoDon't pass up bad sensor event packets to Sensor Services
Nick Vaccaro [Wed, 11 Jun 2014 01:33:07 +0000 (18:33 -0700)]
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

9 years agoMerge "tv_input: Add HDMI port ID"
Wonsik Kim [Mon, 16 Jun 2014 01:52:47 +0000 (01:52 +0000)]
Merge "tv_input: Add HDMI port ID"

9 years agoupdate struct-offset.cpp test for camera API 2.3
Greg Hackmann [Fri, 13 Jun 2014 20:52:48 +0000 (13:52 -0700)]
update struct-offset.cpp test for camera API 2.3

Change-Id: I2f63f9f5e567099ea9d0005317f7a745c5a63ca6
Signed-off-by: Greg Hackmann <ghackmann@google.com>
9 years agotv_input: Add HDMI port ID
Wonsik Kim [Thu, 12 Jun 2014 05:52:39 +0000 (14:52 +0900)]
tv_input: Add HDMI port ID

Bug: 15570939
Change-Id: Id15ef9dbc79cd9c4f55be1eb114d66e08dfe923d

9 years agoAdd support for retrieving local LE features via get_adapter_properties
Ganesh Ganapathi Batta [Tue, 27 May 2014 23:03:11 +0000 (16:03 -0700)]
Add support for retrieving local LE features via get_adapter_properties

Change-Id: I337614aa96ec08f631667dc4a18b4e5c993a79b1

9 years agoam aa13433c: am c384b186: Don\'t pass up bad sensor event packets to Sensor Services
Nick Vaccaro [Wed, 11 Jun 2014 21:48:40 +0000 (21:48 +0000)]
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

9 years agoMerge "HAL: Fingerprint: Incremental scan notification."
Sasha Levitskiy [Wed, 11 Jun 2014 19:59:03 +0000 (19:59 +0000)]
Merge "HAL: Fingerprint: Incremental scan notification."

9 years agoHAL: Fingerprint: Incremental scan notification.
Sasha Levitskiy [Mon, 9 Jun 2014 20:19:52 +0000 (13:19 -0700)]
HAL: Fingerprint: Incremental scan notification.

Change-Id: If943fe6b46a8261ca936e07a36e11c10c7e6d63a
Signed-off-by: Sasha Levitskiy <sanek@google.com>
9 years agoam 10f1a806: Fixed submix buffering when input and output stream formats differ.
Stewart Miles [Wed, 11 Jun 2014 11:24:56 +0000 (11:24 +0000)]
am 10f1a806: Fixed submix buffering when input and output stream formats differ.

* commit '10f1a806e6537835de7f71dbc05db1889436732e':
  Fixed submix buffering when input and output stream formats differ.

9 years agoMerge "hardware: camera_common: add module open legacy device API"
Zhijun He [Fri, 13 Jun 2014 18:45:57 +0000 (18:45 +0000)]
Merge "hardware: camera_common: add module open legacy device API"

9 years agohardware: camera_common: add module open legacy device API
Zhijun He [Fri, 6 Jun 2014 22:42:17 +0000 (15:42 -0700)]
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

9 years agoUse separate HAL interfaces for A2DP source and sink roles.
Mike Lockwood [Sat, 7 Jun 2014 21:05:22 +0000 (14:05 -0700)]
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

9 years agoMove AVRCP controller support to a different HAL interface
Mike Lockwood [Mon, 2 Jun 2014 23:20:51 +0000 (16:20 -0700)]
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

9 years agoAdd Support for AVRCP Controller Feature
Hemant Gupta [Fri, 7 Feb 2014 11:03:16 +0000 (16:33 +0530)]
Add Support for AVRCP Controller Feature

    - Provide support for AVRCP Controller CAT 1 and CAT 2
    passthrough commands.

Change-Id: If437a3bbd1e97d22e5ceddf0d052dbaad1093257

9 years agoMerge "Bluetooth: Add support for HFP Client role."
Mike Lockwood [Fri, 13 Jun 2014 16:07:27 +0000 (16:07 +0000)]
Merge "Bluetooth: Add support for HFP Client role."

9 years agoBluetooth: Add support for HFP Client role.
Hemant Gupta [Mon, 19 Aug 2013 12:32:54 +0000 (18:02 +0530)]
Bluetooth: Add support for HFP Client role.

Implementation changes in HAL for HFP Client role.
Include HFP Client Interface ID.

Change-Id: I1117c6a0c53e7e7059e46711f7a26639d2bbaee3

9 years agoMerge "Add sensor flags for reportingMode."
Aravind Akella [Fri, 13 Jun 2014 00:32:30 +0000 (00:32 +0000)]
Merge "Add sensor flags for reportingMode."

9 years agoAdd sensor flags for reportingMode.
Aravind Akella [Wed, 4 Jun 2014 02:21:35 +0000 (19:21 -0700)]
Add sensor flags for reportingMode.

Change-Id: Ife456dd13264bafa7cd50d72b8818526030d7a3e

9 years agoAdd callouts for bluedroid to acquire wake locks and set wake alarms.
Sharvil Nanavati [Fri, 30 May 2014 23:43:38 +0000 (16:43 -0700)]
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

9 years agoAdd callouts for bluedroid to acquire wake locks and set wake alarms.
Sharvil Nanavati [Fri, 30 May 2014 23:43:38 +0000 (16:43 -0700)]
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

9 years agoMerge "hwcomposer: Add function pointer for setPowerMode() callback"
Prashant Malani [Thu, 12 Jun 2014 17:19:40 +0000 (17:19 +0000)]
Merge "hwcomposer: Add function pointer for setPowerMode() callback"

9 years agohwcomposer: Add function pointer for setPowerMode() callback
Prashant Malani [Mon, 26 May 2014 03:41:20 +0000 (20:41 -0700)]
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>
9 years agoFixed submix buffering when input and output stream formats differ.
Stewart Miles [Tue, 10 Jun 2014 03:54:37 +0000 (20:54 -0700)]
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

9 years agoIPv6 support for GPS HAL.
destradaa [Thu, 5 Jun 2014 18:07:09 +0000 (11:07 -0700)]
IPv6 support for GPS HAL.

Change-Id: Ieb5aead647c10ed42e50bef9c4d7cd558fe7160b

9 years agoMerge "hwcomposer: Correct padding for 32/64-bit"
Dan Stoza [Fri, 6 Jun 2014 17:23:17 +0000 (17:23 +0000)]
Merge "hwcomposer: Correct padding for 32/64-bit"

9 years agoMerge "sound trigger test/stub HAL - WIP"
Eric Laurent [Thu, 5 Jun 2014 15:46:43 +0000 (15:46 +0000)]
Merge "sound trigger test/stub HAL - WIP"

9 years agoMerge "added sound trigger HAL."
Eric Laurent [Thu, 5 Jun 2014 01:09:46 +0000 (01:09 +0000)]
Merge "added sound trigger HAL."

9 years agohwcomposer: Correct padding for 32/64-bit
Dan Stoza [Wed, 4 Jun 2014 22:21:22 +0000 (15:21 -0700)]
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

9 years agosound trigger test/stub HAL - WIP
Eric Laurent [Sat, 19 Apr 2014 00:54:10 +0000 (17:54 -0700)]
sound trigger test/stub HAL - WIP

Change-Id: Ie8120df144662b12bba41e2346bac3ce816f9838

9 years agoadded sound trigger HAL.
Eric Laurent [Tue, 15 Apr 2014 17:54:24 +0000 (10:54 -0700)]
added sound trigger HAL.

Defined HAL for hardware voice and sound activity
activity detection (sound trigger).

Change-Id: I04f3c770c69a81245e8a15dd9e097e2c3f5ef069

10 years agoMerge "Replace integer constants with strings in Activity Recognition HAL."
Aravind Akella [Tue, 3 Jun 2014 17:21:37 +0000 (17:21 +0000)]
Merge "Replace integer constants with strings in Activity Recognition HAL."

10 years agoReplace integer constants with strings in Activity Recognition HAL.
Aravind Akella [Wed, 28 May 2014 00:19:52 +0000 (17:19 -0700)]
Replace integer constants with strings in Activity Recognition HAL.

Change-Id: I67d543869f5870f9e771c36c0fe1d58e7495ca57

10 years agogralloc: let target configure page flipping ioctl
Bernhard Rosenkraenzer [Tue, 25 Feb 2014 08:20:34 +0000 (13:50 +0530)]
gralloc: let target configure page flipping ioctl

Let vendor choose which framebuffer ioctl (FBIOPUT_VSCREENINFO or
FBIOPAN_DISPLAY) is best suited to do page-flip on its target platform.
Neither API is well documented about their usage and most of the
time it really depends on the respective framebuffer driver implementation.

* Default ioctl to do page-flip is FBIOPUT_VSCREENINFO.
* Set "TARGET_USE_PAN_DISPLAY=true" in board config file to use FBIOPAN_DISPLAY.

Change-Id: Ic3a50bd0f5fe37ac0149e11649c4abdadea85529
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
10 years agoMerge "Header file for MHL HAL interface definition"
Jinsuk Kim [Sat, 31 May 2014 21:21:09 +0000 (21:21 +0000)]
Merge "Header file for MHL HAL interface definition"

10 years agoHeader file for MHL HAL interface definition
Jinsuk Kim [Fri, 23 May 2014 07:05:19 +0000 (16:05 +0900)]
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

10 years agoMerge "Camera2: Build both 32 and 64 bit test binaries"
Zhijun He [Fri, 30 May 2014 17:58:59 +0000 (17:58 +0000)]
Merge "Camera2: Build both 32 and 64 bit test binaries"

10 years agoCamera2: Build both 32 and 64 bit test binaries
Zhijun He [Fri, 30 May 2014 17:02:59 +0000 (10:02 -0700)]
Camera2: Build both 32 and 64 bit test binaries

Change-Id: I6efd201a52bb546efa59ff0a5178a25a040654b4

10 years agoMerge "Rewording of tilt sensor"
Etienne Le Grand [Fri, 30 May 2014 02:42:58 +0000 (02:42 +0000)]
Merge "Rewording of tilt sensor"

10 years agoRewording of tilt sensor
Etienne Le Grand [Fri, 30 May 2014 02:35:48 +0000 (19:35 -0700)]
Rewording of tilt sensor

Change-Id: I7bb0e63c3e1e6850359d7e690bfeea9e8c8fbcbf

10 years agoam ced2c37d: (-s ours) DO NOT MERGE: Add audio info to tv_input
Wonsik Kim [Thu, 29 May 2014 09:43:35 +0000 (09:43 +0000)]
am ced2c37d: (-s ours) DO NOT MERGE: Add audio info to tv_input

* commit 'ced2c37d0579d9182c6b44fd50419209613c8c0a':
  DO NOT MERGE: Add audio info to tv_input

10 years agoDO NOT MERGE: Add audio info to tv_input
Wonsik Kim [Fri, 23 May 2014 08:22:04 +0000 (17:22 +0900)]
DO NOT MERGE: Add audio info to tv_input

Bug: 15177175
Change-Id: I5d3d710753065f108a5346237fbb9a1880f7c08d
(cherry picked from commit 8b5714fe2f3fbbab5bfc91db1a5c5018e6d4deab)

10 years agoMerge "Add audio info to tv_input"
Wonsik Kim [Thu, 29 May 2014 02:26:05 +0000 (02:26 +0000)]
Merge "Add audio info to tv_input"

10 years agoam 5f3b7da7: Merge "camera3: Update FULL/LIMITED operational modes" into lmp-preview-dev
Zhijun He [Thu, 29 May 2014 00:42:27 +0000 (00:42 +0000)]
am 5f3b7da7: Merge "camera3: Update FULL/LIMITED operational modes" into lmp-preview-dev

* commit '5f3b7da796c638591c27dfdf04f2c1cd85791d5b':
  camera3: Update FULL/LIMITED operational modes

10 years agoam 060a115f: (-s ours) DO NOT MERGE - audio: audio HAL extension for routing and...
Eric Laurent [Thu, 29 May 2014 00:42:18 +0000 (00:42 +0000)]
am 060a115f: (-s ours) DO NOT MERGE - audio: audio HAL extension for routing and volume control

* commit '060a115f44bb458a73e6540bcd890b5ab44bd7bc':
  DO NOT MERGE - audio: audio HAL extension for routing and volume control

10 years agoam a906a33d: (-s ours) DO NOT MERGE - audio HAL: add minimum supported version
Eric Laurent [Thu, 29 May 2014 00:42:10 +0000 (00:42 +0000)]
am a906a33d: (-s ours) DO NOT MERGE - audio HAL: add minimum supported version

* commit 'a906a33d3045019cbc1502c3e53686b06d6302d9':
  DO NOT MERGE - audio HAL: add minimum supported version

10 years agoMerge "camera3: Update FULL/LIMITED operational modes" into lmp-preview-dev
Zhijun He [Wed, 28 May 2014 22:46:28 +0000 (22:46 +0000)]
Merge "camera3: Update FULL/LIMITED operational modes" into lmp-preview-dev