audioflinger: Bind new mixer code to the resampler property

Don't try to use the new mixer mode if af.resampler.quality is set,
since they're incompatible. It's recommended that devices switch
by dropping the property though.

Change-Id: I18179799361108776a3a1e051bc0e23cd480fa10
Revert "audioflinger: Bind new mixer code to the resampler property"

This reverts commit 9094602d5448482e63da2f56f8c637652a9e1a58.

Change-Id: I9f569082051916cd885c1bd140d5a2a766703407
audio: Do not delete PatchRecord before Peer is stopped

- PatchRecord is deleted before the Peer PatchTrack is completely
  stopped which is leading to a crash in getNextBuffer
- Fix is to delete PatchRecord and PatchTrack only after removing
  both of them from active tracks list

Change-Id: I8e982d9eece09c948ed448eb870d78830df1bfa8
nuplayer: Fix PCM offload turning on all the time

 * Remove the extra condition, since this will be set even if
   PCM offload was denied.

Change-Id: I8f33ef68562d8e057e7a86c5ae6187d0049bf3aa
libmedia: Add ICS AudioStreamType constructor

Needed for Samsung legacy camera libs.

Change-Id: If03d8525b55181ea20dc934dbcbfef85402c42c7
libmedia: Add legacy compatible overloads for some methods

These overloads are needed by Samsung legacy camera libs.

Change-Id: I12590b1e86c2e0fa9958c5baa714110ff77a5eec
av: Clean up QCOM build flags

 * Remove dead flags
 * Enable standard flags by default

Change-Id: I15b4743a2569360dcb5798f2f1d8f4390a68899a
libstagefright: ifdef the audio_defs.h include for QCOM_DIRECTTRACK

Devices that use BOARD_USES_LEGACY_ALSA_AUDIO do not use this file,
this was breaking build for all 8960 devices.

Change-Id: Ic0ae606615f7ccc72cef9836d52bfa7045f326ae
Camera: Support obtaining camera memory from MemoryHeapIon

* Exynos 5 devices want the ION file descriptor from MemoryHeapIon

Change-Id: I9e445cf24c15713f713181667e7b7caa1a96592e
Include more Samsung decoders to set native color format

Change-Id: I6be1517083ebe958c2a2984f22b9e9fc6dce3c9f
stagefright: Adjust confidence threshold for extended sniffers

 * Some sniffers return 0.2 for cases where they only find an audio
   track in some containers.
 * Change the comparison to also examine files right on this threshold.
 * This allows us to score ONE FUCKING HUNDRED PERCENT on the Antutu
   Video Test \o/

Change-Id: I78b6ab8a634771e0e290f669801f5b08d6a32a51
stagefright: Fix FFMPEG catchall decoders

 * Get this metadata properly flowing
 * Allows us to play tracks such as Apple Lossless :)

Change-Id: I2990b30eef5b672da339d24444424c61a43b85c2
stagefright: Increase raw codec buffer size

 * Enlarge the buffer to handle up to 6 channels of 32-bit data.
 * We should probably do this dynamically in the future.

Change-Id: Id1af10b52c4e71e811d0d034baf2d3f1388f4abd
Merge remote-tracking branch 'github/cm-12.0' into cm-12.0

Conflicts:
	services/camera/libcameraservice/Android.mk