Commit graph

419 commits

Author SHA1 Message Date
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
Steve Block
60d056bf29 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
2012-01-08 11:03:25 +00:00
Glenn Kasten
f678d47450 Merge "Add comment about actual type of set_mode" 2012-01-06 13:38:05 -08:00
Glenn Kasten
af320d7500 Add comment about actual type of set_mode
Change-Id: Ie50a66894831763b6e9eb6aa490441d7759cbeef
2012-01-05 15:34:27 -08:00
Steve Block
22d351317a 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
2012-01-05 23:27:52 +00:00
Steve Block
b224b78c14 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
2012-01-04 20:07:12 +00:00
Steve Block
cee8501c16 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
2012-01-03 22:31:17 +00: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
72ba865479 am f1d76bb7: am a9b677fc: Merge "improve h/w composer documentation" into ics-mr1
* commit 'f1d76bb7446961be2221fa8a597d60643b7803be':
  improve h/w composer documentation
2011-11-28 16:11:26 -08:00
Mathias Agopian
f1d76bb744 am a9b677fc: Merge "improve h/w composer documentation" into ics-mr1
* commit 'a9b677fce432b29ab8f61e13796f34880dc0fe0f':
  improve h/w composer documentation
2011-11-28 16:08:53 -08:00
Mathias Agopian
a9b677fce4 Merge "improve h/w composer documentation" into ics-mr1 2011-11-28 16:07:36 -08:00
Jamie Gennis
bfab47864a am 66b00021: am 29ead941: Gralloc: add a usage bit for video encoding
* commit '66b00021151c7dbce38106960431226f6012d121':
  Gralloc: add a usage bit for video encoding
2011-11-22 12:42:00 -08:00
Jamie Gennis
66b0002115 am 29ead941: Gralloc: add a usage bit for video encoding
* commit '29ead941b377cb87bcc7fe48208b96d84d649d43':
  Gralloc: add a usage bit for video encoding
2011-11-22 12:16:15 -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
Jean-Baptiste Queru
66ae214f90 am 4ef5e2e5: Merge from AOSP
* commit '4ef5e2e5376043e433e01b61d219dd2444719893':
  improve sensor HAL documentation
  change sensor HAL documentation to allow setting polling rate for "non continuous" sensors
2011-11-18 02:37:25 -08:00
Jean-Baptiste Queru
4ef5e2e537 Merge from AOSP
Change-Id: I41161514ae072b40bf4c94a9392007de1e9db937
2011-11-17 16:00:20 -08:00
Mathias Agopian
df0db69c7a am fb410365: improve hw composer documentation
* commit 'fb410365ca67d36d4c81d7826712c6a05437612f':
  improve hw composer documentation
2011-11-17 07:48:25 -08:00
Mathias Agopian
fb410365ca improve hw composer documentation
Change-Id: I39363e37417991b9853309154d6691240e706acf
2011-11-16 16:05:56 -08:00
Mathias Agopian
c72c5311c1 improve sensor HAL documentation
Change-Id: If2c1613902de6ed0e6cae8fe4755948c0f623bda
2011-11-16 13:16:32 -08:00
Mathias Agopian
552c9f7e64 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-16 13:16:28 -08:00
Mathias Agopian
f04ab0706b am e9eaf372: improve sensor HAL documentation
* commit 'e9eaf3721dd715901d669df6488b1ecd63b1e634':
  improve sensor HAL documentation
2011-11-10 01:11:15 +00:00
Mathias Agopian
e9eaf3721d improve sensor HAL documentation
Change-Id: If2c1613902de6ed0e6cae8fe4755948c0f623bda
2011-11-08 12:20:21 -08:00
Martijn Coenen
1892e4ebd1 am 45065f97: Merge "New NFC HAL." into ics-mr1
* commit '45065f97354b4411d99dd57b348f758c6dbb5479':
  New NFC HAL.
2011-11-07 16:22:45 +00:00
Martijn Coenen
45065f9735 Merge "New NFC HAL." into ics-mr1 2011-11-07 08:19:18 -08:00
Mathias Agopian
77b9ddbdb9 am 15879d89: change sensor HAL documentation to allow setting polling rate for "non continuous" sensors
* commit '15879d89af055f6cd651a94125a3802b526c3d66':
  change sensor HAL documentation to allow setting polling rate for "non continuous" sensors
2011-11-05 19:33:17 +00: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
Steve Block
7567eba2af Rename LOGV(_IF) to ALOGV(_IF) DO NOT MERGE
See https://android-git.corp.google.com/g/#/c/143865

Bug: 5449033
Change-Id: I8772e564a55981aad2a9cf7cb9245367fcf57fe8
2011-10-25 18:16:10 +01: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
Mathias Agopian
cc3f6a345b improve sensor HAL test
Change-Id: Id5e22ae2b9cb3bf71ec235a2ec6bb4319d0389da
2011-09-18 15:21:33 -07: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