OSDN Git Service

android-x86/hardware-libhardware.git
9 years agoDelete mcu HAL.
Jeff Brown [Sat, 26 Jul 2014 21:58:23 +0000 (14:58 -0700)]
Delete mcu HAL.

This HAL was intended to support doze mode but it is currently
unused and it's best for it to stay that way.

Bug: 16516536
Change-Id: I4f442e27d68f18ff322afd4c1debd2f392687e80

9 years agoMerge "Refactor USB HAL (audio_hw.c)" into lmp-dev
Paul McLean [Fri, 25 Jul 2014 20:44:06 +0000 (20:44 +0000)]
Merge "Refactor USB HAL (audio_hw.c)" into lmp-dev

9 years agoRefactor USB HAL (audio_hw.c)
Paul McLean [Wed, 16 Jul 2014 16:48:34 +0000 (09:48 -0700)]
Refactor USB HAL (audio_hw.c)

Refactoring alsa device attributes to alsa_device_profile.h/.c
Refactoring alsa device state to alsa_device_proxy.h/.c
Refactoring format functions into format.h/.c
Refactoring logging functions into logging.h/.c
Sundry (and extensive) code cleanup
Reworked locking on out_write() and in_read() to allow
  simultaneous input/output

Bug: 159868271585670212833166

Change-Id: I82c8d0ef252b2f95ee23f263dc175f4c883bfd64

9 years agoMerge "Add HAL module ID for BCM2079x." into lmp-dev
Martijn Coenen [Fri, 25 Jul 2014 18:58:23 +0000 (18:58 +0000)]
Merge "Add HAL module ID for BCM2079x." into lmp-dev

9 years agoAdd HAL module ID for BCM2079x.
Martijn Coenen [Fri, 25 Jul 2014 01:00:42 +0000 (18:00 -0700)]
Add HAL module ID for BCM2079x.

Bug: 16542494
Change-Id: Ia03f981d134e0f4f2de909f8ab158b28931a1dc0

9 years agoMerge "Camera: Define error codes for remaining camera_module methods." into lmp-dev
Eino-Ville Talvala [Fri, 25 Jul 2014 18:32:15 +0000 (18:32 +0000)]
Merge "Camera: Define error codes for remaining camera_module methods." into lmp-dev

9 years agoCamera: Define error codes for remaining camera_module methods.
Eino-Ville Talvala [Thu, 24 Jul 2014 23:44:56 +0000 (16:44 -0700)]
Camera: Define error codes for remaining camera_module methods.

Not previously documented, though already assumed to be this.

Bug: 16514157
Change-Id: I9334fdf672c9772014681a5c346a6f20b51d8213

9 years agoupdate struct-offset.cpp test for hwc 1.4
Greg Hackmann [Thu, 24 Jul 2014 20:27:07 +0000 (13:27 -0700)]
update struct-offset.cpp test for hwc 1.4

Change-Id: I882a1741ad473492d4acc58918a54d944ac382c3
Signed-off-by: Greg Hackmann <ghackmann@google.com>
9 years agoMerge "gralloc: add GRALLOC_USAGE_CURSOR flag" into lmp-dev
Greg Hackmann [Thu, 24 Jul 2014 19:05:40 +0000 (19:05 +0000)]
Merge "gralloc: add GRALLOC_USAGE_CURSOR flag" into lmp-dev

9 years agoAdd interface for doing asynchonous cursor layer updates to hwcomposer
Riley Andrews [Mon, 30 Jun 2014 22:55:55 +0000 (15:55 -0700)]
Add interface for doing asynchonous cursor layer updates to hwcomposer

Change-Id: If2ab523b400cfb586c8e1fed98f2ebe3538c0419

9 years agogralloc: add GRALLOC_USAGE_CURSOR flag
Greg Hackmann [Wed, 9 Jul 2014 20:58:44 +0000 (13:58 -0700)]
gralloc: add GRALLOC_USAGE_CURSOR flag

On many devices, hardware cursors have stricter layout constraints than
other overlays.  GRALLOC_USAGE_CURSOR indicates a buffer may be used as
a cursor; byte order and padding should be chosen accordingly.

GRALLOC_USAGE_CURSOR must not cause allocation failure.  If the requested
properties (dimensions, format, other usage flags, etc.) aren't compatible with
the device's cursor hardware, the implementation must allocate the buffer
anyway, acting as if GRALLOC_USAGE_CURSOR were not specified.

Change-Id: I7d66e8d7c953421d996c5def3257d408f91962f4
Signed-off-by: Greg Hackmann <ghackmann@google.com>
9 years agoLE energy info feature
Satya Calloji [Thu, 3 Jul 2014 17:59:16 +0000 (10:59 -0700)]
LE energy info feature

Header changes for energy info feature

Change-Id: Ic341ad9089b444960c36beff726fa9ddb5c901a2

9 years agoMerge "Fix typo in sensor type using an already defined constant." into lmp-dev
destradaa [Wed, 23 Jul 2014 23:24:14 +0000 (23:24 +0000)]
Merge "Fix typo in sensor type using an already defined constant." into lmp-dev

9 years agoAdd uncertainty for GPS received tow field.
destradaa [Tue, 22 Jul 2014 01:13:42 +0000 (18:13 -0700)]
Add uncertainty for GPS received tow field.
b/16463499

Change-Id: Ib8ddd092f3da8295345524846e3ea0bcce59ccc2

9 years agoFix typo in sensor type using an already defined constant.
destradaa [Mon, 21 Jul 2014 22:12:21 +0000 (15:12 -0700)]
Fix typo in sensor type using an already defined constant.

Change-Id: I209d9191456dc6c1ef2eb695c9a8348a18504a8d

9 years agoMerge "Update GPS measurement HAL definition." into lmp-dev
destradaa [Mon, 21 Jul 2014 18:17:42 +0000 (18:17 +0000)]
Merge "Update GPS measurement HAL definition." into lmp-dev

9 years agoReorder hardware types & remove verbose comments
Wonsik Kim [Sat, 19 Jul 2014 07:01:57 +0000 (16:01 +0900)]
Reorder hardware types & remove verbose comments

Reorder hardware types so that older types comes first roughly. This
would make it more natural to add newer hardware types as they come.
In addition, remove verbose comments where the meaning is obvious from
the name.

Change-Id: I275e9e608c8c2392e3f7ec2c5d81743059f2d36b

9 years agoAdd new HWC_POWER_MODE_DOZE_SUSPEND power state.
Jeff Brown [Fri, 18 Jul 2014 03:01:59 +0000 (20:01 -0700)]
Add new HWC_POWER_MODE_DOZE_SUSPEND power state.

Change-Id: Ice194315bc51ca25732c9e30c809bd6b39f3718f

9 years agoUpdate GPS measurement HAL definition.
destradaa [Thu, 17 Jul 2014 21:04:50 +0000 (14:04 -0700)]
Update GPS measurement HAL definition.

b/16374800

Change-Id: I39602e4b7dedeca5de866cdb996887ae53d5aa9d

9 years agoMerge "Update comment for send message." into lmp-dev
Jungshik Jang [Mon, 21 Jul 2014 23:23:11 +0000 (23:23 +0000)]
Merge "Update comment for send message." into lmp-dev

9 years agoUpdate comment for send message.
Jungshik Jang [Mon, 21 Jul 2014 09:06:01 +0000 (18:06 +0900)]
Update comment for send message.

HAL should not handle retransmission because it's handled by
hdmi control service.

Change-Id: I0daf1baf6f87805e2049ff84c6f8c2cace76dba2

9 years agoMerge "LE: Add connection parameter update request API (1/4)" into lmp-dev
Andre Eisenbach [Fri, 18 Jul 2014 19:29:36 +0000 (19:29 +0000)]
Merge "LE: Add connection parameter update request API (1/4)" into lmp-dev

9 years agoLE: Add connection parameter update request API (1/4)
Andre Eisenbach [Thu, 17 Jul 2014 05:58:36 +0000 (22:58 -0700)]
LE: Add connection parameter update request API (1/4)

Change-Id: I90955b5e1640f7025e864ac9227af6ad8ba5ca77

9 years agoAdd glance gesture for doze mode.
Jeff Brown [Thu, 17 Jul 2014 22:11:51 +0000 (15:11 -0700)]
Add glance gesture for doze mode.

Change-Id: I2daa13e74d2183247c314c15ee283b7a6c20bc22

9 years agoMerge "Move channel expansion/contraction functions to audio_utils/channels.h/.c...
Paul McLean [Fri, 18 Jul 2014 19:27:07 +0000 (19:27 +0000)]
Merge "Move channel expansion/contraction functions to audio_utils/channels.h/.c" into lmp-dev

9 years agoMerge "Define SENSOR_TYPE_PICK_UP_GESTURE." into lmp-dev
Aravind Akella [Thu, 17 Jul 2014 21:39:48 +0000 (21:39 +0000)]
Merge "Define SENSOR_TYPE_PICK_UP_GESTURE." into lmp-dev

9 years agoDefine SENSOR_TYPE_PICK_UP_GESTURE.
Aravind Akella [Thu, 17 Jul 2014 19:40:54 +0000 (12:40 -0700)]
Define SENSOR_TYPE_PICK_UP_GESTURE.

Change-Id: I122f37f5625a2acc3912ad37bdf8717ae2f31b6f

9 years agoMove channel expansion/contraction functions to audio_utils/channels.h/.c
Paul McLean [Wed, 16 Jul 2014 20:46:07 +0000 (13:46 -0700)]
Move channel expansion/contraction functions to audio_utils/channels.h/.c

Change-Id: I967a062f6c1cb5ae6acb6e92f4f3df00a0336733

9 years agoAdd audio_input_flags_t to HAL open_input_stream
Glenn Kasten [Tue, 15 Jul 2014 18:10:38 +0000 (11:10 -0700)]
Add audio_input_flags_t to HAL open_input_stream

Change-Id: I3519bfa45809e064d19473ebe6489c5249d306a8

9 years agoMarking invalid PCM formats with PCM_FORMAT_INVALID, shrinking format table.
Paul McLean [Wed, 16 Jul 2014 15:40:00 +0000 (08:40 -0700)]
Marking invalid PCM formats with PCM_FORMAT_INVALID, shrinking format table.

Change-Id: I57da4ed85fe128e88e63c03be4fe836f8de76ac8

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

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

9 years agoRevert "Added enumeration of legitimate sample rates for input and output."
Eric Laurent [Tue, 15 Jul 2014 23:15:05 +0000 (23:15 +0000)]
Revert "Added enumeration of legitimate sample rates for input and output."

This reverts commit 0a4f9f6662aad6b97a1877030d5efbcfbd94c03c.

Change-Id: I6e7125aecf2ff2e89a4c9206dc669d8e792a6300

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 "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 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