OSDN Git Service

android-x86/frameworks-av.git
9 years agoMerge "stagefright: add codec capability info for google video codecs" into lmp-dev
Lajos Molnar [Fri, 29 Aug 2014 21:39:34 +0000 (21:39 +0000)]
Merge "stagefright: add codec capability info for google video codecs" into lmp-dev

9 years agoMerge "sound trigger: fix cross deadlock between service and client" into lmp-dev
Eric Laurent [Fri, 29 Aug 2014 18:29:49 +0000 (18:29 +0000)]
Merge "sound trigger: fix cross deadlock between service and client" into lmp-dev

9 years agoMerge "audio policy: fix input source passed to openInput()" into lmp-dev
Eric Laurent [Fri, 29 Aug 2014 18:29:36 +0000 (18:29 +0000)]
Merge "audio policy: fix input source passed to openInput()" into lmp-dev

9 years agoMerge "audiopolicy: Indicate output device change to all input threads for pre-proces...
Dmitry Shmidt [Fri, 29 Aug 2014 18:28:26 +0000 (18:28 +0000)]
Merge "audiopolicy: Indicate output device change to all input threads for pre-processing" into lmp-dev

9 years agosound trigger: fix cross deadlock between service and client
Eric Laurent [Fri, 29 Aug 2014 02:45:37 +0000 (19:45 -0700)]
sound trigger: fix cross deadlock between service and client

Do not call callback methods on ISoundTriggerClient with the service mutex
locked: the client implementation will lock its mutex to process
the callback and if a request from the same client with client
mutex locked was waiting for the service mutex a deadlock occurs.

Bug: 16873049.
Change-Id: Ifc3b31fdfaed525981fa59876c041478f38b42e8

9 years agoaudio policy: fix input source passed to openInput()
Eric Laurent [Fri, 29 Aug 2014 02:37:25 +0000 (19:37 -0700)]
audio policy: fix input source passed to openInput()

The input source passed to openInput() must be
modified from HOTWORD to VOICE_RECOGNITION if the capture does not
correspond to a sound trigger session.

Bug: 16731718.
Change-Id: I48aa4180e75dd5335cd096b48da1c15f2236e6ed

9 years agoMerge "[AU]Sync libmedia/Android.mk modification from KLP-Sprout" into lmp-dev
Bart Sears [Fri, 29 Aug 2014 02:06:36 +0000 (02:06 +0000)]
Merge "[AU]Sync libmedia/Android.mk modification from KLP-Sprout" into lmp-dev

9 years ago[AU]Sync libmedia/Android.mk modification from KLP-Sprout
Hochi Huang [Sat, 23 Aug 2014 01:19:27 +0000 (09:19 +0800)]
[AU]Sync libmedia/Android.mk modification from KLP-Sprout

Bug: 17322146

Change-Id: If29fbd87252710bd794f2e0bb270bc846380ef1d
Signed-off-by: Hochi Huang <hochi.huang@mediatek.com>
9 years agoaudiopolicy: Indicate output device change to all input threads for pre-processing
bryant_liu [Tue, 19 Aug 2014 12:07:05 +0000 (20:07 +0800)]
audiopolicy: Indicate output device change to all input threads for pre-processing

Bug: 17129715

Change-Id: I1fd938cce0b85241c80ea00f3d013a98948d3975

9 years agoframeworks: av: AudioPolicyEffect: Add refCount for each session
bryant_liu [Wed, 20 Aug 2014 10:06:13 +0000 (18:06 +0800)]
frameworks: av: AudioPolicyEffect: Add refCount for each session

Audio framework stops and restarts AudioTracks on same audio session.
Sometimes the AudioTrack start() comes before a stop(). As effects
are linked to the session, they should only be created on the last
stop() related to that session.

Bug: 17201117

Change-Id: I19343e293d6b7b6b794fe05ebd0dd239ed3b075c

9 years agoMerge "CameraService: Create a dummy stream when 0 streams are requested." into lmp-dev
Eino-Ville Talvala [Thu, 28 Aug 2014 23:46:08 +0000 (23:46 +0000)]
Merge "CameraService: Create a dummy stream when 0 streams are requested." into lmp-dev

9 years agoMerge "PlaylistFetcher: add lower bound check when starting live streams" into lmp-dev
Robert Shih [Thu, 28 Aug 2014 22:57:39 +0000 (22:57 +0000)]
Merge "PlaylistFetcher: add lower bound check when starting live streams" into lmp-dev

9 years agoCameraService: Create a dummy stream when 0 streams are requested.
Eino-Ville Talvala [Wed, 27 Aug 2014 21:41:33 +0000 (14:41 -0700)]
CameraService: Create a dummy stream when 0 streams are requested.

A workaround for a camera device HAL v3.2 or older specification hole - it's
not acceptable to configure_streams with 0 output streams. However, we allow for
this at the public API level, to allow an application to release all output streams.

So in this case, create a dummy stream that doesn't actually do anything as a placeholder.

Bug: 17220694
Change-Id: Ib25242ffc2c9f2b2f619fd5fe6d652266579da85

9 years agoPlaylistFetcher: add lower bound check when starting live streams
Robert Shih [Thu, 28 Aug 2014 22:18:53 +0000 (15:18 -0700)]
PlaylistFetcher: add lower bound check when starting live streams

Avoid false 'missed the boat' alarms that cause us to queue a bogus
discontinuity before even starting.

Bug: 17303166
Change-Id: I5003934fc695f30db2df9a0803b8fe960d77a458

9 years agoMerge "Fix audio dropouts with multiple playback streams." into lmp-dev
Paul McLean [Thu, 28 Aug 2014 20:44:57 +0000 (20:44 +0000)]
Merge "Fix audio dropouts with multiple playback streams." into lmp-dev

9 years agoMerge "audio policy: remove audio patch when closing input or output" into lmp-dev
Eric Laurent [Thu, 28 Aug 2014 15:32:53 +0000 (15:32 +0000)]
Merge "audio policy: remove audio patch when closing input or output" into lmp-dev

9 years agoaudio policy: remove audio patch when closing input or output
Eric Laurent [Wed, 27 Aug 2014 22:32:29 +0000 (15:32 -0700)]
audio policy: remove audio patch when closing input or output

Make sure that an audio patch having an output as source or input as sink
is removed when this input or output is closed.

Bug: 17303725.

Change-Id: I234d54a25ce0b579eeeafdcfda3a0594f048768c

9 years agoMerge "cameraservice: decrease zsl metadata queue size by 1" into lmp-dev
Yin-Chia Yeh [Wed, 27 Aug 2014 23:47:42 +0000 (23:47 +0000)]
Merge "cameraservice: decrease zsl metadata queue size by 1" into lmp-dev

9 years agoMerge "Camera API1: Fix ZSLProcessor3 deadlock" into lmp-dev
Zhijun He [Wed, 27 Aug 2014 23:42:01 +0000 (23:42 +0000)]
Merge "Camera API1: Fix ZSLProcessor3 deadlock" into lmp-dev

9 years agoCamera API1: Fix ZSLProcessor3 deadlock
Zhijun He [Wed, 27 Aug 2014 22:50:25 +0000 (15:50 -0700)]
Camera API1: Fix ZSLProcessor3 deadlock

ZSLProcessor3 shouldn't acquire mInputMutex in onBufferReleased call for output
buffers, because the caller (Camera3Stream::returnBuffer) holds the camera3
stream lock already. This could cause deadlock for ZSL reprocess request as it
holds the ZSLProcessor3 input lock and try to acquire camera3 stream lock to
submit the request.

Bug: 17299038
Change-Id: I6a7bf8ebd7c2064852358c655f3a3e9a67769213

9 years agoFix audio dropouts with multiple playback streams.
Paul McLean [Wed, 20 Aug 2014 23:47:57 +0000 (16:47 -0700)]
Fix audio dropouts with multiple playback streams.

Bug 17136569

Change-Id: I7f69cb24168c7d27ce28679735f53c1ece4014c1

9 years agoMerge "Fix potential deadlock in unregisterStaleHandlers()" into lmp-dev
Marco Nelissen [Wed, 27 Aug 2014 23:26:29 +0000 (23:26 +0000)]
Merge "Fix potential deadlock in unregisterStaleHandlers()" into lmp-dev

9 years agoFix potential deadlock in unregisterStaleHandlers()
Marco Nelissen [Wed, 27 Aug 2014 22:20:45 +0000 (15:20 -0700)]
Fix potential deadlock in unregisterStaleHandlers()

The scenario is that a call to unregisterStaleHandlers() is in progress,
and is holding a temporary sp<ALooper> reference to an active ALooper inside
of the loop. At this point the only other remaining external reference to
the ALooper goes away, so the temporary sp<ALooper> in the loop is now
the only reference keeping that object alive. When the loop iterates and
the sp<> goes out of scope, the ALooper destructor is called, which in turn
calls unregisterStaleHandlers again, resulting in a recursive lock.

Bug: 17300093
Change-Id: I116f2ffab4ae7c43b6bcf54a367ae6f9d77c9626

9 years agocameraservice: decrease zsl metadata queue size by 1
Yin-Chia Yeh [Wed, 27 Aug 2014 19:58:33 +0000 (12:58 -0700)]
cameraservice: decrease zsl metadata queue size by 1

Zsl buffer needs to be longer than metadata queue to ensure that
oldest metadata can always find a match in buffer queue.
Since we don't want to add memory overhead, decrease metadata
queue size by one serves the same purpose.

bug 17264283

Change-Id: Ic53441cc29c98e57d3345f5845d92839d0ce6faf

9 years agoMerge "AudioPlayback: delay the post of EOS based on pending playout." into lmp-dev
Ronghua Wu [Wed, 27 Aug 2014 21:52:39 +0000 (21:52 +0000)]
Merge "AudioPlayback: delay the post of EOS based on pending playout." into lmp-dev

9 years agoAudioPlayback: delay the post of EOS based on pending playout.
Ronghua Wu [Wed, 27 Aug 2014 19:05:48 +0000 (12:05 -0700)]
AudioPlayback: delay the post of EOS based on pending playout.

Bug: 16840522
Change-Id: Icdc8888f5a8a77e2e5ebeb8a6934c7d79bd9e71a

9 years agoCameraService: Correct API2 error handling
Eino-Ville Talvala [Wed, 6 Aug 2014 21:32:02 +0000 (14:32 -0700)]
CameraService: Correct API2 error handling

- Add more error codes to the binder camera2 callbacks
- Translate HAL errors to callback errors
- When flushing, report failures for queued requests
- Treat stream config failure as nonfatal
- Send request errors when buffers aren't available for captures

Bug: 15524101
Bug: 14448494
Bug: 11272459
Bug: 17160301
Change-Id: I81aa54e805a9cce1cb8a6a9374549daa7666deb2

9 years agoMerge "Fix memory leak in getConnectionState" into lmp-dev
Marco Nelissen [Wed, 27 Aug 2014 17:58:14 +0000 (17:58 +0000)]
Merge "Fix memory leak in getConnectionState" into lmp-dev

9 years agoMerge "Fix AudioMixer MONO muted track handling" into lmp-dev
Andy Hung [Wed, 27 Aug 2014 03:41:29 +0000 (03:41 +0000)]
Merge "Fix AudioMixer MONO muted track handling" into lmp-dev

9 years agoMerge "NuPlayer: set controlledByApp to true when creating Surface." into lmp-dev
Wei Jia [Wed, 27 Aug 2014 03:29:59 +0000 (03:29 +0000)]
Merge "NuPlayer: set controlledByApp to true when creating Surface." into lmp-dev

9 years agoFix memory leak in getConnectionState
Marco Nelissen [Mon, 25 Aug 2014 22:58:39 +0000 (15:58 -0700)]
Fix memory leak in getConnectionState

Turns out having an sp<> point at the containing object doesn't really
work so well.

Bug: 17210991
Change-Id: I4bcb0c38adffc574d661f0772583357868f6c5b4

9 years agoMerge "Fix SoundPool lockup" into lmp-dev
Marco Nelissen [Tue, 26 Aug 2014 22:28:35 +0000 (22:28 +0000)]
Merge "Fix SoundPool lockup" into lmp-dev

9 years agoNuPlayer: set controlledByApp to true when creating Surface.
Wei Jia [Tue, 26 Aug 2014 22:24:43 +0000 (15:24 -0700)]
NuPlayer: set controlledByApp to true when creating Surface.

This fixes hang when trying to dequeue buffer from native window
followed by a flush.

Bug: 16303659
Bug: 17250931
Change-Id: Ib87ae558b020f5ce82b4192ec63339c93a72a2e9

9 years agoFix SoundPool lockup
Marco Nelissen [Tue, 26 Aug 2014 20:57:32 +0000 (13:57 -0700)]
Fix SoundPool lockup

NuPlayerDriver needs to update its internal state before calling
its listener, so that when the listener calls back into NuPlayerDriver,
NuPlayerDriver has the right state.

Bug: 14057920
Change-Id: I224882c427f5e3c9d4bf96c5d68075e235062401

9 years agoMerge "do string compare with mime immediately after we get the value" into lmp-dev
Chong Zhang [Tue, 26 Aug 2014 17:38:17 +0000 (17:38 +0000)]
Merge "do string compare with mime immediately after we get the value" into lmp-dev

9 years agodo string compare with mime immediately after we get the value
Chong Zhang [Tue, 26 Aug 2014 16:56:52 +0000 (09:56 -0700)]
do string compare with mime immediately after we get the value

Bug: 17210803
Change-Id: I4d20dd4b95d18251c18a371bd8f89b1320b38879

9 years agoFix AudioMixer MONO muted track handling
Andy Hung [Tue, 26 Aug 2014 00:15:29 +0000 (17:15 -0700)]
Fix AudioMixer MONO muted track handling

Incorrect handling caused "stereo" mode to be used.
Augmented error handling to print more debug info.

Bug: 17208475
Change-Id: I5bcaf0ba5bd5a4f7d4885f8cce43bbf42e5f1e6b

9 years agoMerge "Revert "disable AwesomePlayer for Ogg vorbis"" into lmp-dev
Rachad Alao [Mon, 25 Aug 2014 21:49:35 +0000 (21:49 +0000)]
Merge "Revert "disable AwesomePlayer for Ogg vorbis"" into lmp-dev

9 years agoRevert "disable AwesomePlayer for Ogg vorbis"
Rachad Alao [Mon, 25 Aug 2014 21:46:34 +0000 (21:46 +0000)]
Revert "disable AwesomePlayer for Ogg vorbis"

Temporarily revert commit 9b48f5d780757ffb81709df3633d06b62edaf39f as a workaround for b/17173673

Bug: 17173673
Change-Id: Iec52289e77485a58ce28cc515d6a5b8e7b2d328a

9 years agoMerge "NuPlayer: remember and resubmit CSDs after flush" into lmp-dev
Lajos Molnar [Mon, 25 Aug 2014 17:55:39 +0000 (17:55 +0000)]
Merge "NuPlayer: remember and resubmit CSDs after flush" into lmp-dev

9 years agoMerge "HTTPLiveSource: check for NULL before getTrackCount/Info" into lmp-dev
Robert Shih [Mon, 25 Aug 2014 17:04:13 +0000 (17:04 +0000)]
Merge "HTTPLiveSource: check for NULL before getTrackCount/Info" into lmp-dev

9 years agoNuPlayer: remember and resubmit CSDs after flush
Lajos Molnar [Thu, 21 Aug 2014 02:25:30 +0000 (19:25 -0700)]
NuPlayer: remember and resubmit CSDs after flush

Bug: 17118001
Change-Id: I09bbefd4c05de0db1c593e8d6d38859358a20ebb

9 years agostagefright: process CSD regardless of what port was last queued
Lajos Molnar [Sat, 23 Aug 2014 06:58:05 +0000 (23:58 -0700)]
stagefright: process CSD regardless of what port was last queued

CSD is always on the input port, so it does not matter which port
a buffer was last queued to.
Bug: 17216852

Change-Id: I6d00eb4bf3c2e9b9cc3c9918229de958bc465693

9 years agoMerge "MediaCodec: handle errors during flushing." into lmp-dev
Wei Jia [Sat, 23 Aug 2014 01:49:26 +0000 (01:49 +0000)]
Merge "MediaCodec: handle errors during flushing." into lmp-dev

9 years agoMediaCodec: handle errors during flushing.
Wei Jia [Wed, 20 Aug 2014 18:49:40 +0000 (11:49 -0700)]
MediaCodec: handle errors during flushing.

Bug: 17068327
Bug: 13133027
Change-Id: I06caf79b90ebf55d6d7561cb82516c0b6c66f0e4

9 years agoMerge "wait for flush to finish before returning setSurface" into lmp-dev
Chong Zhang [Sat, 23 Aug 2014 00:05:00 +0000 (00:05 +0000)]
Merge "wait for flush to finish before returning setSurface" into lmp-dev

9 years agoMerge "add buffering update to GenericSource" into lmp-dev
Chong Zhang [Fri, 22 Aug 2014 22:53:20 +0000 (22:53 +0000)]
Merge "add buffering update to GenericSource" into lmp-dev

9 years agowait for flush to finish before returning setSurface
Chong Zhang [Fri, 22 Aug 2014 22:35:28 +0000 (15:35 -0700)]
wait for flush to finish before returning setSurface

Bug: 17187598
Change-Id: I091219e57158a4532044ca49342b57277d6ecb15

9 years agoMerge "ACodec: handle errors related to native window." into lmp-dev
Wei Jia [Fri, 22 Aug 2014 21:53:39 +0000 (21:53 +0000)]
Merge "ACodec: handle errors related to native window." into lmp-dev

9 years agoACodec: handle errors related to native window.
Wei Jia [Wed, 20 Aug 2014 21:30:09 +0000 (14:30 -0700)]
ACodec: handle errors related to native window.

Bug: 17068327
Bug: 13133027
Change-Id: I9875e524222a10d1be26be5a84b9633b4aaeb210

9 years agoMerge "NuPlayerDriver: fix current position for stop and pause." into lmp-dev
Wei Jia [Fri, 22 Aug 2014 21:20:59 +0000 (21:20 +0000)]
Merge "NuPlayerDriver: fix current position for stop and pause." into lmp-dev

9 years agoMerge "move cache prefill to GenericSource's message handler" into lmp-dev
Chong Zhang [Fri, 22 Aug 2014 21:01:40 +0000 (21:01 +0000)]
Merge "move cache prefill to GenericSource's message handler" into lmp-dev

9 years agoMerge "print warning if offset != buffer size" into lmp-dev
Chong Zhang [Fri, 22 Aug 2014 21:01:29 +0000 (21:01 +0000)]
Merge "print warning if offset != buffer size" into lmp-dev

9 years agoMerge "Camera API1: remove unnecessary buffer count check" into lmp-dev
Zhijun He [Fri, 22 Aug 2014 19:27:18 +0000 (19:27 +0000)]
Merge "Camera API1: remove unnecessary buffer count check" into lmp-dev

9 years agoadd buffering update to GenericSource
Chong Zhang [Fri, 22 Aug 2014 00:48:26 +0000 (17:48 -0700)]
add buffering update to GenericSource

Bug: 17182378

Change-Id: Ib86f3f522d7ea635489edd2b512adb7f4b27e381

9 years agoCamera API1: remove unnecessary buffer count check
Zhijun He [Fri, 22 Aug 2014 18:28:18 +0000 (11:28 -0700)]
Camera API1: remove unnecessary buffer count check

This check doesn't work with ZSL use case. Since the ZSL is both an input and
output stream, When an input buffer is acquired, checking the handout buffer
count for that stream could trigger false alarm when all the output buffers
are sent to hal, instead, we should wait for an output buffer to return.

Bug: 17188380
Change-Id: I7eb166eb49d2f063189d993195ef389d2cf4f2b4

9 years agoNuPlayerDriver: fix current position for stop and pause.
Wei Jia [Thu, 21 Aug 2014 01:21:11 +0000 (18:21 -0700)]
NuPlayerDriver: fix current position for stop and pause.

When start() is called after EOS, it means restarting from the beginning of the stream.
Fix racing conditon on accessing some members.
Report seekTo position before any notifyPosition is called.

Bug: 17031731
Bug: 17178928
Change-Id: I008b827288cf28d39e2a943373fe1e5d7d6c2595

9 years agostagefright: allow to resubmit CSDs for SoftAAC2
Lajos Molnar [Fri, 22 Aug 2014 02:19:08 +0000 (19:19 -0700)]
stagefright: allow to resubmit CSDs for SoftAAC2

Bug: 17118001
Change-Id: I45469b9aa6146edf3265b0f05f5ce3592b5daca6

9 years agoSoftAAC2: allow reconfiguring output after multiple output buffers
Robert Shih [Thu, 21 Aug 2014 01:17:03 +0000 (18:17 -0700)]
SoftAAC2: allow reconfiguring output after multiple output buffers

Bug: 17134697
Change-Id: Iaa8bdccbf1a8ccd3f898e48cfd22a0a443710fdd

9 years agoMerge "Camera: fix triggerId logic" into lmp-dev
Yin-Chia Yeh [Fri, 22 Aug 2014 02:53:51 +0000 (02:53 +0000)]
Merge "Camera: fix triggerId logic" into lmp-dev

9 years agomove cache prefill to GenericSource's message handler
Chong Zhang [Wed, 20 Aug 2014 20:09:58 +0000 (13:09 -0700)]
move cache prefill to GenericSource's message handler

This allows prepareAsync to be terminated by reset promptly.

It also makes it easier to do buffer update as GenericSource
can access the cache status now.

Bug: 16892748
Bug: 17182378

Change-Id: Ia55c04a810fd805041cb2025f6739afa5120b5ed

9 years agoMerge "Fix SoundPool and MediaPlayerService buffer overflow" into lmp-dev
Andy Hung [Fri, 22 Aug 2014 00:33:24 +0000 (00:33 +0000)]
Merge "Fix SoundPool and MediaPlayerService buffer overflow" into lmp-dev

9 years agoFix SoundPool and MediaPlayerService buffer overflow
Andy Hung [Thu, 21 Aug 2014 00:37:59 +0000 (17:37 -0700)]
Fix SoundPool and MediaPlayerService buffer overflow

Overflow occurs when SoundPool sample tracks cannot
fit in the MediaPlayerService AudioCache buffer.

Unnecessary decoding occurred with AwesomePlayer and
an assert failure occurred with NuPlayer.  NuPlayerRenderer
is also tweaked to handle the latter case.

Bug: 17122639
Change-Id: I4d25d3e2c0c62e36a91da6bf969edabddc2ebbb0

9 years agoMerge "camera2: Fix CameraUtils orientation for front camera." into lmp-dev
Ruben Brunk [Thu, 21 Aug 2014 22:46:03 +0000 (22:46 +0000)]
Merge "camera2: Fix CameraUtils orientation for front camera." into lmp-dev

9 years agoMerge "camera: Configure streams immediately when API2 does configuration" into lmp-dev
Igor Murashkin [Thu, 21 Aug 2014 22:33:24 +0000 (22:33 +0000)]
Merge "camera: Configure streams immediately when API2 does configuration" into lmp-dev

9 years agoCamera: fix triggerId logic
Yin-Chia Yeh [Thu, 21 Aug 2014 21:27:44 +0000 (14:27 -0700)]
Camera: fix triggerId logic

Fix missing triggerId introduced by previous cleanup change.

bug 17108154
bug 17053130

Change-Id: Ifda55d5fbe992d98f335a8427aa256d78a856586

9 years agocamera2: Fix CameraUtils orientation for front camera.
Ruben Brunk [Thu, 21 Aug 2014 20:41:42 +0000 (13:41 -0700)]
camera2: Fix CameraUtils orientation for front camera.

Bug: 16637957
Change-Id: If6d213794a92eb60b8a333546670ca868b75e5fc

9 years agoMerge "camera: zsl: remove AF check if no focser presents" into lmp-dev
Yin-Chia Yeh [Thu, 21 Aug 2014 19:23:51 +0000 (19:23 +0000)]
Merge "camera: zsl: remove AF check if no focser presents" into lmp-dev

9 years agocamera: zsl: remove AF check if no focser presents
Yin-Chia Yeh [Thu, 21 Aug 2014 16:17:35 +0000 (09:17 -0700)]
camera: zsl: remove AF check if no focser presents

If there is no focuser, don't check AF state while picking ZSL
candidate frames.

bug 17164077

Change-Id: Ib56e260249dcfb1b3bafea22abeb3abeae4e2c1a

9 years agoMerge "NuPlayerDriver: include lapsed time when reporting current position." into...
Wei Jia [Thu, 21 Aug 2014 00:49:54 +0000 (00:49 +0000)]
Merge "NuPlayerDriver: include lapsed time when reporting current position." into lmp-dev

9 years agoNuPlayerDriver: include lapsed time when reporting current position.
Wei Jia [Wed, 20 Aug 2014 22:14:44 +0000 (15:14 -0700)]
NuPlayerDriver: include lapsed time when reporting current position.

Bug: 17031731
Change-Id: I01962ee9194bdaa9e8ed1a51abbf365733be3c85

9 years agodisable AwesomePlayer for Ogg vorbis
Chong Zhang [Wed, 20 Aug 2014 20:58:34 +0000 (13:58 -0700)]
disable AwesomePlayer for Ogg vorbis

Bug: 17108024

Change-Id: I0a970e6476d0f739e65d2200d0f5220dee8d36ef

9 years agocamera: Configure streams immediately when API2 does configuration
Igor Murashkin [Tue, 19 Aug 2014 23:19:59 +0000 (16:19 -0700)]
camera: Configure streams immediately when API2 does configuration

This makes the configuration more eager (no more waiting until the first
request) and also allows any errors to immediately be sent back to the
client.

Bug: 16629195
Change-Id: I0c365bc8f760466916dcc089217a43c43f9f4c9d

9 years agoMerge "Fix typo in comment" into lmp-dev
Marco Nelissen [Wed, 20 Aug 2014 20:33:44 +0000 (20:33 +0000)]
Merge "Fix typo in comment" into lmp-dev

9 years agoFix typo in comment
Marco Nelissen [Wed, 20 Aug 2014 19:46:47 +0000 (12:46 -0700)]
Fix typo in comment

Bug: 14057920
Change-Id: I51c4d47b9e175ef789ed3c51d59c9eda77edc1e0

9 years agoMerge "disable AwesomePlayer for Ogg vorbis" into lmp-dev
Chong Zhang [Wed, 20 Aug 2014 23:00:35 +0000 (23:00 +0000)]
Merge "disable AwesomePlayer for Ogg vorbis" into lmp-dev

9 years agoprint warning if offset != buffer size
Chong Zhang [Wed, 20 Aug 2014 01:07:08 +0000 (18:07 -0700)]
print warning if offset != buffer size

Bug: 17110981
Change-Id: Iacceca203372f4c06ff5ef7ce98edd5554727b64

9 years agoMerge "NuPlayer: use generation to detect stale requests from old decoders." into...
Wei Jia [Tue, 19 Aug 2014 18:52:03 +0000 (18:52 +0000)]
Merge "NuPlayer: use generation to detect stale requests from old decoders." into lmp-dev

9 years agoNuPlayer: use generation to detect stale requests from old decoders.
Wei Jia [Wed, 6 Aug 2014 18:24:07 +0000 (11:24 -0700)]
NuPlayer: use generation to detect stale requests from old decoders.

Bug: 14955925
Bug: 16303659
Bug: 16467066
Bug: 13133027
Change-Id: I3e66b25b2302c0eb795361629b03bf2e96ed34e4

9 years agomerge in lmp-release history after reset to 1b786a35ddd072765348eee2bffa2009c1b14da3
The Android Automerger [Tue, 19 Aug 2014 13:10:44 +0000 (06:10 -0700)]
merge in lmp-release history after reset to 1b786a35ddd072765348eee2bffa2009c1b14da3

9 years agoMerge "handle error during flush in MediaPlayer.reset()" into lmp-dev
Marco Nelissen [Wed, 20 Aug 2014 20:16:59 +0000 (20:16 +0000)]
Merge "handle error during flush in MediaPlayer.reset()" into lmp-dev

9 years agohandle error during flush in MediaPlayer.reset()
Marco Nelissen [Mon, 18 Aug 2014 23:13:03 +0000 (16:13 -0700)]
handle error during flush in MediaPlayer.reset()

If there was an error during the flush phase of a reset, then the
reset would never complete. We now make sure the MediaCodec moves
to the right state in this case, and that NuPlayer cleans up and
resumes the rest of the reset after a failed flush.

Bug: 16955082
Change-Id: Ied61136871a9fcdffcc80647fa2bba64a926ac2a

9 years agoMerge "Fix NuPlayer deadlock" into lmp-dev
Marco Nelissen [Wed, 20 Aug 2014 19:44:54 +0000 (19:44 +0000)]
Merge "Fix NuPlayer deadlock" into lmp-dev

9 years agoFix NuPlayer deadlock
Marco Nelissen [Wed, 20 Aug 2014 16:44:44 +0000 (09:44 -0700)]
Fix NuPlayer deadlock

Mutexes can't be locked recursively. This would cause a seek in the prepared
state to deadlock

Bug: 14057920
Change-Id: Ifb5e25f24450b7e5f71611a8ee2bdba45dba70a7

9 years agoMerge "StagefrightRecorder: add VIDEO_ENCODER_VP8 case in setupVideoEncoder" into...
Robert Shih [Wed, 20 Aug 2014 18:42:28 +0000 (18:42 +0000)]
Merge "StagefrightRecorder: add VIDEO_ENCODER_VP8 case in setupVideoEncoder" into lmp-dev

9 years agoStagefrightRecorder: add VIDEO_ENCODER_VP8 case in setupVideoEncoder
Robert Shih [Wed, 20 Aug 2014 17:51:07 +0000 (10:51 -0700)]
StagefrightRecorder: add VIDEO_ENCODER_VP8 case in setupVideoEncoder

Bug: 16329805
Change-Id: Ibc80cdeb1958f739dd67b65e57f6b7cc551a9db3

9 years agoMerge "Allow audio and video flushed separately." into lmp-dev
Wei Jia [Tue, 19 Aug 2014 23:08:17 +0000 (23:08 +0000)]
Merge "Allow audio and video flushed separately." into lmp-dev

9 years agoMerge changes I116ee711,Ieb3fc61f into lmp-dev
Igor Murashkin [Tue, 19 Aug 2014 23:06:54 +0000 (23:06 +0000)]
Merge changes I116ee711,Ieb3fc61f into lmp-dev

* changes:
  camera: hal3: Remove register_stream setprop check
  camera: Allow shutter sounds to be disabled from camera2 api

9 years agoMerge "NuPlayerRenderer: allow flush() to be called multiple times." into lmp-dev
Wei Jia [Tue, 19 Aug 2014 22:53:35 +0000 (22:53 +0000)]
Merge "NuPlayerRenderer: allow flush() to be called multiple times." into lmp-dev

9 years agoAllow audio and video flushed separately.
Wei Jia [Tue, 29 Jul 2014 17:22:53 +0000 (10:22 -0700)]
Allow audio and video flushed separately.

Bug: 14955925
Bug: 16303659
Bug: 16467066
Bug: 13133027
Change-Id: I956a9f55513970115119c7639a5e33b39e6d2f55

9 years agocamera: hal3: Remove register_stream setprop check
Igor Murashkin [Tue, 19 Aug 2014 22:14:29 +0000 (15:14 -0700)]
camera: hal3: Remove register_stream setprop check

camera3_device_t::register_stream must always be NULL in HAL3.2+ cameras

Bug: 13914251
Change-Id: I116ee71135a827c8b4db61cd91f56ba56da3f0ef

9 years agocamera: Allow shutter sounds to be disabled from camera2 api
Igor Murashkin [Tue, 19 Aug 2014 21:53:08 +0000 (14:53 -0700)]
camera: Allow shutter sounds to be disabled from camera2 api

When using the connectLegacy binder interface (available only
through an @hide java api), then consider the camera to be in the
camera2 api legacy mode.

In legacy mode, allow disabling the shutter sound unconditionally.

Bug: 17109582
Change-Id: Ieb3fc61ff111d792cc657c018e278349c25472cf

9 years agoNuPlayerRenderer: allow flush() to be called multiple times.
Wei Jia [Mon, 18 Aug 2014 18:29:50 +0000 (11:29 -0700)]
NuPlayerRenderer: allow flush() to be called multiple times.

Also fix racing condition on accessing some members.

Bug: 16982307
Bug: 13133027
Change-Id: I0d4a605146e24ad7396a07369d501593cad73f41

9 years agoMerge "cameraservice: update supportedFocusModes for api1" into lmp-dev
Yin-Chia Yeh [Tue, 19 Aug 2014 15:45:13 +0000 (15:45 +0000)]
Merge "cameraservice: update supportedFocusModes for api1" into lmp-dev

9 years agoHTTPLiveSource: check for NULL before getTrackCount/Info
Robert Shih [Tue, 19 Aug 2014 00:17:03 +0000 (17:17 -0700)]
HTTPLiveSource: check for NULL before getTrackCount/Info

The effect is MediaPlayer returns a 0-length array when getTrackInfo is
called before PREPARED state.

Bug: 12029173
Change-Id: Ib3a48525eac07b04a2ff88ce199d66dcc61c1641

9 years agoMerge "camera: Fix setParameters for Preview FPS single/range values" into lmp-dev
Eino-Ville Talvala [Tue, 19 Aug 2014 00:41:30 +0000 (00:41 +0000)]
Merge "camera: Fix setParameters for Preview FPS single/range values" into lmp-dev

9 years agocamera: Fix setParameters for Preview FPS single/range values
Igor Murashkin [Wed, 19 Mar 2014 01:15:23 +0000 (18:15 -0700)]
camera: Fix setParameters for Preview FPS single/range values

As a workaround, duplicate CameraParameters into CameraParameters2 to
prevent ABI break for some camera HALs that directly link into
CameraParameters.

CameraParameters2 implements the real fixes needed in the framework,
while CameraParameters is left in to satisfy older camera HALs.

Bug: 12609188
Bug: 16654949
Change-Id: I82ea6f5de2183dd046d4bf5683600c97f37ab4da

9 years agoFix memory access error due to race during fast track removal
Glenn Kasten [Mon, 18 Aug 2014 22:51:59 +0000 (15:51 -0700)]
Fix memory access error due to race during fast track removal

Bug: 16205169
Change-Id: Ie15ec2a737b6ddd16b2d26030d01564ff70177f5

9 years agoMerge "stagefright: Fix thumbnail generation for some clips." into lmp-dev
Ronghua Wu [Tue, 19 Aug 2014 18:34:06 +0000 (18:34 +0000)]
Merge "stagefright: Fix thumbnail generation for some clips." into lmp-dev

9 years agostagefright: Fix thumbnail generation for some clips.
Ronghua Wu [Mon, 4 Aug 2014 23:59:20 +0000 (16:59 -0700)]
stagefright: Fix thumbnail generation for some clips.

Fix thumbnail generation for clips that include an immediate resolution change:
* Enable dynamic resolution change, when port settings may change while we have
  filled buffers.
* Handle the case when port settings change happens right after stop is called.

Bug: 16210021
Change-Id: I8b2c48365d74ce7551f000a1f4b0711647a9796f