libstagefright: Add support for custom LPA buffer size in legacy LPAPlayer

     - on msm7x27a with bootloader heap for lpa audio during audio playback with,
       DSP Manager effects enabled there is a lot of stuttering with the default buffer size.
       with bl heap we need buffer size of 480, but that breaks audio at in cm. So we have,
       to use buffer size of 512 to get audio working but it makes stuttering as mentioned.
       so add support for a custom buffer size so we can use 480 buffer size.

Change-Id: Ib4b5222b4b64d42288e0ad5c95910e385d172374
libstagefright: Enable meta mode for 7x27a video encoder

msm7627a family of chipsets supports only one input frame at
one time. camera expects the input frame to be released before
sending another frame. so send one input buffer and available
output bufefrs to video encoder component. Release the input
buffer to camera (to get another frame) after receiving input
frame done callback from video encoder component.

Change-Id: I8fbc911f046ff7e2a3047dd65d8c09ac2d8608e2
libstagefright: build legacy lpa for 7x27a
add sony cam pram
Merge branch 'cm-11.0' of github.com:CyanogenMod/android_frameworks_av into cm-11.0
Merge branch 'cm-11.0' of github.com:CyanogenMod/android_frameworks_av into cm-11.0
Merge branch 'cm-11.0' of github.com:CyanogenMod/android_frameworks_av into cm-11.0
Frameworks/Av: Add SP_ADRENO support for encoder

SP_ADRENO color format support is added for
SW encoder. This format is supported by GPU
natively. Using SP_ADRENO avoids memcpy and
color conversion operations currently performed
in GPU for normal semi planar format and improves
SW encoder performance.

Change-Id: I14a802e1ccf743063f8d2fdcf163e576eac36c29
Merge branch 'cm-11.0' of github.com:CyanogenMod/android_frameworks_av into cm-11.0
Merge branch 'cm-11.0' of github.com:CyanogenMod/android_frameworks_av into cm-11.0
Merge branch 'cm-11.0' of github.com:CyanogenMod/android_frameworks_av into cm-11.0
Merge branch 'cm-11.0' of github.com:CyanogenMod/android_frameworks_av into cm-11.0
Merge branch 'cm-11.0' of github.com:CyanogenMod/android_frameworks_av into cm-11.0
Merge branch 'cm-11.0' of github.com:CyanogenMod/android_frameworks_av into cm-11.0
Merge branch 'cm-11.0' of github.com:CyanogenMod/android_frameworks_av into cm-11.0
Merge branch 'cm-11.0' of github.com:CyanogenMod/android_frameworks_av into cm-11.0
Revert "camera: Add a few missing legacy camera params."

Either we keep legacy stuff, or remove ALL parts
of it, but not partly leaving dead code.

This reverts commit 12c66985ae4177feb73bbcc709ef80a18660ebec.

Change-Id: I0bbd47b0328114672f798864d04f2e9bdaa1f91e
Merge branch 'cm-11.0' of github.com:CyanogenMod/android_frameworks_av into cm-11.0
libstagefright: Fix ANR issue in HTTP Streaming

The root cause of the ANRs during this usecase is the
blocking nature of the read calls on the network data
source due to which application thread gets blocked on
some lock in framework.

Fixes ANR during seek/pause during HTTP streaming
* Non-blocking read implmentation for NuCachedSource2
* Other framework related changes to handle underruns

Change-Id: Ief280b7e23727606746e1ca2bf4caa4a3044b7bc
Add 2 APIs (suspend/resume) in MediaPlayer

- API:suspend() will just pause the player and release all the decoders
  to replace release() which will release the whole player
- API:resume() will just init the decoders again,
  then start() will be called to start to play the streaming
- Add a check in AwesomePlayer::onVideoEvent()
  to make sure the first seek operation will always seek the next i-frame

Change-Id: Ie4c82906a2a056378119921a656128ebdc1007c4