Commit graph

1586 commits

Author SHA1 Message Date
Stewart Miles
568e66ff9e Modified submix buffer size accessors to use the pipe configuration.
This change stores the period size (fraction of the pipe buffer size)
in the submix device's configuration which is then used to calculate
the input and output stream buffer size.

In addition, accessors for the input / output stream format have been
modified to use the pipe format in the device configuration rather than
returning hard coded values.

Bug: 11273000
Change-Id: I9c14f8d549f4b4a6d7f77a9aeab4edfa5ba6bd1a
2014-05-14 09:17:22 -07:00
Stewart Miles
f645c5e629 Implemented accessors for derived submix HAL objects.
This change cleans up casting from contained to container structures.
Such that if..

struct child {
  struct parent;
  int child_data;
};

is changed to...

struct child {
  int child_data;
  struct parent;
};

functions that cast from "parent" to "child" will continue to function
correctly.

Change-Id: I88d70930d4d4df2e291239e562971b07d8b92f94
2014-05-13 12:15:40 -07:00
Stewart Miles
b253bcc44a Described restrictions for common HAL object methods in nfc.h.
Follow up from change Ibe4300275286ef275b2097534c84f1029d761d87
which extends comments to the nfc_nci_module_t and nfc_nci_device_t
structures.

Change-Id: I060bda450912ff3fc041027faa8f03c24e310870
2014-05-12 15:05:24 -07:00
Jinsuk Kim
3f08cd678e Merge "Described restrictions for common HAL object methods." 2014-05-12 21:39:30 +00:00
Greg Hackmann
1b8191186e update struct-offset.cpp test for gralloc API 0.3
Change-Id: I6509ea0fda3a3d9b4aea83c5342a491993dc9c26
Signed-off-by: Greg Hackmann <ghackmann@google.com>
2014-05-12 13:49:42 -07:00
Stewart Miles
748c94b581 Merge "Added a compile time option to enable / disable verbose submix logging." 2014-05-12 19:44:21 +00:00
Stewart Miles
84d35492b1 Described restrictions for common HAL object methods.
Inheritance of HAL object is performed by composing a child structure of a
single parent structure located at offset 0 followed by new data members
and function pointers in the child structure.

For example,

struct child {
  struct parent common;
  int a_data_member;
  void (*a_method)(struct child *c, int v);
};

HAL code assumes this layout when accessing child structures given a pointer
to a parent structure such that users write code like the following...

void child_method(struct *parent, int v) {
  struct child * c = (struct child*)parent;
  // do stuff with c
}

Code above will break if a member is added before "common" in "struct child".

This change adds comments that describe the restriction on the location of
parent HAL objects within a derived HAL object.  HAL objects that already
have comments that describe the required location of parent objects are not
modified.

Change-Id: Ibe4300275286ef275b2097534c84f1029d761d87
2014-05-12 12:35:37 -07:00
Stewart Miles
c049a0a3a9 Added a compile time option to enable / disable verbose submix logging.
Along with the following minor changes:
* Fixed all referenced variable compiler warnings.
* Ordered headers in alphabetical order.

Change-Id: I122ef67d25b78056a60b85baf897005293a9efa0
2014-05-12 12:11:20 -07:00
Greg Hackmann
42a7557fe2 am 7c05b1d8: am 6f91ded5: am c63ec07b: Merge "gralloc: Add asynchronous lock/unlock API"
* commit '7c05b1d8f9e01ac4b169533b502e1b9a35f4aeb9':
  gralloc: Add asynchronous lock/unlock API
2014-05-12 18:18:46 +00:00
Greg Hackmann
7c05b1d8f9 am 6f91ded5: am c63ec07b: Merge "gralloc: Add asynchronous lock/unlock API"
* commit '6f91ded57bf133fbf572cde2f5623bb8289f7eaa':
  gralloc: Add asynchronous lock/unlock API
2014-05-12 18:12:33 +00:00
Greg Hackmann
6f91ded57b am c63ec07b: Merge "gralloc: Add asynchronous lock/unlock API"
* commit 'c63ec07b3ca11de8e0321a0875119427bb0bad86':
  gralloc: Add asynchronous lock/unlock API
2014-05-12 18:08:12 +00:00
Greg Hackmann
c63ec07b3c Merge "gralloc: Add asynchronous lock/unlock API" 2014-05-12 18:01:56 +00:00
Francis Hart
2e49f9acbb gralloc: Add asynchronous lock/unlock API
The existing API exposed to clients for software lock/unlock forces the gralloc
implementation to complete these operations synchronously. This change adds new
entry points for lock/unlock functionality that is suited for use with Android's
explicit synchronisation concept. This provides scope for the gralloc module
to internally optimise the work it must do for lock/unlock and to hide this cost
from the client.

Change-Id: If4b1bb5490ab2b20d796214a7da8a96427cfe52d
2014-05-12 09:13:35 -07:00
Greg Hackmann
5d237c6430 am b283598b: am 06c19bd0: am 2d91d000: Merge "Revert "gralloc: Add asynchronous lock/unlock API""
* commit 'b283598bad4ce833b4f19f9526b9f4dc75d9d245':
  Revert "gralloc: Add asynchronous lock/unlock API"
2014-05-09 22:00:04 +00:00
Greg Hackmann
131c35004e am 62cff27d: am 5a1ca138: am e79f167e: Merge "gralloc: Add asynchronous lock/unlock API"
* commit '62cff27d48eada351ea952e5b960ab2f2c15b1d3':
  gralloc: Add asynchronous lock/unlock API
2014-05-09 21:54:48 +00:00
Greg Hackmann
b283598bad am 06c19bd0: am 2d91d000: Merge "Revert "gralloc: Add asynchronous lock/unlock API""
* commit '06c19bd047d63adcf99094f6f0dd17b58150bba6':
  Revert "gralloc: Add asynchronous lock/unlock API"
2014-05-09 21:51:51 +00:00
Greg Hackmann
06c19bd047 am 2d91d000: Merge "Revert "gralloc: Add asynchronous lock/unlock API""
* commit '2d91d000bce3db23ac51888d109c9f29272ea96a':
  Revert "gralloc: Add asynchronous lock/unlock API"
2014-05-09 21:46:45 +00:00
Greg Hackmann
2d91d000bc Merge "Revert "gralloc: Add asynchronous lock/unlock API"" 2014-05-09 21:39:10 +00:00
Greg Hackmann
fd9dc63027 Revert "gralloc: Add asynchronous lock/unlock API"
This reverts commit 2861789f4f.

Change-Id: I334b8ca9b9fdef510df514c18aabb6a593dfaa75
2014-05-09 21:36:14 +00:00
Greg Hackmann
62cff27d48 am 5a1ca138: am e79f167e: Merge "gralloc: Add asynchronous lock/unlock API"
* commit '5a1ca138be2e45284a3a5ad33977ee774a57a56d':
  gralloc: Add asynchronous lock/unlock API
2014-05-09 21:13:17 +00:00
Greg Hackmann
5a1ca138be am e79f167e: Merge "gralloc: Add asynchronous lock/unlock API"
* commit 'e79f167e4a997b92d2da8e14a8a78c557503b48a':
  gralloc: Add asynchronous lock/unlock API
2014-05-09 21:08:39 +00:00
Greg Hackmann
e79f167e4a Merge "gralloc: Add asynchronous lock/unlock API" 2014-05-09 21:02:07 +00:00
Matthew Xie
4c847f2b79 Merge "LE: Add controller based advertising filter API (1/2)" 2014-05-07 05:47:54 +00:00
Matthew Xie
b8fd4eedca Merge "Add transport param to Connect APIs" 2014-05-07 05:47:38 +00:00
Matthew Xie
2f8787b8bc Merge "Bluetooth: Multi HF support" 2014-05-07 05:47:25 +00:00
Ruchi Kandoi
16437b90bc Merge "power: Adds a new power hint POWER_HINT_LOW_POWER" 2014-05-07 02:08:26 +00:00
Ruchi Kandoi
62f67558af power: Adds a new power hint POWER_HINT_LOW_POWER
Change-Id: Ib0adda9bce0719eb47d41dc7c77f4bd9576311a9
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
2014-05-06 18:59:08 -07:00
Etienne Le Grand
750d5eadf7 Merge "Add SENSOR_TYPE_WAKE_GESTURE in the sensor hal." 2014-05-07 01:17:28 +00:00
Etienne Le Grand
ba12312fe1 Add SENSOR_TYPE_WAKE_GESTURE in the sensor hal.
Change-Id: Ia84dfe487bfdea227d5ae856f7e44b021dac1f19
2014-05-06 12:24:28 -07:00
Nick Vaccaro
090c599894 am c7651350: am d34ed32e: Change MultiHal API version to 1.1
* commit 'c76513507b4a081e80ebf9a441d04005bf94418a':
  Change MultiHal API version to 1.1
2014-05-06 17:45:55 +00:00
Nick Vaccaro
c76513507b am d34ed32e: Change MultiHal API version to 1.1
* commit 'd34ed32e06045c5a55b4d25247a98fa64c233bfe':
  Change MultiHal API version to 1.1
2014-05-06 17:42:28 +00:00
Andre Eisenbach
709f23982a LE: Add controller based advertising filter API (1/2)
Change-Id: I6c3ed7d1d088d2ac48493a835912617f1f655a37
2014-05-06 01:31:23 -07:00
Ganesh Ganapathi Batta
f9f4d10c4a Add transport param to Connect APIs
Support for passing preferred transport for GATT connections as part of
Connect APIs

Change-Id: I83ba256574234c0a15a4bff48bcffa2e237c9393
2014-05-06 01:24:05 -07:00
Sunny Kapdi
6253b05364 Bluetooth: Multi HF support
This patch adds multi hf support in HAL
Adds bd_addr parameter for callbacks from stack.

Change-Id: I960bc127026d7e96dea79316e1f03b0b0915974a
2014-05-06 01:24:05 -07:00
Nick Vaccaro
d34ed32e06 Change MultiHal API version to 1.1
Bug: 14451762

Change-Id: Id16fa71ae7382689ce141a92eb974b208e20327b
2014-05-05 17:56:32 -07:00
Aravind Akella
d482efcd74 Merge "Define TILT sensor" 2014-05-05 22:47:52 +00:00
Aravind Akella
f895c6824f Define TILT sensor
Change-Id: Ic3c223488aa4a0d66b07ae3065e59f8e2fe69ceb
2014-05-05 15:45:07 -07:00
Francis Hart
2861789f4f gralloc: Add asynchronous lock/unlock API
The existing API exposed to clients for software lock/unlock forces the gralloc
implementation to complete these operations synchronously. This change adds new
entry points for lock/unlock functionality that is suited for use with Android's
explicit synchronisation concept. This provides scope for the gralloc module
to internally optimise the work it must do for lock/unlock and to hide this cost
from the client.

Change-Id: I6c41f4a532b705fc76c7777b2f04ea293506b381
2014-05-02 19:46:58 +00:00
Sasha Levitskiy
0d1cd3fcc2 Hardware: Fingerprint: HAL adds removed notification, normalizes names.
Change-Id: Id0a8e120043c00bf351aa1c9d3f0c06c2e4af947
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2014-04-30 15:17:31 -07:00
Bill Yi
2616c9016e am 0512ec33: am 08e9b2a4: Merge commit \'f404dc42d6677a1aee88d1ce996a7e8e4afe55bb\' into HEAD
* commit '0512ec33ff825470297f8c633fc6a5ce35fde771':
2014-04-30 12:50:20 +00:00
Bill Yi
0512ec33ff am 08e9b2a4: Merge commit \'f404dc42d6677a1aee88d1ce996a7e8e4afe55bb\' into HEAD
* commit '08e9b2a43d43a23067e577b5bd83a41964e70107':
2014-04-30 00:59:02 +00:00
Jinsuk Kim
005ff6021a am 85425cfe: am c2a0b248: Merge "Update HDMI-CEC HAL interface definition" into klp-modular-dev
* commit '85425cfe8937cc82722e6495b3eb4573db461eb7':
  Update HDMI-CEC HAL interface definition
2014-04-29 21:38:10 +00:00
Jinsuk Kim
85425cfe89 am c2a0b248: Merge "Update HDMI-CEC HAL interface definition" into klp-modular-dev
* commit 'c2a0b2484ab80351ad18fb0b8337a8150e656b93':
  Update HDMI-CEC HAL interface definition
2014-04-29 21:34:58 +00:00
Jinsuk Kim
c2a0b2484a Merge "Update HDMI-CEC HAL interface definition" into klp-modular-dev 2014-04-29 21:32:30 +00:00
Glenn Kasten
41583549f7 Merge "Add symbol AUDIO_PARAMETER_KEY_BT_SCO_WB" 2014-04-29 21:15:10 +00:00
Glenn Kasten
d930d92c97 Add symbol AUDIO_PARAMETER_KEY_BT_SCO_WB
Change-Id: Ib2cfef74a57467cb01b5e0c44af335f53791e348
2014-04-29 13:35:57 -07:00
Bill Yi
08e9b2a43d Merge commit 'f404dc42d6677a1aee88d1ce996a7e8e4afe55bb' into HEAD 2014-04-29 11:34:21 -07:00
Aravind Akella
855dd917cf Merge "Activity Recognition HAL." 2014-04-29 17:26:01 +00:00
Mark Salyzyn
27036d7fd5 Merge "USB HAL: 64-bit compile issues" 2014-04-29 15:34:40 +00:00
Aravind Akella
462eae34ce Activity Recognition HAL.
Change-Id: I6fa175376464a4498fc9ed71dc33199be4754599
2014-04-28 18:27:49 -07:00