[AwesomePlayer] Fix for S3D video playback.

S3d mode is not turned on when videos are not played
from the start. That is because the s3d frame layout
information is in the beginning of the video stream.
That is easily visible when you start a s3d movie in
the Gallery, pause it, go to home screen and then
reopen the Gallery again. The paused movie is not in
s3d mode any longer.

A workaround for this situation is to do an extra read
when the first read is from offset different from the
start of the stream. This makes the decoder return
the extra data containing s3d layout information.

Fixes bug OMAPS00270286

Change-Id: I4086e95db6cfa2b231f46e98af98e964db13fe86
Signed-off-by: Ivaylo Todorov<x0177393@ti.com>
Signed-off-by: Devaraj Rangasamy <dev@ti.com>
AudioFlinger: mOutput->stream->get_latency must be inside mLock scope

Otherwise lock-ups during simultaneous playback of multiple
audio streams can happen.

Change-Id: Idd392761e50c1754f9740b7151fc90396542b909
Fix MTS failure in VE becase of Mediabuffer intialisation

After release of MediaBuffer the pointer is not reset to NULL.
This is causing a problem in VideoEditorStressTest.

Change-Id: I960e17e4bdfccb42d52685b2d53ed663416912e7
Signed-Off-By: Rajesh Vandanapu<rajeshv@ti.com>
Signed-off-by: Ruslan Shymkevych <x0153342@ti.com>
camera: remove redundant QCOM_HARDWARE ifdefs

Change-Id: I9bccd7cb2fd3a7a7b3bda8002cf57ad21ce6b37e
camera: add missing symbols for HTC 8660 camera HAL

Forward port of patch from HTC 8660 missing symbols patch from ICS.

Change-Id: I9ed27e3bc1b0d63c437b3cf9518b36e0da546e81
AudioFlinger: Disable AUDIO_WATCHDOG to reduce high audio power

- AudioWatchDog daemon wakes up the app processor every 50ms.
  This causes audio power to increase by ~3.5-4mA.
- Disable AUDIO_WATCHDOG to reduce high audio power.

CRs-fixed: 386481

Change-Id: Id8f038bd082b9aa711411db33c5302e1d12cadd6
libstagefright: Enable suspension policy

- ADSP doesn't enter suspend state after audio playback.
- No support for suspension policy in stagefright.
- Enable suspension policy in stagefright to allow
  component to move into suspend mode.

CRs-fixed: 386381
(cherry picked from commit 735bc83e32e64af25a6163c07e2039eb4354ff00)

Change-Id: If32bfc63bbb25563e14b128712cc90639b15dc5b
Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org>
Merge "camera: remove redundant QCOM_HARDWARE ifdefs" into jellybean
Merge "camera: add missing symbols for HTC 8660 camera HAL" into jellybean
Merge "libstagefright: Enable suspension policy" into jellybean
CameraParameters: Underp non-qcom hardware

Move setPostviewSize to QCOM_HARDWARE

Change-Id: I830d1385be0e784f9fcb6dc40f014bea36b4b65b
Merge "Fix MTS failure in VE becase of Mediabuffer intialisation" into p-jb-release
fixup for non QCOM targets

*potential memory leaks in MediaPlayerService
*fix ifdef placement in AudioTrack
*duplicate entry in MPEG4Extractor
*(int)mChannelCount == mReqChannelCount being checked twice in AudioFlinger
*pLatencyMs not getting assigned in AudioFlinger
*CAMERA_MSG_FOCUS_MOVE was lost in CameraService

Change-Id: I349a25078148d25f43bf5666fe04b84017b7daa7
Merge branch 'jellybean' of git://github.com/CyanogenMod/android_frameworks_av into jellybean
Merge branch 'p-jb-release' of git://git.omapzoom.org/platform/frameworks/av into jellybean