OSDN Git Service

android-x86/frameworks-av.git
9 years agoMerge "[audio][policy] fix crash when offloadInfo is NULL" into lmp-dev
Phil Burk [Mon, 4 Aug 2014 23:30:51 +0000 (23:30 +0000)]
Merge "[audio][policy] fix crash when offloadInfo is NULL" into lmp-dev

9 years ago[audio][policy] fix crash when offloadInfo is NULL
Phil Burk [Mon, 4 Aug 2014 23:18:15 +0000 (16:18 -0700)]
[audio][policy] fix crash when offloadInfo is NULL

Added check for NULL pointer to avoid crash
in AudioPolicyManager when playing AC3 data.

Change-Id: Ie56788f6277be6da47d4218b1b4a6b359fce6473
Signed-off-by: Phil Burk <philburk@google.com>
9 years agoFix build break in mock drm plugin build
Jeff Tinker [Mon, 4 Aug 2014 22:02:19 +0000 (15:02 -0700)]
Fix build break in mock drm plugin build

Change-Id: I8ae5d378df694360be3d76e06512e2ebc9fc0572

10 years agoMerge "Allow device to be unprovisioned" into lmp-dev
Jeff Tinker [Mon, 4 Aug 2014 20:48:20 +0000 (20:48 +0000)]
Merge "Allow device to be unprovisioned" into lmp-dev

9 years agoaudio flinger: fix service fuzz test crash
Eric Laurent [Sat, 2 Aug 2014 02:00:33 +0000 (19:00 -0700)]
audio flinger: fix service fuzz test crash

Bug: 13744704.
Change-Id: I572c89f88dcab2b8b612ec6860983306f9f159ab

10 years agoAllow device to be unprovisioned
Jeff Tinker [Wed, 30 Apr 2014 17:19:03 +0000 (10:19 -0700)]
Allow device to be unprovisioned

bug: 12247651
Change-Id: I564ac8de3da2430342a028f4058e2c5ac2d85d5e

10 years agoMerge "MediaCodecSource: stop puller from caller's thread instead of looper" into...
Chong Zhang [Mon, 4 Aug 2014 21:19:12 +0000 (21:19 +0000)]
Merge "MediaCodecSource: stop puller from caller's thread instead of looper" into lmp-dev

9 years agoMediaCodecSource: stop puller from caller's thread instead of looper
Chong Zhang [Fri, 1 Aug 2014 17:30:26 +0000 (10:30 -0700)]
MediaCodecSource: stop puller from caller's thread instead of looper

Currently CameraSource/AudioSource's stop() and read() are both called
from the puller's looper. This works if source operates normally (i.e.
read() returns regularly before source is stopped), as the stop() will
eventually be handled by the looper. However, if for some reason the
source hang, it will get stuck in read(), and the stop() will never
be processed, which could lead to ANR (in addition to the source hang).

We need to move the source's stop out of the puller's looper. It also
can't be on MediaCodecSource's looper, because the source's stop
synchrounously waits for all outstanding buffers to return, these
are only returned when MediaCodecSource's looper processes the buffer.

This change moves the stop to MediaCodecSource::stop, after encoder
is shutdown.

Bug: 16522726
Change-Id: Ie91f563c5d8a98ab091bf1945af4e51f662b9403

10 years agoMerge "audio policy: fix service fuzz test crash" into lmp-dev
Eric Laurent [Sun, 3 Aug 2014 19:45:07 +0000 (19:45 +0000)]
Merge "audio policy: fix service fuzz test crash" into lmp-dev

10 years agoaudio policy: fix service fuzz test crash
Eric Laurent [Sat, 2 Aug 2014 00:00:54 +0000 (17:00 -0700)]
audio policy: fix service fuzz test crash

Bug: 13744391.
Change-Id: I2430e09ad00476b9ac28dc55466942c61fb0531d

10 years agoMerge "Revert "Revert "sound trigger: added permission checks""" into lmp-dev
Eric Laurent [Sat, 2 Aug 2014 00:19:49 +0000 (00:19 +0000)]
Merge "Revert "Revert "sound trigger: added permission checks""" into lmp-dev

10 years agoRevert "Revert "sound trigger: added permission checks""
Eric Laurent [Fri, 1 Aug 2014 23:15:05 +0000 (23:15 +0000)]
Revert "Revert "sound trigger: added permission checks""

This reverts commit 936c84a5b743dce2a2572fdf54b37b187bc88b60.

Bug: 16374803.
Change-Id: I9d3137faeddf119b13f9cdb73c14ca49e1ee3d1c

10 years agoMerge "Remove 64-bit android_atomic uses from StateQueue." into lmp-dev
Hans Boehm [Thu, 31 Jul 2014 22:49:07 +0000 (22:49 +0000)]
Merge "Remove 64-bit android_atomic uses from StateQueue." into lmp-dev

10 years agoRemove 64-bit android_atomic uses from StateQueue.
Hans Boehm [Wed, 16 Jul 2014 19:13:16 +0000 (12:13 -0700)]
Remove 64-bit android_atomic uses from StateQueue.

Use stdatomic.h instead.  We're trying to remove android_atomic use
wherever possible.  The 64-bit uses seem easiest to remove first.
This cleans up the code, though not as much as C++ <atomic> would,
if it worked everywhere.

(cherry picked from commit f39b560952d3706a7ff47ef0d82c1a836daeea42)
Change-Id: I3c29bdbd5915cb9d47118834a3a742fe296cf87f

10 years agoMerge "GenericSource: timed text support" into lmp-dev
Lajos Molnar [Thu, 31 Jul 2014 21:43:22 +0000 (21:43 +0000)]
Merge "GenericSource: timed text support" into lmp-dev

10 years agoGenericSource: timed text support
Lajos Molnar [Thu, 31 Jul 2014 17:31:26 +0000 (10:31 -0700)]
GenericSource: timed text support

Bug: 16385674
Change-Id: Ib322cc13488dcadf2409921272cd469304b0af37

10 years agoGenericSource: support track (de)selection
Robert Shih [Wed, 16 Jul 2014 22:47:09 +0000 (15:47 -0700)]
GenericSource: support track (de)selection

Bug: 15153976

Change-Id: Idfce856b4ca5fa7853da857757490798bc3ffe1e

10 years agomediaplayerservice: initialize mIsWidevine
Lajos Molnar [Thu, 31 Jul 2014 14:13:32 +0000 (07:13 -0700)]
mediaplayerservice: initialize mIsWidevine

Bug: 16641557
Change-Id: I77aad6e710117a16093726bf3b36360904fbe148

10 years agoMerge "stagefright: propagate error in MPEG4Extractor::readMetaData" into lmp-dev
Lajos Molnar [Thu, 31 Jul 2014 19:46:13 +0000 (19:46 +0000)]
Merge "stagefright: propagate error in MPEG4Extractor::readMetaData" into lmp-dev

10 years agomediaplayer: add looping support to NuPlayer
Lajos Molnar [Thu, 31 Jul 2014 19:07:58 +0000 (12:07 -0700)]
mediaplayer: add looping support to NuPlayer

Bug: 16641557
Change-Id: I433158e6e585b4714cfd6d89562ecd0587a07ae2

10 years agostagefright: propagate error in MPEG4Extractor::readMetaData
Lajos Molnar [Thu, 31 Jul 2014 19:09:37 +0000 (12:09 -0700)]
stagefright: propagate error in MPEG4Extractor::readMetaData

Bug: 16641557
Change-Id: I252825bd767a4581b9fca560f2cabfb37c18e137

10 years agoNuPlayer: fix av discontinuity race
Robert Shih [Thu, 31 Jul 2014 00:41:24 +0000 (17:41 -0700)]
NuPlayer: fix av discontinuity race

Assumption:
  NuPlayer must see both (a/v) discontinuities before resuming.

Example issue:
  Suppose we're changing the video track, so the video source queues a
  DISCONTINUITY_FORMATCHANGE, and the audio source queues a DISCONTINUITY_NONE.
  Consider this sequence of events without this change:
    1. audio discontinuity seen by player
    2. mFlushingAudio = FLUSHED
    3. video discontinuity seen by player
    4. mFlushingAudio != NONE so no performScanSources is queued
    5. video decoding shuts down without being restarted

Bug: 15153976
Change-Id: I659550d9c0f883828103142abead857f576f25b1

10 years agoMerge "stagefright: MediaCodec async operations." into lmp-dev
Lajos Molnar [Thu, 31 Jul 2014 06:14:41 +0000 (06:14 +0000)]
Merge "stagefright: MediaCodec async operations." into lmp-dev

10 years agostagefright: enable decoder color format selection
Lajos Molnar [Mon, 28 Jul 2014 04:21:32 +0000 (21:21 -0700)]
stagefright: enable decoder color format selection

Bug: 10706245
Change-Id: I9a77631bfae0358be229b079228c1fcae0e77faf

10 years agostagefright: MediaCodec async operations.
Lajos Molnar [Thu, 31 Jul 2014 01:54:08 +0000 (18:54 -0700)]
stagefright: MediaCodec async operations.

In async mode:
 - codec must be restarted after flush
 - dequeueIn/OutputBuffers fail
 - getIn/OutputBuffers fail

Bug: 11990118
Change-Id: If2d6a76ab499ee9ed4a11486fb537acbc52e66f6

10 years agoMerge "handle rotation in NuPlayer" into lmp-dev
Chong Zhang [Thu, 31 Jul 2014 01:27:58 +0000 (01:27 +0000)]
Merge "handle rotation in NuPlayer" into lmp-dev

10 years agohandle rotation in NuPlayer
Chong Zhang [Thu, 31 Jul 2014 00:25:06 +0000 (17:25 -0700)]
handle rotation in NuPlayer

Bug: 16653284
Change-Id: I54165041da5a13498d627eee1b3ec59ef3c923b0

10 years agoMerge "Add Quad channel output to AudioPolicyManager" into lmp-dev
Andy Hung [Wed, 30 Jul 2014 18:08:00 +0000 (18:08 +0000)]
Merge "Add Quad channel output to AudioPolicyManager" into lmp-dev

10 years agoaudio policy: add missing enums in config file parsing
Eric Laurent [Tue, 29 Jul 2014 17:26:26 +0000 (10:26 -0700)]
audio policy: add missing enums in config file parsing

Change-Id: I4edd6cde11de62c9c19dfa623d08cddf42c953db

10 years agoAdd Quad channel output to AudioPolicyManager
Andy Hung [Wed, 30 Jul 2014 00:56:46 +0000 (17:56 -0700)]
Add Quad channel output to AudioPolicyManager

Matches some USB device configurations.

Change-Id: I2429f9de87816b4ad1d39516e3821562617c76ee

10 years agoMerge "Add isSafeArraySize for new array size checks" into lmp-dev
Andy Hung [Wed, 30 Jul 2014 00:59:56 +0000 (00:59 +0000)]
Merge "Add isSafeArraySize for new array size checks" into lmp-dev

10 years agoAdd isSafeArraySize for new array size checks
Andy Hung [Tue, 29 Jul 2014 19:14:00 +0000 (12:14 -0700)]
Add isSafeArraySize for new array size checks

Bug: 15328708
Change-Id: I9dfca30745c3e4dda91c3894363462f8631c41a1

10 years agoMerge "Enable multichannel in AudioFlinger" into lmp-dev
Andy Hung [Tue, 29 Jul 2014 23:53:25 +0000 (23:53 +0000)]
Merge "Enable multichannel in AudioFlinger" into lmp-dev

10 years agoMerge "Update multichannel audio policy handling" into lmp-dev
Andy Hung [Tue, 29 Jul 2014 23:52:28 +0000 (23:52 +0000)]
Merge "Update multichannel audio policy handling" into lmp-dev

10 years agoFix build warnings
Glenn Kasten [Mon, 28 Jul 2014 23:34:45 +0000 (16:34 -0700)]
Fix build warnings

Change-Id: Ife5e40264f43fb3ccb40830228701003fe106bf5

10 years agoEnable multichannel in AudioFlinger
Andy Hung [Mon, 28 Jul 2014 23:28:06 +0000 (16:28 -0700)]
Enable multichannel in AudioFlinger

Change-Id: Ibdbdc6ea0b87cdcd15432257a3455b11b3ce14b7

10 years agoUpdate multichannel audio policy handling
Andy Hung [Mon, 28 Jul 2014 23:16:31 +0000 (16:16 -0700)]
Update multichannel audio policy handling

Ensure AUDIO_FORMAT_PCM_FLOAT and AUDIO_FORMAT_PCM_32_BIT
have proper precedence.
Allow more mixer channels than 2.

Change-Id: I02af97dad6218b25cbada4d93077a213314c6725

10 years agoMerge "ATSParser: treat stream type 0x83 as TrueHD AC3" into lmp-dev
Chong Zhang [Thu, 31 Jul 2014 00:01:12 +0000 (00:01 +0000)]
Merge "ATSParser: treat stream type 0x83 as TrueHD AC3" into lmp-dev

10 years agoATSParser: treat stream type 0x83 as TrueHD AC3
Chong Zhang [Wed, 30 Jul 2014 22:40:31 +0000 (15:40 -0700)]
ATSParser: treat stream type 0x83 as TrueHD AC3

Bug: 16668055
Change-Id: I11fd3f795bbb50113e1a1e28e682edd76f11e146

10 years agoRevert GenericSource track selection changes
Wei Jia [Wed, 30 Jul 2014 20:40:49 +0000 (13:40 -0700)]
Revert GenericSource track selection changes

This reverts commit bace25b0fbcd5101d2db288b0c70c4a239f0e815.
This reverts commit eb1735e343a93830df259ae8882160bb0d79dcb5.
This reverts commit 05312bc7478feec11d9ae88e951c0857a7a3f28d.

Bug: 16660839

10 years agoMerge "Camera2: Fix transforms for front-facing cameras" into lmp-dev
Eino-Ville Talvala [Tue, 29 Jul 2014 19:01:19 +0000 (19:01 +0000)]
Merge "Camera2: Fix transforms for front-facing cameras" into lmp-dev

10 years agoCamera2: Fix transforms for front-facing cameras
Eino-Ville Talvala [Tue, 29 Jul 2014 18:16:17 +0000 (11:16 -0700)]
Camera2: Fix transforms for front-facing cameras

Mirror, mirror on the wall, who is the best rotated of them all?

Also, use consistent enum names.

Bug: 16637957
Change-Id: Ie211d3b57b9e7d01122192ad03b73ceba5bf1bd3

10 years agoCameraService: Replace deprecated native_window methods
Eino-Ville Talvala [Fri, 25 Jul 2014 01:10:23 +0000 (18:10 -0700)]
CameraService: Replace deprecated native_window methods

Change-Id: I3be5a720ac8b488d1e507c606a9146480faeef63

10 years agoCameraService: Clean up availability listeners and HAL error codes
Eino-Ville Talvala [Thu, 24 Jul 2014 00:17:59 +0000 (17:17 -0700)]
CameraService: Clean up availability listeners and HAL error codes

- Refactor where availability listeners are called to centralize behavior,
  ensuring that all client creation/destruction invokes the listeners
- Clean up some of the client hierarchy
- Filter error codes from key HAL calls to ensure proper reporting

Bug: 16514157
Bug: 16483222
Change-Id: I59875a865b6a508b47423946c78862da8df34cd1

10 years agoMerge "SampleTable: check integer overflow during table alloc" into lmp-dev
Robert Shih [Tue, 29 Jul 2014 17:00:27 +0000 (17:00 +0000)]
Merge "SampleTable: check integer overflow during table alloc" into lmp-dev

10 years agoMerge "GenericSource: start/stop tracks correctly on selection" into lmp-dev
Robert Shih [Tue, 29 Jul 2014 16:58:01 +0000 (16:58 +0000)]
Merge "GenericSource: start/stop tracks correctly on selection" into lmp-dev

10 years agoaudio policy: pass session ID to capture activity methods
Eric Laurent [Tue, 29 Jul 2014 00:26:49 +0000 (17:26 -0700)]
audio policy: pass session ID to capture activity methods

Indicate the audio session ID when calling getInput(),
startInput(), stopInput(), releaseInput().

Bug: 12378680.
Change-Id: I763793752f93e2f4e1445a5ab217c895af011038

10 years agoSampleTable: check integer overflow during table alloc
Robert Shih [Mon, 28 Jul 2014 16:54:57 +0000 (09:54 -0700)]
SampleTable: check integer overflow during table alloc

Bug: 15328708
Bug: 15342615
Bug: 15342751
Change-Id: I6bb110a1eba46506799c73be8ff9a4f71c7e7053

10 years agoGenericSource: start/stop tracks correctly on selection
Robert Shih [Fri, 25 Jul 2014 21:14:34 +0000 (14:14 -0700)]
GenericSource: start/stop tracks correctly on selection

Change-Id: I10343151f930a4ab778a6d2574ab5165af2013ba

10 years agoMerge "Fix rounding in RecordThread resampler buffer computation" into lmp-dev
Glenn Kasten [Mon, 28 Jul 2014 23:55:02 +0000 (23:55 +0000)]
Merge "Fix rounding in RecordThread resampler buffer computation" into lmp-dev

10 years agoFix rounding in RecordThread resampler buffer computation
Andy Hung [Mon, 28 Jul 2014 21:38:41 +0000 (14:38 -0700)]
Fix rounding in RecordThread resampler buffer computation

Bug: 16525305
Change-Id: Ie010822b0fa9dec74adde1d1b091ee44c183fc94

10 years agorename AudioSystem::newAudioSessionId()
Eric Laurent [Mon, 28 Jul 2014 01:38:22 +0000 (18:38 -0700)]
rename AudioSystem::newAudioSessionId()

Rename AudioSystem::newAudioSessionId() to
AudioSystem::newAudioUniqueId() as it can be used
also for I/O handles.

Bug: 12378680.
Change-Id: I611ea3b5eb57a4b0774437f477ee87dc4ccc2cc2

10 years agoMerge "GenericSource: timed text support" into lmp-dev
Robert Shih [Mon, 28 Jul 2014 20:01:04 +0000 (20:01 +0000)]
Merge "GenericSource: timed text support" into lmp-dev

10 years agomediaplayer: make nuplayer the default player
Lajos Molnar [Mon, 28 Jul 2014 04:22:11 +0000 (21:22 -0700)]
mediaplayer: make nuplayer the default player

Bug: 11784824
Change-Id: I60d215d0348adcd589da5bd479d5921dcf076ee4

10 years agoGenericSource: timed text support
Robert Shih [Wed, 23 Jul 2014 22:53:14 +0000 (15:53 -0700)]
GenericSource: timed text support

Bug: 16385674
Change-Id: I954cc463b55af4b93c6a6e714115db4fda729dc8

10 years agoMerge "NuPlayer: timed text support" into lmp-dev
Robert Shih [Sat, 26 Jul 2014 01:04:22 +0000 (01:04 +0000)]
Merge "NuPlayer: timed text support" into lmp-dev

10 years agoNuPlayer: timed text support
Robert Shih [Wed, 23 Jul 2014 22:00:25 +0000 (15:00 -0700)]
NuPlayer: timed text support

Bug: 16385674
Change-Id: Ifa9fbc17a1276aa774d57b82cdce500876a0b543

10 years agoMerge "AudioFlinger: update openInput() and openOutput()" into lmp-dev
Eric Laurent [Mon, 28 Jul 2014 20:56:49 +0000 (20:56 +0000)]
Merge "AudioFlinger: update openInput() and openOutput()" into lmp-dev

10 years agoAudioFlinger: update openInput() and openOutput()
Eric Laurent [Fri, 25 Jul 2014 23:20:43 +0000 (16:20 -0700)]
AudioFlinger: update openInput() and openOutput()

Add parameters to openInput() and openOutput(): device address,
input source.
Allow caller to specify a given I/O handle
Group parameters in a struct audio_config.

Bug: 12378680.
Change-Id: I7e9af74c0d996561cc13cbee7d9012d2daf33025

10 years agoMerge "Enable lower latency audio capture on more devices" into lmp-dev
Glenn Kasten [Sun, 27 Jul 2014 22:39:40 +0000 (22:39 +0000)]
Merge "Enable lower latency audio capture on more devices" into lmp-dev

10 years agoEnable lower latency audio capture on more devices
Glenn Kasten [Sun, 27 Jul 2014 22:02:23 +0000 (15:02 -0700)]
Enable lower latency audio capture on more devices

Bug: 16601366
Change-Id: I573b98631f81b7768f7cc00aa09e560008dea587

10 years agoAudioPolicyManager: handle outputs for different addresses
Jean-Michel Trivi [Tue, 22 Jul 2014 23:19:14 +0000 (16:19 -0700)]
AudioPolicyManager: handle outputs for different addresses

Add the notion of device types that cause the device address
  to be taken into account, i.e. multiple devices of the
  same type but with a different address can be connected/
  disconnected.
AUDIO_DEVICE_OUT_REMOTE_SUBMIX is such a device type.
When making those devices available / unavailable, look for
  all outputs with a matching address.

Bug 16009464

Change-Id: I260f8248b7794c4932094e876afdf29fdea007a3

10 years agostagefright: add flexible YUV support
Lajos Molnar [Fri, 25 Jul 2014 14:53:14 +0000 (07:53 -0700)]
stagefright: add flexible YUV support

Bug: 10706245
Change-Id: Icd246f22edfc67ed5240d59f5a5bde3e5f749465

10 years agostagefright: add ABuffer.CreateAsCopy
Lajos Molnar [Fri, 25 Jul 2014 14:53:14 +0000 (07:53 -0700)]
stagefright: add ABuffer.CreateAsCopy

Bug: 10706245
Change-Id: I8c4e96a2581a039e9e8237c3e09e2c22226da055

10 years agoMerge "DNG: Clean up logging." into lmp-dev
Ruben Brunk [Sat, 26 Jul 2014 01:18:08 +0000 (01:18 +0000)]
Merge "DNG: Clean up logging." into lmp-dev

10 years agoDNG: Clean up logging.
Ruben Brunk [Sat, 26 Jul 2014 01:05:46 +0000 (18:05 -0700)]
DNG: Clean up logging.

Change-Id: Ie34d5a22c89a726215d740fef359d53e5a1a360b

10 years agoMerge "CamcorderProfiles: add high speed profile constants" into lmp-dev
Zhijun He [Sat, 26 Jul 2014 00:57:14 +0000 (00:57 +0000)]
Merge "CamcorderProfiles: add high speed profile constants" into lmp-dev

10 years agoMerge "Add multichannel capability to AudioFlinger" into lmp-dev
Andy Hung [Fri, 25 Jul 2014 17:42:54 +0000 (17:42 +0000)]
Merge "Add multichannel capability to AudioFlinger" into lmp-dev

10 years agoAdd multichannel capability to AudioFlinger
Andy Hung [Tue, 22 Jul 2014 04:56:01 +0000 (21:56 -0700)]
Add multichannel capability to AudioFlinger

But not enabled (kEnableExtendedChannels == false).

Change-Id: I62f7e31fbd29ad703a9a02f5d1a280b6972dd423

10 years agoAdd multichannel capability to AudioMixer
Andy Hung [Fri, 18 Jul 2014 04:30:53 +0000 (21:30 -0700)]
Add multichannel capability to AudioMixer

tests/test-mixer updated to handle multichannel.
New mixer path is still disabled (kUseNewMixer = false).
Subsequent CL will enable multichannel capability.

Change-Id: I71dafa94cc1d9af567c285e0ded7c5c94e3ff926

10 years agoMerge "Add multichannel capability to AudioMixer" into lmp-dev
Andy Hung [Fri, 25 Jul 2014 17:08:58 +0000 (17:08 +0000)]
Merge "Add multichannel capability to AudioMixer" into lmp-dev

10 years agoReset the value for Vector of pointers.
Wei Jia [Thu, 24 Jul 2014 17:28:47 +0000 (10:28 -0700)]
Reset the value for Vector of pointers.

Bug: 16467066
Change-Id: I3674e07779a59f4d4fa639d066ed1988df89b3f5

10 years agoMerge "audio policy: compatible sample rates and channel masks" into lmp-dev
Glenn Kasten [Sun, 27 Jul 2014 22:05:14 +0000 (22:05 +0000)]
Merge "audio policy: compatible sample rates and channel masks" into lmp-dev

10 years agoaudiopolicy: fix output audio format selection
Eric Laurent [Sun, 27 Jul 2014 20:47:31 +0000 (13:47 -0700)]
audiopolicy: fix output audio format selection

Fix two problems in output stream audio format selection
added by commit 1e693b55:
- flags must be set before picking the format.
- fix logic error in best format selection.

Change-Id: I6458b32725f771da5a08108932d64e71964ae9f1

10 years agoaudio policy: compatible sample rates and channel masks
Glenn Kasten [Thu, 24 Jul 2014 20:46:44 +0000 (13:46 -0700)]
audio policy: compatible sample rates and channel masks

Change-Id: I50d068a968aa6bd9e53e5b3111a1b09a6c2d219c

10 years agoMerge "audio policy: clean up checking for active input" into lmp-dev
Glenn Kasten [Fri, 25 Jul 2014 15:24:14 +0000 (15:24 +0000)]
Merge "audio policy: clean up checking for active input" into lmp-dev

10 years agoMerge "-Making sure mAudioCommands list is empty before going to sleep. -Wake_lock...
Ricardo Garcia [Fri, 25 Jul 2014 15:08:24 +0000 (15:08 +0000)]
Merge "-Making sure mAudioCommands list is empty before going to sleep. -Wake_lock release before sleeping or quitting threadLoop()." into lmp-dev

10 years ago-Making sure mAudioCommands list is empty before going to sleep.
Ricardo Garcia [Thu, 24 Jul 2014 22:48:24 +0000 (15:48 -0700)]
-Making sure mAudioCommands list is empty before going to sleep.
-Wake_lock release before sleeping or quitting threadLoop().

Change-Id: Icab53d7984a3ba3eaf13e514667b4d60f40cbcd6

10 years agoaudio policy: clean up checking for active input
Glenn Kasten [Thu, 24 Jul 2014 21:09:55 +0000 (14:09 -0700)]
audio policy: clean up checking for active input

Change-Id: I85cc089df32e6d469e8aef307599f1021ea5b835

10 years agoaudio policy: add audio_input_flags_t and mOpenRefCount
Glenn Kasten [Thu, 24 Jul 2014 21:08:35 +0000 (14:08 -0700)]
audio policy: add audio_input_flags_t and mOpenRefCount

Change-Id: I5f9c7b5ebf03b9bc94efe70d3677edfabb99c194

10 years agoMerge "audio policy: add audio_input_flags_t and mOpenRefCount" into lmp-dev
Glenn Kasten [Fri, 25 Jul 2014 14:49:53 +0000 (14:49 +0000)]
Merge "audio policy: add audio_input_flags_t and mOpenRefCount" into lmp-dev

10 years agoMerge "reset battery stats when media player service is started" into lmp-dev
Chong Zhang [Fri, 25 Jul 2014 00:51:51 +0000 (00:51 +0000)]
Merge "reset battery stats when media player service is started" into lmp-dev

10 years agoMerge "StagefrightRecorder: check for WEBM format instead of MP4" into lmp-dev
Robert Shih [Fri, 25 Jul 2014 00:45:20 +0000 (00:45 +0000)]
Merge "StagefrightRecorder: check for WEBM format instead of MP4" into lmp-dev

10 years agoStagefrightRecorder: check for WEBM format instead of MP4
Robert Shih [Thu, 24 Jul 2014 21:00:09 +0000 (14:00 -0700)]
StagefrightRecorder: check for WEBM format instead of MP4

Bug: 16544665
Change-Id: Idc45bd4cafc65a11132d10fdf21f8439e186f35f

10 years agoMerge "signal mFrameAvailableCondition when AudioSource is stopped" into lmp-dev
Chong Zhang [Fri, 25 Jul 2014 00:02:40 +0000 (00:02 +0000)]
Merge "signal mFrameAvailableCondition when AudioSource is stopped" into lmp-dev

10 years agoMerge "Camera3: tear down Camera3 streams when they are deleted." into lmp-dev
Zhijun He [Thu, 24 Jul 2014 23:46:46 +0000 (23:46 +0000)]
Merge "Camera3: tear down Camera3 streams when they are deleted." into lmp-dev

10 years agoRemove last user of <cutils/tztime.h>.
Elliott Hughes [Thu, 24 Jul 2014 22:42:39 +0000 (15:42 -0700)]
Remove last user of <cutils/tztime.h>.

Bug: 15765976

(cherry picked from commit 56687f7cbf0a3d7909830fc1390a98c713a05e6f)

Change-Id: Iacb225584c3acdbb512f46b638a215b75b32cdcb

10 years agoCamera3: tear down Camera3 streams when they are deleted.
Zhijun He [Thu, 24 Jul 2014 20:45:15 +0000 (13:45 -0700)]
Camera3: tear down Camera3 streams when they are deleted.

Also override the disconnectLocked method in Camera3ZslStream to make sure the
Camera3ZslStream specific buffer queue is cleaned up properly.

Also revert 0be123df1897fd3fe1b7ba30f24d8ae4c91b4dc7, as it was not the right
fix.
Change-Id: I89bdcb2e206379ae1f2602421e7fdbcde9a31399

10 years agoaudio flinger: add patch connection between hw modules
Eric Laurent [Sat, 21 Jun 2014 01:31:16 +0000 (18:31 -0700)]
audio flinger: add patch connection between hw modules

Add support for audio device connections between different audio
hw modules.
The patch is performed by creating a bridge between the playback
thread connected to the sink device and the record thread connected
to the source device using a pair of specialized PlaybackTrack and
RecordTrack.
- Added PatchTrack and PatchRecord classes.
- Added TrackBase type to indicate more clearly the track behavior.
- A TrackBase can allocate the buffer or reuse an existing one.
- Factored some code in openOutput() and openInput() for internal use
by PatchPanel.

Bug: 14815883.

Change-Id: Ib9515fcda864610458a4bc81fa8f59096ff4d7db

10 years agosignal mFrameAvailableCondition when AudioSource is stopped
Chong Zhang [Thu, 24 Jul 2014 02:23:16 +0000 (19:23 -0700)]
signal mFrameAvailableCondition when AudioSource is stopped

This allows last read() to exit properly, otherwise it could get
stuck waiting for the condition forever.

Bug: 15849309
Change-Id: I79bba53630e59783a5fc041cfc5d3fdb2545cc2c

10 years agoCamcorderProfiles: add high speed profile constants
Zhijun He [Wed, 23 Jul 2014 22:17:26 +0000 (15:17 -0700)]
CamcorderProfiles: add high speed profile constants

Change-Id: I8f783466f8c2560820db14488acc1a309d27ab0f

10 years agoreset battery stats when media player service is started
Chong Zhang [Wed, 23 Jul 2014 21:46:05 +0000 (14:46 -0700)]
reset battery stats when media player service is started

Bug: 12979595
Change-Id: Ia800de3e65ed4dec8334c6fde566edab12d23c42

10 years agoaudio policy: remove redundant fixed volume management
Eric Laurent [Wed, 23 Jul 2014 02:48:16 +0000 (19:48 -0700)]
audio policy: remove redundant fixed volume management

Remove code handling fixed device volume in
AudioPolicyManager::computeVolume() as this is already
managed by AudioService.

Change-Id: Ib2be7578e40652c85a7d44c685ff9cc703d0c969

10 years agoHook up querying of VP8 temporal layering support.
Wei Jia [Wed, 23 Jul 2014 17:40:46 +0000 (10:40 -0700)]
Hook up querying of VP8 temporal layering support.

Bug: 14562236
Change-Id: I0ec5866173f7fb84dd3f79b588d1b35b523ca08a

10 years agoMerge "NuPlayer: save thread id in MediaPlayer::start" into lmp-dev
Chong Zhang [Wed, 23 Jul 2014 21:00:38 +0000 (21:00 +0000)]
Merge "NuPlayer: save thread id in MediaPlayer::start" into lmp-dev

10 years agoNuPlayer: save thread id in MediaPlayer::start
Chong Zhang [Wed, 23 Jul 2014 18:43:46 +0000 (11:43 -0700)]
NuPlayer: save thread id in MediaPlayer::start

so that when MediaPlayer::notify is called from within start,
it doesn't try to lock itself again.

Bug: 15323063
Change-Id: Idd77e892cd22538bbfe3e65c64c9dd2a216a0aee

10 years agoMerge "Fix multichannel integer resampling and add tests" into lmp-dev
Andy Hung [Wed, 23 Jul 2014 20:41:59 +0000 (20:41 +0000)]
Merge "Fix multichannel integer resampling and add tests" into lmp-dev

10 years agoGenericSource: support track (de)selection
Robert Shih [Wed, 16 Jul 2014 22:47:09 +0000 (15:47 -0700)]
GenericSource: support track (de)selection

Bug: 15153976
Change-Id: I522b1f9f0ffedf4edbea03a6654a6dbc0262860a

10 years agoCamera3: only append partial result to partial result collection
Zhijun He [Tue, 22 Jul 2014 23:08:13 +0000 (16:08 -0700)]
Camera3: only append partial result to partial result collection

Otherwise, the metadata entries will be duplicated.

Change-Id: If0cd96e09960fdf746a70913d380e9036745a944

10 years agoMerge "MediaRecorder: constants for webm recordering" into lmp-dev
Lajos Molnar [Wed, 23 Jul 2014 02:23:51 +0000 (02:23 +0000)]
Merge "MediaRecorder: constants for webm recordering" into lmp-dev