OSDN Git Service

android-x86/frameworks-av.git
12 years agoam 05985a2e: am c15cf3d2: Merge "stagefright: limit audio gap for looped playback...
Eric Laurent [Wed, 11 Jan 2012 19:14:30 +0000 (11:14 -0800)]
am 05985a2e: am c15cf3d2: Merge "stagefright: limit audio gap for looped playback" into ics-mr1

* commit '05985a2e2ae5c21fbf69d2884c59ea475fce7f6d':
  stagefright: limit audio gap for looped playback

12 years agoam c15cf3d2: Merge "stagefright: limit audio gap for looped playback" into ics-mr1
Eric Laurent [Wed, 11 Jan 2012 19:12:45 +0000 (11:12 -0800)]
am c15cf3d2: Merge "stagefright: limit audio gap for looped playback" into ics-mr1

* commit 'c15cf3d286f3d63d141b73f639a5a61ddb028029':
  stagefright: limit audio gap for looped playback

12 years agoMerge "Use correct type for hardware call state"
Glenn Kasten [Wed, 11 Jan 2012 18:25:23 +0000 (10:25 -0800)]
Merge "Use correct type for hardware call state"

12 years agoMerge "Declare IAudioTrack methods in binder opcode order"
Glenn Kasten [Wed, 11 Jan 2012 18:23:34 +0000 (10:23 -0800)]
Merge "Declare IAudioTrack methods in binder opcode order"

12 years agoMerge "Use consistent style of & reference for AutoMutex"
Glenn Kasten [Wed, 11 Jan 2012 18:23:04 +0000 (10:23 -0800)]
Merge "Use consistent style of & reference for AutoMutex"

12 years agoMerge "Fix missing tag in mediaserver ServiceManager: log"
Glenn Kasten [Wed, 11 Jan 2012 18:22:45 +0000 (10:22 -0800)]
Merge "Fix missing tag in mediaserver ServiceManager: log"

12 years agoMerge "AudioFlinger new can't fail"
Glenn Kasten [Wed, 11 Jan 2012 18:22:19 +0000 (10:22 -0800)]
Merge "AudioFlinger new can't fail"

12 years agoMerge "Fix build warning"
Glenn Kasten [Wed, 11 Jan 2012 18:01:34 +0000 (10:01 -0800)]
Merge "Fix build warning"

12 years agostagefright: limit audio gap for looped playback
Eric Laurent [Mon, 9 Jan 2012 21:47:48 +0000 (13:47 -0800)]
stagefright: limit audio gap for looped playback

The audio gap when looping audio is mostly due to
a delay requested by the audio player when executing
the end of stream message. This is to allow the audio
to be drained out of the pipe before actually stopping the
AudioTrack.
This delay is not needed when looping as the AudioTrack
is not stopped.

The fix consists in ignoring the requested delay when the
looping flag is set in awesome player.

Issue 5800981.

Change-Id: Ib32d2930c53ecebc21ca8440e6e054c7e20db4a5

12 years agoRename LOG_ASSERT to ALOG_ASSERT DO NOT MERGE
Steve Block [Mon, 9 Jan 2012 18:35:44 +0000 (18:35 +0000)]
Rename LOG_ASSERT to ALOG_ASSERT  DO NOT MERGE

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

Bug: 5449033
Change-Id: I8ceb2dba1b031a0fd68d15d146960d9ced62bbf3

12 years agoMerge "By convention const goes before the type specifier"
Glenn Kasten [Mon, 9 Jan 2012 19:59:17 +0000 (11:59 -0800)]
Merge "By convention const goes before the type specifier"

12 years agoUse cached reference to media.player service
Glenn Kasten [Tue, 3 Jan 2012 23:28:29 +0000 (15:28 -0800)]
Use cached reference to media.player service

This save unnecessary binder calls

Change-Id: I93a60efc54d9c8fb8fab706cd4477bbfd00ffec8

12 years agoMerge "Replace loop by __builtin_ctz"
Glenn Kasten [Mon, 9 Jan 2012 18:25:00 +0000 (10:25 -0800)]
Merge "Replace loop by __builtin_ctz"

12 years agoMerge "Clean up AudioTrack::mActive and stopped()"
Glenn Kasten [Mon, 9 Jan 2012 18:24:40 +0000 (10:24 -0800)]
Merge "Clean up AudioTrack::mActive and stopped()"

12 years agoMerge "suspended() and isSuspended() are const"
Glenn Kasten [Mon, 9 Jan 2012 18:24:09 +0000 (10:24 -0800)]
Merge "suspended() and isSuspended() are const"

12 years agoRename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE
Steve Block [Fri, 6 Jan 2012 19:20:56 +0000 (19:20 +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: Ic9c19d30693bd56755f55906127cd6bd7126096c

12 years agoam 20090b30: Reconcile with ics-mr1-release
The Android Open Source Project [Sat, 7 Jan 2012 02:18:36 +0000 (18:18 -0800)]
am 20090b30: Reconcile with ics-mr1-release

* commit '20090b30340f9382a2eca6a9bed21117f7a27d7e':

12 years agoReconcile with ics-mr1-release
The Android Open Source Project [Sat, 7 Jan 2012 02:15:13 +0000 (18:15 -0800)]
Reconcile with ics-mr1-release

Change-Id: Id0aeb30eb75c6c4aee7abbc9877aa5b16389778c

12 years agomerge in ics-mr1-release history after reset to ics-mr1
The Android Automerger [Sat, 7 Jan 2012 00:32:11 +0000 (16:32 -0800)]
merge in ics-mr1-release history after reset to ics-mr1

12 years agoam 4bc873e6: am 7944704e: Merge "Switch camera sounds to always use the system enforc...
Eino-Ville Talvala [Fri, 6 Jan 2012 23:51:44 +0000 (15:51 -0800)]
am 4bc873e6: am 7944704e: Merge "Switch camera sounds to always use the system enforced audio stream." into ics-mr1

* commit '4bc873e6ff73200af866f8c9efca66ad8ed23682':
  Switch camera sounds to always use the system enforced audio stream.

12 years agoam 7944704e: Merge "Switch camera sounds to always use the system enforced audio...
Eino-Ville Talvala [Fri, 6 Jan 2012 23:49:17 +0000 (15:49 -0800)]
am 7944704e: Merge "Switch camera sounds to always use the system enforced audio stream." into ics-mr1

* commit '7944704e6c4cc10105838b78d3d8403bf66a066b':
  Switch camera sounds to always use the system enforced audio stream.

12 years agoAudioFlinger new can't fail
Glenn Kasten [Fri, 6 Jan 2012 23:03:11 +0000 (15:03 -0800)]
AudioFlinger new can't fail

Change-Id: I7dae05a5ea1c962a9975386eab1fedbbe106ffba

12 years agoFix missing tag in mediaserver ServiceManager: log
Glenn Kasten [Mon, 19 Dec 2011 22:09:14 +0000 (14:09 -0800)]
Fix missing tag in mediaserver ServiceManager: log

Change-Id: I2d5525ffee0b66c0bc361a02b313ec4dd61e6552

12 years agoDeclare IAudioTrack methods in binder opcode order
Glenn Kasten [Tue, 3 Jan 2012 22:50:23 +0000 (14:50 -0800)]
Declare IAudioTrack methods in binder opcode order

This makes it easier to match up the declarations.

Change-Id: I0996c20b2903b778b356dfe52b07b0ec634855dd

12 years agoUse consistent style of & reference for AutoMutex
Glenn Kasten [Thu, 5 Jan 2012 23:41:56 +0000 (15:41 -0800)]
Use consistent style of & reference for AutoMutex

AutoMutex, which is a typedef for Mutex::Autolock, is overloaded for
either a reference (&) or pointer (*) parameter, but we prefer to use
the reference form when the mutex is known at compile time.

Change-Id: I3515e6d6ab7959b2356a27fa3b04fd49e42cb31e

12 years agoUse correct type for hardware call state
Glenn Kasten [Wed, 4 Jan 2012 19:02:33 +0000 (11:02 -0800)]
Use correct type for hardware call state

Change-Id: Ic6d98b129e3ec653df1d8f7e829adf8dccb4f378

12 years agoSwitch camera sounds to always use the system enforced audio stream.
Eino-Ville Talvala [Thu, 5 Jan 2012 23:34:53 +0000 (15:34 -0800)]
Switch camera sounds to always use the system enforced audio stream.

Instead of picking between the music stream and the enforced audio
stream, change the camera service to always play sounds through
enforced system stream. Also update the currently-hidden CameraSound
API to match.

Bug: 5778365
Change-Id: I3cc64b1d1ff567dbac8020a665d5b19846197ff3

12 years agoBy convention const goes before the type specifier
Glenn Kasten [Fri, 6 Jan 2012 15:46:30 +0000 (07:46 -0800)]
By convention const goes before the type specifier

Change-Id: I70203abd6a6f54e5bd9f1412800cc01212157e58

12 years agoFix build warning
Glenn Kasten [Fri, 6 Jan 2012 15:47:26 +0000 (07:47 -0800)]
Fix build warning

Change-Id: Ic99608d0c14ed56c02f036e0bbaaae1b16bab8ba

12 years agoRename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGE
Steve Block [Thu, 5 Jan 2012 23:22:43 +0000 (23:22 +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: I00a4b904f9449e6f93b7fd35eac28640d7929e69

12 years agoReplace loop by __builtin_ctz
Glenn Kasten [Thu, 15 Dec 2011 22:38:29 +0000 (14:38 -0800)]
Replace loop by __builtin_ctz

Using the builtin is faster on some platforms, for example on ARM it's
19 instructions instead of 13, and is O(1) instead of O(n).  Of course,
track creation is an inherently slow operation, so this doesn't matter
much now.  But if we add support for virtual tracks, then physical tracks
will be allocated/freed more frequently.  Also just on principle ...

Change-Id: I3f590934092bd7a1869cbedbc7357928aa5cc8ff

12 years agoMerge "Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGE"
Steve Block [Thu, 5 Jan 2012 22:07:02 +0000 (14:07 -0800)]
Merge "Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF)  DO NOT MERGE"

12 years agoam d32ee5ba: Reconcile with ics-mr1-release
The Android Open Source Project [Thu, 5 Jan 2012 20:08:48 +0000 (12:08 -0800)]
am d32ee5ba: Reconcile with ics-mr1-release

* commit 'd32ee5baa057992431263907ec5cf8f19b43c043':

12 years agoClean up AudioTrack::mActive and stopped()
Glenn Kasten [Tue, 3 Jan 2012 17:42:47 +0000 (09:42 -0800)]
Clean up AudioTrack::mActive and stopped()

mActive is protected by mLock; volatile is meaningless on SMP.

Fixed a couple of places where mActive was accessed without a lock:
 - stopped()
 - processAudioBuffer()

Added stopped_l() for cases where we already hold the lock.

Made mActive a bool not int.

Moved down a lock in setPosition that was being acquired too early.

Change-Id: I73ff368e991c0db9f9472df0b3f96fd33fcc7311

12 years agosuspended() and isSuspended() are const
Glenn Kasten [Wed, 4 Jan 2012 19:01:11 +0000 (11:01 -0800)]
suspended() and isSuspended() are const

Change-Id: I04b95970b5a645b64e7e64fffd46d868354dda66

12 years agoMerge "Remove the notion of "active track" from mixer"
Glenn Kasten [Thu, 5 Jan 2012 16:20:10 +0000 (08:20 -0800)]
Merge "Remove the notion of "active track" from mixer"

12 years agoReconcile with ics-mr1-release
The Android Open Source Project [Thu, 5 Jan 2012 15:45:28 +0000 (07:45 -0800)]
Reconcile with ics-mr1-release

Change-Id: I8a74c329fc7dd115e36d5180fab8e8680d6df4f8

12 years agoMerge "Use the standard CC_LIKELY and CC_UNLIKELY macros"
Glenn Kasten [Thu, 5 Jan 2012 15:38:29 +0000 (07:38 -0800)]
Merge "Use the standard CC_LIKELY and CC_UNLIKELY macros"

12 years agoUse the standard CC_LIKELY and CC_UNLIKELY macros
Glenn Kasten [Thu, 15 Dec 2011 17:51:17 +0000 (09:51 -0800)]
Use the standard CC_LIKELY and CC_UNLIKELY macros

Several source files privately defined macros LIKELY and UNLIKELY in terms
of __builtin_expect. But <cutils/compiler.h> already has CC_LIKELY and
CC_UNLIKELY which are intended for this purpose.  So rename the private
uses to use the standard names.

In addition, AudioFlinger was relying on the macro expanding to extra ( ).

Change-Id: I2494e087a0c0cac0ac998335f5e9c8ad02955873

12 years agoresolved conflicts for merge of 1a4b9939 to master
Eric Laurent [Thu, 5 Jan 2012 01:39:12 +0000 (17:39 -0800)]
resolved conflicts for merge of 1a4b9939 to master

Change-Id: I0c910d391a38a916d8431f7d1f5b82e39e1a66c2

12 years agomerge in ics-mr1-release history after reset to ics-mr1
The Android Automerger [Thu, 5 Jan 2012 00:42:23 +0000 (16:42 -0800)]
merge in ics-mr1-release history after reset to ics-mr1

12 years agoam fb578b6b: Merge "audioflinger: fix clicks on 48kHz audio." into ics-mr1
Eric Laurent [Wed, 4 Jan 2012 21:00:49 +0000 (13:00 -0800)]
am fb578b6b: Merge "audioflinger: fix clicks on 48kHz audio." into ics-mr1

* commit 'fb578b6b88af51812b71a86ad4dd3a7de56e394b':
  audioflinger: fix clicks on 48kHz audio.

12 years agoRename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGE
Steve Block [Wed, 4 Jan 2012 20:05:49 +0000 (20:05 +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: Ib08fe86d23db91ee153e9f91a99a35c42b9208ea

12 years agoRename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE
Steve Block [Tue, 20 Dec 2011 16:23:08 +0000 (16:23 +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: I4c4e33bb9df3e39e11cd985e193e6fbab4635298

12 years agoaudioflinger: fix clicks on 48kHz audio.
Eric Laurent [Fri, 23 Dec 2011 00:08:41 +0000 (16:08 -0800)]
audioflinger: fix clicks on 48kHz audio.

The calculation done in prepareTracks_l() for the minimum amount
off frames needed to mix one output buffer had 2 issues:
- the additional sample needed for interpolation was not included
- the fact that the resampler does not acknowledge the frames consumed
immediately after each mixing round but only once all frames requested have been used
was not taken into account.
Thus the number of frames available in track buffer could be considered sufficient although
it was not and the resampler would abort producing a short silence perceived as a click.

Issue 5727099.

Change-Id: I7419847a7474c7d9f9170bedd0a636132262142c

12 years agoRemove the notion of "active track" from mixer
Glenn Kasten [Mon, 19 Dec 2011 23:06:39 +0000 (15:06 -0800)]
Remove the notion of "active track" from mixer

This is a first step towards making the mixer more object-oriented.

Change-Id: Ifd445d0e471023a7f5c82e934736ffc95ba1b05b

12 years agoam 21cb1290: Reconcile with ics-mr1-release
The Android Open Source Project [Tue, 20 Dec 2011 21:11:53 +0000 (13:11 -0800)]
am 21cb1290: Reconcile with ics-mr1-release

* commit '21cb1290b578a4bceac003c276c00911fcd6c9d4':

12 years agoReconcile with ics-mr1-release
The Android Open Source Project [Tue, 20 Dec 2011 21:08:33 +0000 (13:08 -0800)]
Reconcile with ics-mr1-release

Change-Id: I123bd5ae61ab8c4f6de1a6640faf0bab89f6aa78

12 years agoMerge "Remove dead code"
Glenn Kasten [Tue, 20 Dec 2011 18:29:49 +0000 (10:29 -0800)]
Merge "Remove dead code"

12 years agoMerge "audio effects: rename configure command"
Eric Laurent [Tue, 20 Dec 2011 01:26:24 +0000 (17:26 -0800)]
Merge "audio effects: rename configure command"

12 years agoaudio effects: rename configure command
Eric Laurent [Fri, 16 Dec 2011 23:30:36 +0000 (15:30 -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 a new 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.

Implemented EFFECT_CMD_GET_CONFIG in exisitng effect libraries.

Change-Id: Ia7b1c620f13797fe5aceb3b0b4acbacce09fb067

12 years agoRemove dead code
Glenn Kasten [Thu, 15 Dec 2011 17:53:12 +0000 (09:53 -0800)]
Remove dead code

Change-Id: Icf23f7f90fdeb660f4015f22cf239e6d05f5d03c

12 years agoMerge "Fix for 5754998 testPerformanceTransitionWithEffectOverlapping test failed."
Hong Teng [Fri, 16 Dec 2011 23:17:46 +0000 (15:17 -0800)]
Merge "Fix for 5754998 testPerformanceTransitionWithEffectOverlapping test failed."

12 years agoMerge "Use constants for 2 and 32"
Glenn Kasten [Fri, 16 Dec 2011 23:10:36 +0000 (15:10 -0800)]
Merge "Use constants for 2 and 32"

12 years agoMerge "Extract out audio DSP code to utility library"
Glenn Kasten [Fri, 16 Dec 2011 23:02:30 +0000 (15:02 -0800)]
Merge "Extract out audio DSP code to utility library"

12 years agoUse constants for 2 and 32
Glenn Kasten [Tue, 13 Dec 2011 19:52:35 +0000 (11:52 -0800)]
Use constants for 2 and 32

Change-Id: If820dfd58b6df258570750610a07af99598d9e53

12 years agoFix for 5754998 testPerformanceTransitionWithEffectOverlapping test failed.
Hong Teng [Fri, 16 Dec 2011 00:56:49 +0000 (16:56 -0800)]
Fix for 5754998 testPerformanceTransitionWithEffectOverlapping test failed.

-Fix the index is out of sync frame array boundary when seeking to end of a 3gp file.
Validation only were done for video editor cts test and Movie Studio application.
Futher validation may include media player, youtube application,.etc.

Change-Id: Ib01314f1768cfab702dbe25c307553ace0b85e77

12 years agoMerge "Use switch in AudioMixer::setParameter"
Glenn Kasten [Fri, 16 Dec 2011 21:31:33 +0000 (13:31 -0800)]
Merge "Use switch in AudioMixer::setParameter"

12 years agoUse switch in AudioMixer::setParameter
Glenn Kasten [Thu, 5 May 2011 15:19:00 +0000 (08:19 -0700)]
Use switch in AudioMixer::setParameter

Replace series of if/then/elses by easier-to-read switch.  Also return
void instead of status_t, since callers weren't checking it. Assert on
bad input parameters.

Change-Id: Ie1f0a297977b28501d20e1af819afed9b4750616

12 years agodeleteTrackName now asserts on bad input parameter
Glenn Kasten [Thu, 15 Dec 2011 23:32:27 +0000 (15:32 -0800)]
deleteTrackName now asserts on bad input parameter

This is safe, as the input parameter is always track->name(),
which must be valid.

Change-Id: Iea8ea3a5706c27026335526ba8851030d00681f8

12 years agomerge in ics-mr1-release history after reset to ics-mr1
The Android Automerger [Fri, 16 Dec 2011 20:01:35 +0000 (12:01 -0800)]
merge in ics-mr1-release history after reset to ics-mr1

12 years agoExtract out audio DSP code to utility library
Glenn Kasten [Thu, 15 Dec 2011 17:52:39 +0000 (09:52 -0800)]
Extract out audio DSP code to utility library

Change-Id: Ib8ce72028a7ea30e82baa518e381370e820ebbd0

12 years agoam 57ea96a4: Reconcile with ics-mr1-release
The Android Open Source Project [Fri, 16 Dec 2011 16:09:57 +0000 (08:09 -0800)]
am 57ea96a4: Reconcile with ics-mr1-release

* commit '57ea96a4b3273aa8592873355a2f79c74b1abec1':
  SurfaceMediaSource: use the HW_TEXTURE usage bit
  SurfaceMediaSource: use the HW_TEXTURE usage bit

12 years agoReconcile with ics-mr1-release
The Android Open Source Project [Fri, 16 Dec 2011 16:08:07 +0000 (08:08 -0800)]
Reconcile with ics-mr1-release

Change-Id: Ib2cbd92ed2d3567e22921b66ca2202a968fdd0da

12 years agoMerge "setActiveTrack and setBufferProvider can't fail"
Glenn Kasten [Fri, 16 Dec 2011 15:30:14 +0000 (07:30 -0800)]
Merge "setActiveTrack and setBufferProvider can't fail"

12 years agoMerge "Simplify enable/disable mixing"
Glenn Kasten [Fri, 16 Dec 2011 15:29:57 +0000 (07:29 -0800)]
Merge "Simplify enable/disable mixing"

12 years agoSurfaceMediaSource: use the HW_TEXTURE usage bit
Jamie Gennis [Fri, 16 Dec 2011 02:14:05 +0000 (18:14 -0800)]
SurfaceMediaSource: use the HW_TEXTURE usage bit

This change makes SurfaceMediaSource request Gralloc buffers with the
HW_TEXTURE usage bit rather than the VIDEO_ENCODER bit.  It is a
temporary workaround for what is likely a Gralloc bug.

Bug: 5771063
Change-Id: I9cce615e80fc14a1644fae27ba06970c262dd179

12 years agomerge in ics-mr1-release history after reset to ics-mr1
The Android Automerger [Fri, 16 Dec 2011 04:50:02 +0000 (20:50 -0800)]
merge in ics-mr1-release history after reset to ics-mr1

12 years agoSurfaceMediaSource: use the HW_TEXTURE usage bit
Jamie Gennis [Fri, 16 Dec 2011 02:14:05 +0000 (18:14 -0800)]
SurfaceMediaSource: use the HW_TEXTURE usage bit

This change makes SurfaceMediaSource request Gralloc buffers with the
HW_TEXTURE usage bit rather than the VIDEO_ENCODER bit.  It is a
temporary workaround for what is likely a Gralloc bug.

Bug: 5771063
Change-Id: I9cce615e80fc14a1644fae27ba06970c262dd179

12 years agoam 0cc1e42d: am ac279de9: Merge "SurfaceMediaSource: use the HW_TEXTURE usage bit...
Dave Burke [Fri, 16 Dec 2011 03:27:17 +0000 (19:27 -0800)]
am 0cc1e42d: am ac279de9: Merge "SurfaceMediaSource: use the HW_TEXTURE usage bit" into ics-mr1

* commit '0cc1e42d74e09c259a6da0abc9009d1abf7537b1':
  SurfaceMediaSource: use the HW_TEXTURE usage bit

12 years agoam ac279de9: Merge "SurfaceMediaSource: use the HW_TEXTURE usage bit" into ics-mr1
Dave Burke [Fri, 16 Dec 2011 03:25:07 +0000 (19:25 -0800)]
am ac279de9: Merge "SurfaceMediaSource: use the HW_TEXTURE usage bit" into ics-mr1

* commit 'ac279de9d9fcfd59a336298cfdd5b1f4ab6d038f':
  SurfaceMediaSource: use the HW_TEXTURE usage bit

12 years agoSurfaceMediaSource: use the HW_TEXTURE usage bit
Jamie Gennis [Fri, 16 Dec 2011 02:14:05 +0000 (18:14 -0800)]
SurfaceMediaSource: use the HW_TEXTURE usage bit

This change makes SurfaceMediaSource request Gralloc buffers with the
HW_TEXTURE usage bit rather than the VIDEO_ENCODER bit.  It is a
temporary workaround for what is likely a Gralloc bug.

Bug: 5771063
Change-Id: I9cce615e80fc14a1644fae27ba06970c262dd179

12 years agoMerge "Improve resistance to leaks for ConfigEvent"
Glenn Kasten [Fri, 16 Dec 2011 00:17:04 +0000 (16:17 -0800)]
Merge "Improve resistance to leaks for ConfigEvent"

12 years agoMerge "Use NULL not 0 for pointers"
Glenn Kasten [Fri, 16 Dec 2011 00:16:55 +0000 (16:16 -0800)]
Merge "Use NULL not 0 for pointers"

12 years agosetActiveTrack and setBufferProvider can't fail
Glenn Kasten [Thu, 15 Dec 2011 23:46:46 +0000 (15:46 -0800)]
setActiveTrack and setBufferProvider can't fail

Return void, not status_t, from setActiveTrack and setBufferProvider.

These methods returned status_t, but the callers never checked the
return value.  Since these aren't externally visible APIs, they now
return void, and assert on bad input parameters.

Change-Id: I530ed29484596ae41e8659826ca425149c51c2a1

12 years agoSimplify enable/disable mixing
Glenn Kasten [Thu, 15 Dec 2011 22:54:01 +0000 (14:54 -0800)]
Simplify enable/disable mixing

The MIXING enum isn't needed, and now returns void instead of status_t.

Change-Id: Ibe4ec24081d75ad4ab78b9c7191fc9077959c4e9

12 years agoImprove resistance to leaks for ConfigEvent
Glenn Kasten [Tue, 13 Dec 2011 19:50:00 +0000 (11:50 -0800)]
Improve resistance to leaks for ConfigEvent

A Vector of pointers is risky, as there is no ownership (and the
ThreadBase destructor was not deleting them, so if there were any left
over at end it would leak).  Replaced by a Vector of values.

Change-Id: Iddde72dc30134adfcf724dec26cbe0a742509b8c

12 years agoMerge "Fix build error when verbose logging is enabled"
Glenn Kasten [Thu, 15 Dec 2011 18:46:14 +0000 (10:46 -0800)]
Merge "Fix build error when verbose logging is enabled"

12 years agoUse NULL not 0 for pointers
Glenn Kasten [Tue, 13 Dec 2011 19:53:26 +0000 (11:53 -0800)]
Use NULL not 0 for pointers

Change-Id: Iab3f9abbdab617dc5a599e657ec46a0b0a002eef

12 years agoFix build error when verbose logging is enabled
Glenn Kasten [Thu, 15 Dec 2011 16:27:40 +0000 (08:27 -0800)]
Fix build error when verbose logging is enabled

Change-Id: I30f4e5d35d1b24dce2e6152a13fd0fb61414a3e2

12 years agomerge in ics-mr1-release history after reset to ics-mr1
The Android Automerger [Thu, 15 Dec 2011 06:14:25 +0000 (22:14 -0800)]
merge in ics-mr1-release history after reset to ics-mr1

12 years agoMerge "Fix indentation and whitespace"
Glenn Kasten [Thu, 15 Dec 2011 01:35:36 +0000 (17:35 -0800)]
Merge "Fix indentation and whitespace"

12 years agoMerge "Improve AudioFlinger error logging"
Glenn Kasten [Thu, 15 Dec 2011 01:35:23 +0000 (17:35 -0800)]
Merge "Improve AudioFlinger error logging"

12 years agoMerge "AudioMixer uninitialized simple fields"
Glenn Kasten [Thu, 15 Dec 2011 01:35:14 +0000 (17:35 -0800)]
Merge "AudioMixer uninitialized simple fields"

12 years agoAudioMixer uninitialized simple fields
Glenn Kasten [Tue, 13 Dec 2011 19:58:23 +0000 (11:58 -0800)]
AudioMixer uninitialized simple fields

Change-Id: I47e3849f048d4d990c9634f9c8a2ca2de0339e93

12 years agoImprove AudioFlinger error logging
Glenn Kasten [Fri, 28 Oct 2011 17:31:42 +0000 (10:31 -0700)]
Improve AudioFlinger error logging

Change-Id: I8ce9aff4038cd7fa0067600faa8080b137db1939

12 years agoMerge "Audio C++ comments"
Glenn Kasten [Thu, 15 Dec 2011 00:56:31 +0000 (16:56 -0800)]
Merge "Audio C++ comments"

12 years agoFix indentation and whitespace
Glenn Kasten [Mon, 12 Dec 2011 17:05:55 +0000 (09:05 -0800)]
Fix indentation and whitespace

Use git diff -w to verify.

Change-Id: Ib65be0a1ecf65d6cad516110604e3855bf68a638

12 years agoam b14436d0: Reconcile with ics-mr1-release
The Android Open Source Project [Thu, 15 Dec 2011 00:08:46 +0000 (16:08 -0800)]
am b14436d0: Reconcile with ics-mr1-release

* commit 'b14436d0700f6e837e4d6066ddcf672c61d7f033':
  Revert the following patches because they may lead to power regression because SHA/MD5 module is stuck 1. Revert "Fix drm flag setting missed in false drm recognition fix."    This reverts commit 9f704f6c46a171357e49c411c83458b9d4565f3b.

12 years agoReconcile with ics-mr1-release
The Android Open Source Project [Thu, 15 Dec 2011 00:05:32 +0000 (16:05 -0800)]
Reconcile with ics-mr1-release

Change-Id: I1b745b11729a3fda14ffe44f1f44854e087318c7

12 years agoRevert the following patches because they may lead to power regression because SHA...
James Dong [Wed, 14 Dec 2011 18:57:05 +0000 (10:57 -0800)]
Revert the following patches because they may lead to power regression because SHA/MD5 module is stuck
1. Revert "Fix drm flag setting missed in false drm recognition fix."
   This reverts commit 9f704f6c46a171357e49c411c83458b9d4565f3b.

2. Revert "Fixed the false drm recognition."
   This reverts commit aadbd80b307c817698ce5110ff8e002804d1b230.

3. Revert "Fix drm enumeration order, resolves failure to play forward lock ringtones"
   This reverts commit a5cbf023e349f2394ba6fc58d73b4375cfec4369.

4. Revert "Fix ANRs due to Widevine DRM plugin sniff taking too long."
   This reverts commit d0d19db1ca1c289b069db33f4665bcb9386064e9.

As a result of the reverting, many ANRs from WV sniffing are back.

related-to-bug: 5739618

12 years agoMerge "Remove unnecessary this->"
Glenn Kasten [Wed, 14 Dec 2011 23:40:43 +0000 (15:40 -0800)]
Merge "Remove unnecessary this->"

12 years agoMerge "Use const char correctly in AudioFlinger"
Glenn Kasten [Wed, 14 Dec 2011 23:40:35 +0000 (15:40 -0800)]
Merge "Use const char correctly in AudioFlinger"

12 years agoMerge "Use units after all times"
Glenn Kasten [Wed, 14 Dec 2011 23:40:27 +0000 (15:40 -0800)]
Merge "Use units after all times"

12 years agoMerge "Delete obsolete includes"
Glenn Kasten [Wed, 14 Dec 2011 23:40:11 +0000 (15:40 -0800)]
Merge "Delete obsolete includes"

12 years agoMerge "Remove redundant clear()"
Glenn Kasten [Wed, 14 Dec 2011 23:40:01 +0000 (15:40 -0800)]
Merge "Remove redundant clear()"

12 years agoMerge "Fix includes"
Glenn Kasten [Wed, 14 Dec 2011 23:39:52 +0000 (15:39 -0800)]
Merge "Fix includes"

12 years agoMerge "AudioTrack::setVolume check range"
Glenn Kasten [Wed, 14 Dec 2011 23:05:56 +0000 (15:05 -0800)]
Merge "AudioTrack::setVolume check range"

12 years agoAudio C++ comments
Glenn Kasten [Wed, 14 Dec 2011 18:28:06 +0000 (10:28 -0800)]
Audio C++ comments

Change-Id: I84906ebb9dfcfa5b96b287d18364b407f02a30c1

12 years agoam 3f6a7d1e: am d70c64db: Revert the following patches because they may lead to power...
James Dong [Wed, 14 Dec 2011 21:53:31 +0000 (13:53 -0800)]
am 3f6a7d1e: am d70c64db: Revert the following patches because they may lead to power regression because SHA/MD5 module is stuck 1. Revert "Fix drm flag setting missed in false drm recognition fix."    This reverts commit 9f704f6c46a171357e49c411c83458b9d4565f3b.

* commit '3f6a7d1ee961a4544563932b7499535dc1cac1ec':
  Revert the following patches because they may lead to power regression because SHA/MD5 module is stuck 1. Revert "Fix drm flag setting missed in false drm recognition fix."    This reverts commit 9f704f6c46a171357e49c411c83458b9d4565f3b.