Revert "audio: Always offload audio for AV"

 * Framework offload path is too racy and the root issue this was
   addressing is resolved now.

This reverts commit 6f03c6068a26636f68038402a84d371f64d54ddf.

Change-Id: I35f9a5b2a613bdff056630dffeecd7117657cc85
audio/msm7630: Introduce LowPowerAudio.

Change-Id: I77cadf3c028bc9dead0b0887c308f7394d4b14f2
audio/msm7630: Add support for audio effects for LPA clips

Add support for audio effects for LPA clips on msm7630

(cherry picked from commit 176dd4c4f0a926fd463cf2d4cf1051327a75598b)

Conflicts:

	msm7630/AudioHardware.cpp

Change-Id: Ibfa9376dae14bc772fa0cb90e2bae3309a684fc8
7x30 : Port heap mask change to ion

-mp3 clips fails to play intermittently.
-ION fails to register with the driver.
-Heap mask field passes as argument at allocation
time to specify ion heap.

CRs-Fixed: 444197

Change-Id: I35b7f162c906b856b7b4f5ee2270cd10256144bf
msm7x30: Add missing get_supported_devices in HW HAL

Change-Id: Idb90528899ae3d5a6d037f1af0544225faa02cc6
msm7x30: Fix routing for all AudioSessionOut types

 * Pass the new output device around so that we're not always just using
   the one in the base class. This was preventing proper routing for
   all output streams.

Change-Id: I07a6bf4cf15c7b6bea310c2cd593ca494a89ca5f
audio/msm7630: Add latency support for LPA

-Audio loss for few seconds on headset connection.
-Stream is unmute in checkDeviceMuteStrategies before device switch
occurs.
-Increase delay in tempMute to ensure unmuting happens after device
switch happens. Also change latency for LPA to correct value similar
to that of hpcm.

Change-Id: I539a4726f6b9d53bbfdc5f92a8801d5f14c360eb
CRs-Fixed: 448355
audio/msm7630 : Stability issue with LPA play back.

- ANR is observed during LPA playback when there is song switch for
  every few seconds
- The song switch does not happen when the song is played till the end
- Native crashes are observed during rapid seek, next and previous
  song switch operations. There is some race condition between write and
  flush which results in adding a buffer multiple times to empty queue.
  This tries to free the buffer multiple times during reset and results
  in native crash. Fix this issue by adding proper mutex in write and
  flush calls which synchronizes these operations and avoids crashes.
  After Pausetimeout, reset is called due to which EOS is posted
  to observer. This results in start or reset operation on a closed
  sink leading to crashes. Avoid posting EOS if reset is already
  called.

Change-Id: Ie171d86f39fc4484710002c4940496dc90fbb05a
CRs-Fixed: 463272
msm7x30: Update device API

Change-Id: I15bd511c3b753dc4ce076a482095e675f601c1ec
msm7x30: Fixup ifdefs so LPA playback works

Change-Id: Ia389f2c3905ba5062933912150b856e3464c2e13
Revert "msm7x30: Update device API"

 * Causes some routing issues, for example when using GEL
   and listening to music via headset, audio is routed to
   speaker when jumping to home screen from Apollo. Probably
   missing some additional changes, so revert this for now.

This reverts commit 75afa6a8a1a928f861280b640222f35e64929995.
msm7x30: Various routing fixes ported from msm8660

Change-Id: I1ef642bb565b8d4dd729800f976770da84ae6b79
legacy/msm7x30: Change default audio sample rate

Return Host PCM interface sample rate based on
AF resampler quality value.

(cherry picked from commit fbaba9b736d0b77c989c80946ffb7d105641c07d)

Change-Id: I204f423051d97be5ff4dfa9805406eca61a25966
legacy/msm7x30: Fix audio resampler check

https://github.com/CyanogenMod/android_frameworks_av/commit/ac6020508acedd316391dee42329040bf45f8d90 changed 255 to 4
legacy/msm7x30: Silence logcat spam