audiopolicy: Add missing AV_ENHANCEMENTS flag

 * Fix all the audio :(

Change-Id: If41e2b2f1cba1c0ed24ef6ae06f9ede78081d834
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
Merge pull request #4 from CyanogenMod/cm-12.0

Cm 12.0