Revert "Fix media_profiles for legacy camera params"

This reverts commit a2e35d5446d87c90cf4a4d942f2371f2135483a5.
stagefright: Allow compatibility with ICS EGL for OMX

QCOM uses the OMX_QCOM_COLOR_FormatYUV420PackedSemiPlanar64x32Tile2m8ka
format for video buffers, which in ICS was "translated" into a different
gralloc format (0x108, HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED)

JB uses the same value for both the buffer format and the pixel format,
which the ICS Adreno libraries don't recognize. If using such libraries,
enable the conversion with the QCOM_ICS_COMPAT CFLAG

Change-Id: I85b50f193c25c88f4517677dd4a328a0c83f941c

Conflicts:
	media/libstagefright/OMXCodec.cpp

Conflicts:
	media/libstagefright/OMXCodec.cpp
Build fix

Change-Id: I7dfaf1b60e2005728db4439db4d32b35f82abb6d
frameworks - av: Cleanup mess in introduced with QCOM_LEGACY_OMX

This cleans up all the stuff not related to us which was introduced in the commits that introduce QCOM_LEGACY_OMX.

Change-Id: Idb5ba78b156d191fafd0a03bc7da533f11ef6b9b
Fix log spam: Failed to open libwvm.so

Bug: 7342813
Change-Id: I98852f036e4679a653723fc2bf1435d6e9d7d34c
Squashed commit of updates from CodeAurora

libstagefright: Add support for VC1 clips

- configure decoder in frame-by-frame or arbitrary mode
  based on the codec type.

Change-Id: I6404e5b7ee217045e6456f51f914dbd8a651d98a
CRs-Fixed: 432847

stagefright: Miscellaneous fixes for LPA and Tunnel playback

1. Fix for AV sync issue with Tunnel playback
APIs for returning correct timestamps were implemented
2. Crash while exiting TunnelPlayer
Check whether sink is open before flushing or closing it.
Check for mIsAudioRouted is good to know if we are closing it
3. Seekbar freezes after seek and pause
Check pause status before writing

Change-Id: Id8ab7b258e9c05b20e121bdf3c4dc30d519f6c15

frameworks/av: Add support for surround sound recording

- Add 5.1 channel as supported input channel

Change-Id: I50fcd87245c5c855ede8f09ea1a7c5be2e684640

stagefright: Add tunnel decode for amr-wb/wb+

When tunnel.decode is true, playback of AMR-WB
and AMR-WB+ uses tunnel decode.

Change-Id: Ic06cb3faaac18f605402c98a27cb4dfa4b7faee2

stagefright: Skip LPA if #channels > 2

Skip LPA for Multi channel playback

Change-Id: I5b97471ef55aea260d1c02db672eb4bd64c3edef
Fix typo

Change-Id: Ie0bd265de0c31ad82ec15bc7e8a3234804b79c07
Fix for logspam

Fix ligspam if we using old camera lib from Eclair and GB
For using this patch need add a CFLAG to board config
LEGACY_CAMERALIB

Change-Id: I044b7f0e515820ae36147a207275d5ff6bc24387
legacy omx: further cleanups

All this code is dead code which isn't used by anyone and makes debugging hellish.

Change-Id: I77767e11a58c78a529d562c703c6e5eda1b8266d

Conflicts:
	media/libstagefright/OMXCodec.cpp
Revert "legacy omx: further cleanups"

This reverts commit 1fef8369d73f8c9d2a913bed6f94307b901c9345.
Make proper choose of hardware QCOM libs

Change-Id: I7cb7b45f781b1400154555c9f14d2f89baf5dda4
Fix gralloc path

Change-Id: I8643b5b5ab6aed0567b31ff4a10bc4fd95cbdba7
legacy OMX: update and cleanup

Change-Id: I01fef44f969db9e34cddb05153bf392bf55f005e

Conflicts:
	media/libstagefright/OMXCodec.cpp
Dont forget for caf display variant

Change-Id: I30c22514b36e96570913a6c0e3fac1cbd200adb8
Prevent camera FC on Gio && Tass

To activate, set "CAMERA_FC_HACK := true" in device specific BoardConfig.mk

Should be cleaner to do in camerahal (I know) and if successfully done so I will revert this.

Might work for Rashed too.

Change-Id: Iacaa7bdde205db293acda4110798bd6a7603756f
stagefright: OMXCodec: Re-enable OMX.TI.Video.encoder's quirks

These have been around since early stagefright, and were dropped for
JB. Unfortunately, they're still necessary with for this encoder to
work.

Change-Id: I8a251bf195a24b166db7464a90a822d6e69b644d

libstagefright: Add support for the 720P OMAP3 encoders

Bring back some more OMAP code that was removed by Google in JB,
and a couple of omapzoom patches.
This may stop being necessary if TI publishes JB-specific OMAP3
code, but as long as we're using the ICS domx, these need to
be here
Change-Id: Ia29f8c9f9ed769ba07b09c07260486f6502841d6

libstagefright: Unbreak OMAP4 encoders

The "manual" construction of the h264 codec data is only needed
on OMAP3. Execution of this code on OMAP4 breaks the mpeg4 header
generation

Change-Id: I3ae52f2e685e2d9097796685c98dffa93cfa6430
Fix legacy OMX encoders

Ensure that a valid frame_rate is passed to the encoder, otherwise
encoding will fail.

Change-Id: Iaaa298496755ff405e393120973d1ed782f5d8f4
new system property media.ringtone.force_repeat

new system property 'media.ringtone.force_repeat' to be set in build.prop. Forces repeat of ringtone if tag ANDROID_LOOP is not set in .ogg file

Author: lagloose
Change-Id: I8d8f70ea3b20b1d8185689c7b4054a11134f9353
Simplify gralloc version selection

Change-Id: Ifdb8e1da6500fce12020a14b7967dafd5576712c
Disable hardware-accelerated thumbnailing mode (WIP)

Thumbnailing mode appears to be causing crashes with the avc codec.

Thumbnailing mode is triggered when indexing files in the Gallery app,
but it also appears that the camera uses the
OMX.qcom.video.decoder.avc codec in thumbnail mode when in
viewfinder/snapshot mode with certain cameraHAL versions (a bug)?

For an example of the camera crashing without this patch (Galaxy 5):
https://gist.github.com/4444260

This change fixes the camera & thumbnailing crashes, but the
root cause needs to be identified/fixed properly.

Change-Id: I9312e609e45d218163a8ee2c415a0a126bdbf3fe