Commit graph

232 commits

Author SHA1 Message Date
Eric Laurent
a70c5d0caf 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
2012-03-07 18:59:47 -08:00
Jean-Michel Trivi
a9a5f5d57f Update comments to reflect audio channel mask type name change
Replace references to "audio_channels_t" by "audio_channel_mask_t"

Change-Id: If779a4c24e40c0fcdab8376b479bd20040d686da
2012-03-05 11:44:30 -08:00
Mathias Agopian
d543b8ae4a Merge "HWComposer: update the hwc_layer::handle docs" 2012-02-20 22:51:15 -08:00
Todd Poynor
c5d3811864 Merge "Power HAL: Add initial header file and default/legacy implementation" 2012-02-17 20:23:21 -08:00
Todd Poynor
c82792c0a4 Power HAL: Add initial header file and default/legacy implementation
Change-Id: I43a515a8ffe72a9c4e7d5f7470a5e73e76d5e1b1
Signed-off-by: Todd Poynor <toddpoynor@google.com>
2012-02-17 16:26:32 -08:00
Kenny Root
60d0e5f24b Add hardware API for key handling
Add a hardware API for key handling from "keystore"

Change-Id: I5fd192cc212dbb057ee2a7003d602382ee2cd2c0
2012-02-16 15:22:27 -08:00
Mike J. Chen
5ad38a901d 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
2012-02-10 08:58:32 -08:00
Mike J. Chen
ad255ee424 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
2012-02-10 08:57:16 -08:00
Glenn Kasten
bfb28ccfc6 Merge "Effect UUID inputs passed by pointer are const" 2012-02-08 09:37:49 -08:00
Glenn Kasten
2be4db4a95 Merge "Use audio_in_acoustics_t consistently" 2012-02-03 08:31:11 -08:00
Glenn Kasten
75a8b8f949 Effect UUID inputs passed by pointer are const
Change-Id: I3ef6d83ae539aef32f2a251660b2e2f9646eace5
2012-01-30 11:26:28 -08:00
Glenn Kasten
114c2fd2d3 Use audio_in_acoustics_t consistently
Change-Id: Id49ad9631092db8c9ace0f45db918f708b0b32e9
2012-01-27 12:51:17 -08:00
Glenn Kasten
ae2e42b244 Use audio_source_t consistently
Change-Id: Ie25ddeb091646b7e24149b3b23a18ce0807e1891
2012-01-26 16:47:25 -08:00
Glenn Kasten
ea84c55f2c Merge "Use audio_format_t consistently" 2012-01-20 14:50:29 -08:00
Eino-Ville Talvala
7c50e9bad4 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
2012-01-20 13:40:21 -08:00
Glenn Kasten
080a80212b Audio policy HAL set_ringer_mode is deprecated
Change-Id: If0f82d5c1cb9a0faf70f5a8434f68cdc39784ee6
2012-01-18 15:15:07 -08:00
Eric Laurent
d4cf73b362 Merge "audio policy: manage stream volume per device" 2012-01-17 17:34:53 -08:00
Eric Laurent
5b20536691 Merge "audio effects: add auxiliary channel feature" 2012-01-17 12:11:53 -08:00
Glenn Kasten
fad1f606a2 Merge "set_mode and set_phone_state now take audio_mode_t" 2012-01-17 11:33:22 -08:00
Eric Laurent
ca20b17b41 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
2012-01-17 09:10:45 -08:00
Glenn Kasten
c38e7baa4f Merge "Use size_t for frame size" 2012-01-17 07:27:35 -08:00
Glenn Kasten
80eed7f096 Merge "Use audio_stream_type_t consistently" 2012-01-17 07:26:08 -08:00
Eric Laurent
66861e3740 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
2012-01-13 15:18:47 -08:00
Glenn Kasten
a26cbac8a0 Use size_t for frame size
Change-Id: Ib96808544ee6fd76d0c8ff42e27b9c05518e8415
2012-01-13 14:53:35 -08:00
Glenn Kasten
9fc1eaed52 Merge "Fix typo in gralloc.h" 2012-01-13 13:48:24 -08:00
Glenn Kasten
5161a847dd Use audio_stream_type_t consistently
Change-Id: I1e92f018a07e4b1b73ef8d4de461ef1e08bc48e7
2012-01-12 16:55:03 -08:00
Glenn Kasten
fe79eb3f06 Use audio_format_t consistently
Was sometimes int or uint32_t

Change-Id: Ib3d82f5aefeda371c0439e43e72737a54882f519
2012-01-12 14:55:57 -08:00
Glenn Kasten
6df641e269 set_mode and set_phone_state now take audio_mode_t
Change-Id: I12a3a5ad6c3cadc6b9de8281f78edfef53908e2d
2012-01-12 10:06:24 -08:00
Glenn Kasten
af320d7500 Add comment about actual type of set_mode
Change-Id: Ie50a66894831763b6e9eb6aa490441d7759cbeef
2012-01-05 15:34:27 -08:00
Jamie Gennis
9c5466b616 HWComposer: update the hwc_layer::handle docs
Change-Id: I3c1211146b2e5f84546724c86f344bd2e63bd55c
2011-12-20 14:33:52 -08:00
Eric Laurent
922f9e6e5f 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
2011-12-19 16:23:10 -08:00
Glenn Kasten
bb56a1007d Fix typo in gralloc.h
Change-Id: I8d989b21e10e19ae4124188f02ef84eeabdb4654
2011-12-19 09:14:19 -08:00
Mathias Agopian
a9b677fce4 Merge "improve h/w composer documentation" into ics-mr1 2011-11-28 16:07:36 -08:00
Jamie Gennis
29ead941b3 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
2011-11-21 17:45:29 -08:00
Mathias Agopian
71212e3fca improve h/w composer documentation
Change-Id: Ia3f47c1750f5a436037e4391d6744d63639ee099
2011-11-21 17:35:15 -08:00
Mathias Agopian
fb410365ca improve hw composer documentation
Change-Id: I39363e37417991b9853309154d6691240e706acf
2011-11-16 16:05:56 -08:00
Mathias Agopian
e9eaf3721d improve sensor HAL documentation
Change-Id: If2c1613902de6ed0e6cae8fe4755948c0f623bda
2011-11-08 12:20:21 -08:00
Martijn Coenen
45065f9735 Merge "New NFC HAL." into ics-mr1 2011-11-07 08:19:18 -08:00
Martijn Coenen
44ae5b2476 New NFC HAL.
First implementation of a NFC HAL. This implementation doesn't
offer a generic NFC device HAL (yet), but offers typed interfaces
for different NFC controllers. Currently only the PN544 is supported.

Change-Id: I3ac04dcd767fb12a433edbe88ec7068eb1930a57
2011-11-04 09:05:22 -07:00
Mathias Agopian
15879d89af 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
2011-11-01 19:17:58 -07:00
David 'Digit' Turner
cf20952388 am 7bd7dd5d: am 3c935eda: resolved conflicts for merge of 33fddf0c to gingerbread-plus-aosp
* commit '7bd7dd5d49e21c66c83618cb9f85ef43af29e441':
  emulator: Add <hardware/qemu_pipe.h> header
2011-09-27 12:36:16 -07:00
David 'Digit' Turner
7bd7dd5d49 am 3c935eda: resolved conflicts for merge of 33fddf0c to gingerbread-plus-aosp
* commit '3c935eda2dcd96eda70da6367d705b3b081f6524':
  emulator: Add <hardware/qemu_pipe.h> header
2011-09-23 11:17:34 -07:00
David 'Digit' Turner
3c935eda2d resolved conflicts for merge of 33fddf0c to gingerbread-plus-aosp
Change-Id: I8720ca884f326b661e30b51c4cf1cfe31c1ac579
2011-09-23 20:13:07 +02:00
David 'Digit' Turner
33fddf0ca9 emulator: Add <hardware/qemu_pipe.h> header
This header is required by our GLES emulation guest code to be able
to access the emulator services provided through the /dev/qemu_pipe
special device.

Change-Id: Ia9782256048d7340237f3e1d18d7452dd815e561
2011-09-16 17:11:49 +02:00
Eric Laurent
78d2c69af4 audio policy: register effect CPU on enable
Added a method on audio policy interface to register
audio effect CPU usage on enable and unregister on disable
instead of when the effect is created or destroyed.

Change-Id: Iee20bf70fee7302f817ec4c7d9bf7640caca2e95
2011-08-11 08:48:25 -07:00
Jamie Gennis
2f94535daa Merge "Gralloc: add a HWComposer usage bit" 2011-08-10 12:54:46 -07:00
David Turner
54c673d30a am 73bff7f3: am bce402a8: Merge "qemu_pipe: fix Mac build error."
* commit '73bff7f3fddf182bc51a0e20096b76d9e0d877ad':
  qemu_pipe: fix Mac build error.
2011-08-10 12:21:16 -07:00
Vladimir Chtchetkine
3e7bfaede6 am abe47190: am 079ff13b: Merge "Enable connection to QEMUD via pipe."
* commit 'abe471909d749c7430409c00bdbc39bbf8ff0c43':
  Enable connection to QEMUD via pipe.
2011-08-10 12:21:03 -07:00
Jamie Gennis
4b560d5563 Gralloc: add a HWComposer usage bit
This change adds a new Gralloc usage bit to indicate that the Gralloc
buffer being allocated will be passed to the HWComposer HAL module.

Change-Id: If901f886cb22fc8379811898db3a380a61c0e442
2011-08-10 11:41:52 -07:00
David Turner
73bff7f3fd am bce402a8: Merge "qemu_pipe: fix Mac build error."
* commit 'bce402a8fadf27b07b164b0468e27bb9b6de79e6':
  qemu_pipe: fix Mac build error.
2011-08-09 10:05:32 -07:00