OSDN Git Service

android-x86/hardware-libhardware.git
12 years agofix typo in documentation
Mathias Agopian [Tue, 24 Apr 2012 22:42:37 +0000 (15:42 -0700)]
fix typo in documentation

Change-Id: I2c55034c25edd466180cd9c5718c2ad568aeedff

12 years agorename audio policy output flags.
Eric Laurent [Wed, 18 Apr 2012 20:58:44 +0000 (13:58 -0700)]
rename audio policy output flags.

Change-Id: I965fa9bcba45f223f2f2cbc4adccfb5491414c8b

12 years agoaudio: updated audio HAL device API
Eric Laurent [Tue, 10 Apr 2012 23:56:32 +0000 (16:56 -0700)]
audio: updated audio HAL device API

Modified open output and input stream functions to add new
parameters needed by audio HAL. Also grouped parameters
in a config structure for clarity.

Change-Id: I60832d8e5b5e4a48f209a6d83f5ca9c044be61f1

12 years agoMerge "Revise camera HAL 2, and add unit test skeleton."
Eino-Ville Talvala [Tue, 17 Apr 2012 15:57:44 +0000 (08:57 -0700)]
Merge "Revise camera HAL 2, and add unit test skeleton."

12 years agousbaudio: add initial usbaudio default HAL
Simon Wilson [Fri, 6 Apr 2012 23:17:12 +0000 (16:17 -0700)]
usbaudio: add initial usbaudio default HAL

Change-Id: I6e93b2512883f3697683a74cadb9a29113966bc0

12 years agoRevise camera HAL 2, and add unit test skeleton.
Eino-Ville Talvala [Thu, 22 Mar 2012 20:11:05 +0000 (13:11 -0700)]
Revise camera HAL 2, and add unit test skeleton.

- Add missing method in stream_ops (set_buffers_geometry)

- Remove extra method in stream_ops (set_swap_interval)

- Document metadata queue protocol

- Change metadata queue methods to be set/get through function calls
  only, instead of a struct member in the HAL device ops.

- Change vendor extension tag query methods to be retrieved by a get
  call, instead of a struct member in the HAL device ops.

- Add basic gtest unit test skeleton, which currently just returns
  static info from all camera devices.

Change-Id: I94117097b0243023ad60638070cc7f0cefec18e6

12 years agoimprove hwc VSYNC documentation
Mathias Agopian [Wed, 11 Apr 2012 04:22:28 +0000 (21:22 -0700)]
improve hwc VSYNC documentation

Change-Id: I5820d8fa183701ebbc0a825cf27bd0004b47d62e

12 years agoaudio policy: load audio hw modules.
Eric Laurent [Wed, 28 Mar 2012 18:10:51 +0000 (11:10 -0700)]
audio policy: load audio hw modules.

Added methods to audio_policy_service_ops to load an audio hw module.

Added methods to open an output or input stream on a particualr module.

Change-Id: Ia0618053bec9978c1b7d2a5f6c02b78209557256

12 years agoMerge "add support for VSYNC events in h/w composer HAL"
Mathias Agopian [Wed, 4 Apr 2012 02:10:25 +0000 (19:10 -0700)]
Merge "add support for VSYNC events in h/w composer HAL"

12 years agoMerge "audio: added definitions for audio HAL modules"
Eric Laurent [Tue, 3 Apr 2012 23:46:46 +0000 (16:46 -0700)]
Merge "audio: added definitions for audio HAL modules"

12 years agoaudio: added definitions for audio HAL modules
Eric Laurent [Tue, 3 Apr 2012 19:07:02 +0000 (12:07 -0700)]
audio: added definitions for audio HAL modules

Change-Id: I16f8b42ab5de503d38086413b83e934ac9aa1f24

12 years agoadd support for VSYNC events in h/w composer HAL
Mathias Agopian [Sat, 24 Mar 2012 22:56:29 +0000 (15:56 -0700)]
add support for VSYNC events in h/w composer HAL

Change-Id: Ic19a41ae522a236f45957e50c792934d987b116a

12 years agoUpdate comments
Glenn Kasten [Fri, 10 Feb 2012 21:42:44 +0000 (13:42 -0800)]
Update comments

Change-Id: I123d9baeceda13608cc01eda6a19e13822258dc0

12 years agoMerge "hardware: add some guidance on providing version defines"
Dima Zavin [Fri, 30 Mar 2012 18:58:04 +0000 (11:58 -0700)]
Merge "hardware: add some guidance on providing version defines"

12 years agoMerge "Add specific version number constants to Camera HAL."
Eino-Ville Talvala [Tue, 27 Mar 2012 23:50:18 +0000 (16:50 -0700)]
Merge "Add specific version number constants to Camera HAL."

12 years agoAdd specific version number constants to Camera HAL.
Eino-Ville Talvala [Tue, 27 Mar 2012 23:15:25 +0000 (16:15 -0700)]
Add specific version number constants to Camera HAL.

These constants should be used by HAL implementations to indicate
which versions of the module and device APIs they support.

Change-Id: I4b6eae278481545694e6a1827833b5958c26720c

12 years agohardware: add some guidance on providing version defines
Dima Zavin [Tue, 27 Mar 2012 06:14:15 +0000 (23:14 -0700)]
hardware: add some guidance on providing version defines

Change-Id: I456cb209bc5d5eb739b6fd2e2f3e869caa363ff0
Signed-off-by: Dima Zavin <dima@android.com>
12 years agoMerge "Fixed an incorrect path for the include header file in a comment"
James Dong [Tue, 27 Mar 2012 00:47:50 +0000 (17:47 -0700)]
Merge "Fixed an incorrect path for the include header file in a comment"

12 years agoMerge "keymaster: add flags for keymaster features"
Kenny Root [Mon, 26 Mar 2012 23:42:39 +0000 (16:42 -0700)]
Merge "keymaster: add flags for keymaster features"

12 years agoFixed an incorrect path for the include header file in a comment
James Dong [Mon, 26 Mar 2012 23:22:35 +0000 (16:22 -0700)]
Fixed an incorrect path for the include header file in a comment

Change-Id: I9c6f76279b54c2de66a31f751afc9222c345eb47

12 years agokeymaster: add flags for keymaster features
Kenny Root [Mon, 26 Mar 2012 20:47:48 +0000 (13:47 -0700)]
keymaster: add flags for keymaster features

The first flag is something for the default implementation to use to
indicate that its keys are importable to hardware keymasters. This
allows easy migration from the default software implementation to
hardware implementations as they become available.

Change-Id: Ideb26a4b1ac91ca8c330a4fe4df323f028b2f855

12 years agoMerge "Add delete_all to keymaster API"
Kenny Root [Mon, 26 Mar 2012 21:54:22 +0000 (14:54 -0700)]
Merge "Add delete_all to keymaster API"

12 years agoAdd delete_all to keymaster API
Kenny Root [Fri, 23 Mar 2012 23:17:28 +0000 (16:17 -0700)]
Add delete_all to keymaster API

In order to aid keymasters erase their memory efficiently, introduce new
delete_all API to tell keymasters to forget everything. This will be
triggered when keystore itself is told to reset.

Change-Id: I730375f1f32cd1ea0bf1fa38d5b1bec2f81ba492

12 years agoimprove HWC versioning
Mathias Agopian [Sun, 25 Mar 2012 08:09:35 +0000 (01:09 -0700)]
improve HWC versioning

Change-Id: Ieb50629f23c0d2b7af12c5541a8278a0979d2ee4

12 years agoadd support for setting the background color
Mathias Agopian [Fri, 3 Feb 2012 23:54:11 +0000 (15:54 -0800)]
add support for setting the background color

this is a revision of the h/w composer API. This change
is binary backward compatible.

Change-Id: Id4cf43447594db9049f7e2c44ea08157ca725129

12 years agoUse frameworks/native copy of UniquePtr.h
Kenny Root [Thu, 22 Mar 2012 23:33:37 +0000 (16:33 -0700)]
Use frameworks/native copy of UniquePtr.h

Change-Id: Idfe46c057699b5f019f84e588bb8a9697e48236c

12 years agoFix camera2.h header.
Eino-Ville Talvala [Thu, 22 Mar 2012 20:09:56 +0000 (13:09 -0700)]
Fix camera2.h header.

Change-Id: Ibcc93279da2180743d7bbe2561f2bf10879ae08e

12 years agoMerge "Reorganize camera HAL, and add versioning support."
Eino-Ville Talvala [Thu, 22 Mar 2012 18:09:08 +0000 (11:09 -0700)]
Merge "Reorganize camera HAL, and add versioning support."

12 years agoMerge remote-tracking branch 'goog/ics-aah-exp'
Mike Lockwood [Thu, 22 Mar 2012 00:35:00 +0000 (17:35 -0700)]
Merge remote-tracking branch 'goog/ics-aah-exp'

empty -s ours merge

Change-Id: Idccc5a540d4d50ad529fe8d08a49fe55556dd9a8

12 years agoReorganize camera HAL, and add versioning support.
Eino-Ville Talvala [Thu, 22 Dec 2011 21:50:37 +0000 (13:50 -0800)]
Reorganize camera HAL, and add versioning support.

Includes a draft of camera device HAL 2.

Change-Id: I5f56a8c54a33d0ca039360185822a9c22436cab8

12 years agohardware: add hardware_device_api_version() macro
Dima Zavin [Wed, 21 Mar 2012 20:35:32 +0000 (13:35 -0700)]
hardware: add hardware_device_api_version() macro

Change-Id: I79c4d65f6bab227364d5f271df9bd7bc565857c2
Signed-off-by: Dima Zavin <dima@android.com>
12 years agoMerge "libhardware: add current HAL version and a module version macro"
Dima Zavin [Wed, 21 Mar 2012 17:44:43 +0000 (10:44 -0700)]
Merge "libhardware: add current HAL version and a module version macro"

12 years agolibhardware: add current HAL version and a module version macro
Dima Zavin [Wed, 21 Mar 2012 06:15:50 +0000 (23:15 -0700)]
libhardware: add current HAL version and a module version macro

Change-Id: I30c67a6c5231f8b270b57f78bd6322c201b90859
Signed-off-by: Dima Zavin <dima@android.com>
12 years agoMerge changes Ie543d3a9,I3e33e5a9
Dima Zavin [Tue, 20 Mar 2012 19:32:17 +0000 (12:32 -0700)]
Merge changes Ie543d3a9,I3e33e5a9

* changes:
  hardware: provide temp version defines for source compatibility
  hardware: rename version_major/minor to module/hal api version

12 years agohardware: provide temp version defines for source compatibility
Dima Zavin [Tue, 20 Mar 2012 05:48:32 +0000 (22:48 -0700)]
hardware: provide temp version defines for source compatibility

This allows all the existing modules to have source level
compatibility until they are fixed to use the new field names.

Since the binary compatibility has not been altered, we do not
need to force all the implementors to rev their version numbers.

This change should be reverted when all the clients have been updated.

Change-Id: Ie543d3a972d8abe03ca5123e3000966f048d1771
Signed-off-by: Dima Zavin <dima@android.com>
12 years agohardware: rename version_major/minor to module/hal api version
Dima Zavin [Tue, 20 Mar 2012 05:38:15 +0000 (22:38 -0700)]
hardware: rename version_major/minor to module/hal api version

The previous names and documentation were not clear as to how the
version fields should be used. As a result, they were often either
unused or used improperly.

It became clear that there were two version fields necessary. One
to version the implementing module and the other to version the
hw_module_t interface itself.

This change renames version_major and version_minor members of
hw_module_t to module_api_version and hal_api_version. It also
provides in-depth descriptions for all the fields and clarifies
the purpose of the version field in hw_device_t structure.

Change-Id: I3e33e5a922cdc17c5e3b1c30a00e211394f18e86
Signed-off-by: Dima Zavin <dima@android.com>
12 years agoAdd tests for keymaster API
Kenny Root [Fri, 16 Mar 2012 20:19:07 +0000 (13:19 -0700)]
Add tests for keymaster API

This adds unit tests for implementors of the keymaster API. It can be
compiled and run as a stand-alone executable.

Change-Id: Id5bb8f4533b744c254b52e07df66a8d158dfda0d

12 years agoMerge "Update keymaster API to final signing spec"
Kenny Root [Tue, 13 Mar 2012 20:11:09 +0000 (13:11 -0700)]
Merge "Update keymaster API to final signing spec"

12 years agoUpdate keymaster API to final signing spec
Kenny Root [Tue, 13 Mar 2012 16:22:21 +0000 (09:22 -0700)]
Update keymaster API to final signing spec

Switch from unspecified encoding for import of keys to PKCS#8 (Java
standard encoding).

Add function for obtaining the public key from a keypair.

Add fields for RSA key generation that indicate modulus size and desired
public exponent.

Add in placeholder fields for possible digest and padding types for
signatures. Currently the only thing supported is "none" and "none"
respectively.

Change-Id: I19ee02cf35321aee859e2460a963c7213791414b

12 years agoam 6d2bc4fc: am 4cbd62c2: add i2c_device_address member to nfc_pn544_device_t
Rakesh Goyal [Fri, 9 Mar 2012 19:43:56 +0000 (11:43 -0800)]
am 6d2bc4fc: am 4cbd62c2: add i2c_device_address member to nfc_pn544_device_t

* commit '6d2bc4fc11ca04326eaf982f97d13d6410a73af2':
  add i2c_device_address member to nfc_pn544_device_t

12 years agoam 4cbd62c2: add i2c_device_address member to nfc_pn544_device_t
Rakesh Goyal [Fri, 9 Mar 2012 19:34:13 +0000 (11:34 -0800)]
am 4cbd62c2: add i2c_device_address member to nfc_pn544_device_t

* commit '4cbd62c2ca1600dcd2001d1c5a736abc043a0333':
  add i2c_device_address member to nfc_pn544_device_t

12 years agoadd i2c_device_address member to nfc_pn544_device_t
Rakesh Goyal [Fri, 27 Jan 2012 12:43:29 +0000 (18:13 +0530)]
add i2c_device_address member to nfc_pn544_device_t

Add I2C slave address. Multiple I2C addresses are possible
for PN544 module. Configure address according to board design.

Change-Id: I847e8f3db631f5039cf15143a9982f4b9b209f27

12 years agoaudio policy: use audio_devices_t when appropriate
Eric Laurent [Thu, 8 Mar 2012 21:44:18 +0000 (13:44 -0800)]
audio policy: use audio_devices_t when appropriate

Change-Id: Iee57cf5c3bdfefd981e1ed5958df10171f8716e6

12 years agoaudio HAL : added string for A2DP address
Eric Laurent [Thu, 8 Mar 2012 02:59:47 +0000 (18:59 -0800)]
audio HAL : added string for A2DP address

Added a definition for A2DP sink address parameter.
It was previously defined at several places.

Change-Id: I757208e99db395f3d88c17e0de5ae303c71a85ec

12 years agoUpdate comments to reflect audio channel mask type name change
Jean-Michel Trivi [Mon, 5 Mar 2012 19:44:30 +0000 (11:44 -0800)]
Update comments to reflect audio channel mask type name change

Replace references to "audio_channels_t" by "audio_channel_mask_t"

Change-Id: If779a4c24e40c0fcdab8376b479bd20040d686da

12 years agoMerge "HWComposer: update the hwc_layer::handle docs"
Mathias Agopian [Tue, 21 Feb 2012 06:51:15 +0000 (22:51 -0800)]
Merge "HWComposer: update the hwc_layer::handle docs"

12 years agoMerge "Power HAL: Add initial header file and default/legacy implementation"
Todd Poynor [Sat, 18 Feb 2012 04:23:21 +0000 (20:23 -0800)]
Merge "Power HAL: Add initial header file and default/legacy implementation"

12 years agoPower HAL: Add initial header file and default/legacy implementation
Todd Poynor [Tue, 10 Jan 2012 08:32:42 +0000 (00:32 -0800)]
Power HAL: Add initial header file and default/legacy implementation

Change-Id: I43a515a8ffe72a9c4e7d5f7470a5e73e76d5e1b1
Signed-off-by: Todd Poynor <toddpoynor@google.com>
12 years agoAdd hardware API for key handling
Kenny Root [Wed, 15 Feb 2012 18:54:24 +0000 (10:54 -0800)]
Add hardware API for key handling

Add a hardware API for key handling from "keystore"

Change-Id: I5fd192cc212dbb057ee2a7003d602382ee2cd2c0

12 years agoModifications to audio_hal for Android@Home.
Mike J. Chen [Mon, 15 Aug 2011 19:05:00 +0000 (12:05 -0700)]
Modifications to audio_hal for Android@Home.

This is a squashed merge of the following changes:

Commit f560da61a5e128ca9f82f7fe939afcf1f09188c7
Author: John Grossman <johngro@google.com>
Date:   Thu Aug 11 15:34:55 2011 -0700

    Fill out a missing entry in the audio HAL function table.

    The entry for get_initial_master_volume was missing from the non-legacy audio
    HAL and needs to be filled out.  Also fix up the order of the comments
    describing the get_initial_master_volume method.

    Change-Id: I87d5415ef92611497a6dab4c657fc00367c4d80b

commit cea82facb63fd237a4ea6fb770605fcb500850ff
Author: Jason Simmons <jsimmons@google.com>
Date:   Thu Jun 16 14:24:24 2011 -0700

    Define a replacement for getSampleDelta that returns a DMA start time and count of samples queued

    Change-Id: I2d13f57b5a8c5b97fb3aa0a90834ce91c56864ef

commit 60a9acd7eee470a8d870218e8be618bfa3be15a5
Author: Mike J. Chen <mjchen@google.com>
Date:   Tue Jun 7 09:13:23 2011 -0700

    Add Android@Home extensions to new Audio HAL interface.

    Change-Id: I3ea4676d4b7d2afd78a5a7a7003ad5c437276d05
Signed-off-by: Mike J. Chen <mjchen@google.com>
Change-Id: I09f3756d12a1ce4f9af39610ed857890742a72df
Signed-off-by: Mike J. Chen <mjchen@google.com>
Signed-off-by: John Grossman <johngro@google.com>
Conflicts:

include/hardware/audio.h
modules/audio/audio_hw.c

12 years agoAdd a HAL representing a system-wide local time counter.
Mike J. Chen [Mon, 15 Aug 2011 18:59:47 +0000 (11:59 -0700)]
Add a HAL representing a system-wide local time counter.

This is a squashed merge of the following changes:

commit 9def1ae65f6b4d6a8fdec147fdcd34f22f08174a
Author: John Grossman <johngro@google.com>
Date:   Fri Aug 12 11:47:20 2011 -0700

    Change the signature of set_local_slew.

    Changed the definition of the slew function in the local time HAL to take an
    int16 instead of an int32 and to use the full range of the int instead of
    attempting to imply any particular PPM range.

    Change-Id: Ia67f50e77f1fe674a63ec69460e830d1191ef5a0

commit afab51327453d1bfc7423f8ce7a28933d8fc49b2
Author: John Grossman <johngro@google.com>
Date:   Mon Jun 27 17:29:07 2011 -0700

    Remove "primary" from the local_time HAL.

    Interface instances are a pattern which should only be used by audio.  Remove
    its use from the local_time HAL.

    Change-Id: If4c458cf16a02d9dc63c04185111ae793fc57801

commit 1c26e59a66e75ccb31027f42183aaa32bde6e456
Author: John Grossman <johngro@google.com>
Date:   Fri Jun 17 14:19:24 2011 -0700

    Refactor the local/common clock services.

    This change is one of a set of 5 changes made to different repositories.  Look
    for this comment in all of them.

    Refactor the local/common clock services to match android best
    practice.  Notable changes include

    + The kernel no longer knows anything about common time.  Common time has been
      moved completely up into user land.  This has an impact on the accuracy of the
      timesync debugging code, and the netfilter assisted approach to network based
      timesync is going to have to be modified.
    + The timesync driver used by A@H is now just local time driver.
    + The kernel no longer needs access to the linear transform math code, and it
      has been removed.
    + A new HAL has been introduced to expose the concept of local time to the
      system.
    + A non-slewable stub implementation of the local time HAL based on
      CLOCK_MONOTONIC has been added.
    + The old library has been eliminated.  Its functionality has been
      distributed among the common time binder service, the local time hal and the
      linear transform utility code.
    + All clients of the old library have been changed to be clients of
      the binder service, the hal and the utility code.
    + The reset_tt utilities have been removed, they no longer have a purpose in the
      system.

    Change-Id: I39843b94f9b6d13f63b22145a2edcafe4ca87349

Change-Id: Ib264c992d564b99ef7c7847a788e4fa7f5e101b4
Signed-off-by: Mike J. Chen <mjchen@google.com>
Signed-off-by: John Grossman <johngro@google.com>
Conflicts:

modules/Android.mk

12 years agoMerge "Effect UUID inputs passed by pointer are const"
Glenn Kasten [Wed, 8 Feb 2012 17:37:48 +0000 (09:37 -0800)]
Merge "Effect UUID inputs passed by pointer are const"

12 years agoMerge "Use audio_in_acoustics_t consistently"
Glenn Kasten [Fri, 3 Feb 2012 16:31:11 +0000 (08:31 -0800)]
Merge "Use audio_in_acoustics_t consistently"

12 years agoEffect UUID inputs passed by pointer are const
Glenn Kasten [Mon, 30 Jan 2012 19:26:28 +0000 (11:26 -0800)]
Effect UUID inputs passed by pointer are const

Change-Id: I3ef6d83ae539aef32f2a251660b2e2f9646eace5

12 years agoUse audio_in_acoustics_t consistently
Glenn Kasten [Fri, 27 Jan 2012 20:51:17 +0000 (12:51 -0800)]
Use audio_in_acoustics_t consistently

Change-Id: Id49ad9631092db8c9ace0f45db918f708b0b32e9

12 years agoUse audio_source_t consistently
Glenn Kasten [Fri, 27 Jan 2012 00:47:25 +0000 (16:47 -0800)]
Use audio_source_t consistently

Change-Id: Ie25ddeb091646b7e24149b3b23a18ce0807e1891

12 years agoMerge "Use audio_format_t consistently"
Glenn Kasten [Fri, 20 Jan 2012 22:50:29 +0000 (14:50 -0800)]
Merge "Use audio_format_t consistently"

12 years agoAdd timestamp control to camera preview stream operations.
Eino-Ville Talvala [Tue, 26 Jul 2011 21:08:21 +0000 (14:08 -0700)]
Add timestamp control to camera preview stream operations.

At higher levels, SurfaceTextures include timestamp information in
their buffers. For accurate timestamps, they need to be set by the
driver code. This change adds the needed method into
preview_stream_ops.

Timestamp behavior is documented in SurfaceTexture.java, and
system/core/include/window.h, as well as here.

Bug-Id: 5081132
Change-Id: Id285f8e26edecf605444bc4b9e6eea9b224f9d31

12 years agoAudio policy HAL set_ringer_mode is deprecated
Glenn Kasten [Wed, 18 Jan 2012 23:15:07 +0000 (15:15 -0800)]
Audio policy HAL set_ringer_mode is deprecated

Change-Id: If0f82d5c1cb9a0faf70f5a8434f68cdc39784ee6

12 years agoMerge "audio policy: manage stream volume per device"
Eric Laurent [Wed, 18 Jan 2012 01:34:53 +0000 (17:34 -0800)]
Merge "audio policy: manage stream volume per device"

12 years agoMerge "audio effects: add auxiliary channel feature"
Eric Laurent [Tue, 17 Jan 2012 20:11:53 +0000 (12:11 -0800)]
Merge "audio effects: add auxiliary channel feature"

12 years agoMerge "set_mode and set_phone_state now take audio_mode_t"
Glenn Kasten [Tue, 17 Jan 2012 19:33:22 +0000 (11:33 -0800)]
Merge "set_mode and set_phone_state now take audio_mode_t"

12 years agoaudio policy: manage stream volume per device
Eric Laurent [Sat, 10 Dec 2011 01:10:40 +0000 (17:10 -0800)]
audio policy: manage stream volume per device

Improve volume management by keeping track of volume for each type
of device independently.

Added functions at the audio policy interface to set and get stream volume
for a particular device.

Change-Id: Ic8899e82e48193cb65b3673e9d20383efed943b5

12 years agoMerge "Use size_t for frame size"
Glenn Kasten [Tue, 17 Jan 2012 15:27:35 +0000 (07:27 -0800)]
Merge "Use size_t for frame size"

12 years agoMerge "Use audio_stream_type_t consistently"
Glenn Kasten [Tue, 17 Jan 2012 15:26:08 +0000 (07:26 -0800)]
Merge "Use audio_stream_type_t consistently"

12 years agoaudio effects: add auxiliary channel feature
Eric Laurent [Wed, 21 Dec 2011 01:40:51 +0000 (17:40 -0800)]
audio effects: add auxiliary channel feature

Added API to query and configure effects supporting auxiliary channels.
An auxiliary channel contains an additional audio signal helping in the
processing of the main channel. An example is a dual mic noise suppressor
were the main channel contains the signal from the main mic and the aux channel
containss the signal from the sub mic.

Change-Id: Ibb7a19d7f492720ebad0be45f78f996e0beba272

12 years agoUse size_t for frame size
Glenn Kasten [Fri, 13 Jan 2012 22:53:35 +0000 (14:53 -0800)]
Use size_t for frame size

Change-Id: Ib96808544ee6fd76d0c8ff42e27b9c05518e8415

12 years agoMerge "Fix typo in gralloc.h"
Glenn Kasten [Fri, 13 Jan 2012 21:48:24 +0000 (13:48 -0800)]
Merge "Fix typo in gralloc.h"

12 years agoUse audio_stream_type_t consistently
Glenn Kasten [Thu, 12 Jan 2012 22:56:21 +0000 (14:56 -0800)]
Use audio_stream_type_t consistently

Change-Id: I1e92f018a07e4b1b73ef8d4de461ef1e08bc48e7

12 years agoUse audio_format_t consistently
Glenn Kasten [Thu, 12 Jan 2012 22:55:57 +0000 (14:55 -0800)]
Use audio_format_t consistently

Was sometimes int or uint32_t

Change-Id: Ib3d82f5aefeda371c0439e43e72737a54882f519

12 years agoset_mode and set_phone_state now take audio_mode_t
Glenn Kasten [Mon, 9 Jan 2012 18:41:30 +0000 (10:41 -0800)]
set_mode and set_phone_state now take audio_mode_t

Change-Id: I12a3a5ad6c3cadc6b9de8281f78edfef53908e2d

12 years agoRename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE
Steve Block [Sun, 8 Jan 2012 10:17:53 +0000 (10:17 +0000)]
Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF)  DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/157220

Bug: 5449033
Change-Id: I0cbe865d464a37365fa3be84948b07e5a0d181d0

12 years agoMerge "Add comment about actual type of set_mode"
Glenn Kasten [Fri, 6 Jan 2012 21:38:05 +0000 (13:38 -0800)]
Merge "Add comment about actual type of set_mode"

12 years agoAdd comment about actual type of set_mode
Glenn Kasten [Tue, 20 Dec 2011 01:19:34 +0000 (17:19 -0800)]
Add comment about actual type of set_mode

Change-Id: Ie50a66894831763b6e9eb6aa490441d7759cbeef

12 years agoRename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGE
Steve Block [Thu, 5 Jan 2012 23:27:52 +0000 (23:27 +0000)]
Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF)  DO NOT MERGE

See https://android-git.corp.google.com/g/157065

Bug: 5449033
Change-Id: I135fadaf10e95af1eb918889a22980c194c650ca

12 years agoRename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGE
Steve Block [Wed, 4 Jan 2012 20:07:12 +0000 (20:07 +0000)]
Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF)  DO NOT MERGE

See https://android-git.corp.google.com/g/156801

Bug: 5449033
Change-Id: Ia8b6f74b27098b3dba27f177a76264eb23f849ee

12 years agoRename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE
Steve Block [Tue, 20 Dec 2011 16:25:12 +0000 (16:25 +0000)]
Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF)  DO NOT MERGE

See https://android-git.corp.google.com/g/156016

Bug: 5449033
Change-Id: I98e83cc9d22f0ea8fbf397ccccd9ce7773119551

12 years agoHWComposer: update the hwc_layer::handle docs
Jamie Gennis [Tue, 20 Dec 2011 22:33:52 +0000 (14:33 -0800)]
HWComposer: update the hwc_layer::handle docs

Change-Id: I3c1211146b2e5f84546724c86f344bd2e63bd55c

12 years agoaudio effects: rename configure command
Eric Laurent [Mon, 19 Dec 2011 18:13:28 +0000 (10:13 -0800)]
audio effects: rename configure command

Renamed audio effect library interface command for audio format
configuration from EFFECT_CMD_CONFIGURE to EFFECT_CMD_SET_CONFIG.
This makes the naming more consistent with other exixsting commands
and allow adding new a command to get the configuration (EFFECT_CMD_GET_CONFIG).
Same change for reverse channel configuration renamed from
EFFECT_CMD_CONFIGURE_REVERSE to EFFECT_CMD_SET_CONFIG_REVERSE.

Change-Id: I1cc462aa50e58ceec900b3da9bd3873d2d098098

12 years agoFix typo in gralloc.h
Glenn Kasten [Wed, 30 Nov 2011 16:31:17 +0000 (08:31 -0800)]
Fix typo in gralloc.h

Change-Id: I8d989b21e10e19ae4124188f02ef84eeabdb4654

12 years agoam f1d76bb7: am a9b677fc: Merge "improve h/w composer documentation" into ics-mr1
Mathias Agopian [Tue, 29 Nov 2011 00:11:26 +0000 (16:11 -0800)]
am f1d76bb7: am a9b677fc: Merge "improve h/w composer documentation" into ics-mr1

* commit 'f1d76bb7446961be2221fa8a597d60643b7803be':
  improve h/w composer documentation

12 years agoam a9b677fc: Merge "improve h/w composer documentation" into ics-mr1
Mathias Agopian [Tue, 29 Nov 2011 00:08:53 +0000 (16:08 -0800)]
am a9b677fc: Merge "improve h/w composer documentation" into ics-mr1

* commit 'a9b677fce432b29ab8f61e13796f34880dc0fe0f':
  improve h/w composer documentation

12 years agoam a9b677fc: Merge "improve h/w composer documentation" into ics-mr1
Mathias Agopian [Tue, 29 Nov 2011 00:08:48 +0000 (16:08 -0800)]
am a9b677fc: Merge "improve h/w composer documentation" into ics-mr1

* commit 'a9b677fce432b29ab8f61e13796f34880dc0fe0f':
  improve h/w composer documentation

12 years agoMerge "improve h/w composer documentation" into ics-mr1
Mathias Agopian [Tue, 29 Nov 2011 00:07:36 +0000 (16:07 -0800)]
Merge "improve h/w composer documentation" into ics-mr1

12 years agoam 66b00021: am 29ead941: Gralloc: add a usage bit for video encoding
Jamie Gennis [Tue, 22 Nov 2011 20:42:00 +0000 (12:42 -0800)]
am 66b00021: am 29ead941: Gralloc: add a usage bit for video encoding

* commit '66b00021151c7dbce38106960431226f6012d121':
  Gralloc: add a usage bit for video encoding

12 years agoam 29ead941: Gralloc: add a usage bit for video encoding
Jamie Gennis [Tue, 22 Nov 2011 20:16:34 +0000 (12:16 -0800)]
am 29ead941: Gralloc: add a usage bit for video encoding

* commit '29ead941b377cb87bcc7fe48208b96d84d649d43':
  Gralloc: add a usage bit for video encoding

12 years agoam 29ead941: Gralloc: add a usage bit for video encoding
Jamie Gennis [Tue, 22 Nov 2011 20:16:15 +0000 (12:16 -0800)]
am 29ead941: Gralloc: add a usage bit for video encoding

* commit '29ead941b377cb87bcc7fe48208b96d84d649d43':
  Gralloc: add a usage bit for video encoding

12 years agoGralloc: add a usage bit for video encoding
Jamie Gennis [Tue, 22 Nov 2011 00:50:49 +0000 (16:50 -0800)]
Gralloc: add a usage bit for video encoding

This change adds a new Gralloc usage bit to indicate that a buffer will
be passed to the HW video encoder.

Change-Id: I75c3fc514906e5b18fb60345a2d9c5a606403633

12 years agoimprove h/w composer documentation
Mathias Agopian [Tue, 22 Nov 2011 01:35:15 +0000 (17:35 -0800)]
improve h/w composer documentation

Change-Id: Ia3f47c1750f5a436037e4391d6744d63639ee099

12 years agoam 4ef5e2e5: Merge from AOSP
Jean-Baptiste Queru [Fri, 18 Nov 2011 10:37:25 +0000 (02:37 -0800)]
am 4ef5e2e5: Merge from AOSP

* commit '4ef5e2e5376043e433e01b61d219dd2444719893':
  improve sensor HAL documentation
  change sensor HAL documentation to allow setting polling rate for "non continuous" sensors

12 years agoMerge from AOSP
Jean-Baptiste Queru [Thu, 17 Nov 2011 23:59:53 +0000 (15:59 -0800)]
Merge from AOSP

Change-Id: I41161514ae072b40bf4c94a9392007de1e9db937

12 years agoam fb410365: improve hw composer documentation
Mathias Agopian [Thu, 17 Nov 2011 15:48:25 +0000 (07:48 -0800)]
am fb410365: improve hw composer documentation

* commit 'fb410365ca67d36d4c81d7826712c6a05437612f':
  improve hw composer documentation

12 years agoam fb410365: improve hw composer documentation
Mathias Agopian [Thu, 17 Nov 2011 02:15:35 +0000 (18:15 -0800)]
am fb410365: improve hw composer documentation

* commit 'fb410365ca67d36d4c81d7826712c6a05437612f':
  improve hw composer documentation

12 years agoimprove hw composer documentation
Mathias Agopian [Wed, 16 Nov 2011 05:27:52 +0000 (21:27 -0800)]
improve hw composer documentation

Change-Id: I39363e37417991b9853309154d6691240e706acf

12 years agoimprove sensor HAL documentation
Mathias Agopian [Tue, 8 Nov 2011 05:32:34 +0000 (21:32 -0800)]
improve sensor HAL documentation

Change-Id: If2c1613902de6ed0e6cae8fe4755948c0f623bda

12 years agochange sensor HAL documentation to allow setting polling rate for "non continuous...
Mathias Agopian [Wed, 2 Nov 2011 02:17:58 +0000 (19:17 -0700)]
change sensor HAL documentation to allow setting polling rate for "non continuous" sensors

the current API / Documentation would not allow to set the
rate of "non continuous" sensors.

Most sensors HAL implementation already support changing the rate
(technically they're not compliant with the doc), so it's easier
to change the doc (and also allows more control).

Change-Id: I4ad324ddc3b569ec61770b3cf927c06f8ff4af4e

12 years agoam e9eaf372: improve sensor HAL documentation
Mathias Agopian [Thu, 10 Nov 2011 01:11:15 +0000 (01:11 +0000)]
am e9eaf372: improve sensor HAL documentation

* commit 'e9eaf3721dd715901d669df6488b1ecd63b1e634':
  improve sensor HAL documentation

12 years agoam e9eaf372: improve sensor HAL documentation
Mathias Agopian [Wed, 9 Nov 2011 18:58:57 +0000 (18:58 +0000)]
am e9eaf372: improve sensor HAL documentation

* commit 'e9eaf3721dd715901d669df6488b1ecd63b1e634':
  improve sensor HAL documentation

12 years agoimprove sensor HAL documentation
Mathias Agopian [Tue, 8 Nov 2011 05:32:34 +0000 (21:32 -0800)]
improve sensor HAL documentation

Change-Id: If2c1613902de6ed0e6cae8fe4755948c0f623bda

12 years agoresolved conflicts for merge of 45065f97 to ics-aah
Martijn Coenen [Mon, 7 Nov 2011 16:47:30 +0000 (08:47 -0800)]
resolved conflicts for merge of 45065f97 to ics-aah

Change-Id: I1e76a495d1ff76a49bfa091f63ed5bfc1d4f49c9