audio policy: fix gapless playback when effects enabled

Do not allow offloading if one non offloadable effect is enabled. This prevents from
creating an offloaded track and tearing it down immediately after start when audioflinger
detects there is an active non offloadable effect.
Not doing so breaks gapless playback because AwesomePlayer will always be able to open
an offloaded track which will not be compatible with the previous PCM track and
Audiosink::open() will not recycle it.

Bug: 11181933.
Change-Id: I6d163806849d9093b9ec701ba8e8c1ccb658e3c8
merge in klp-release (no-op)
Merge "audio policy: fix gapless playback when effects enabled" into klp-dev
audio policy :Added EVRC and QCELP for 7x30 HAL compilation

Change-Id: I46ac52fa5e04edf1d55302f3868427fa35b378d7
audio_policy: Add EVRCB & EVRCWB formats for msm7x27a

Needed to compile audio hal from caf

Change-Id: Ibac3cf0b58de0bb6ee621e0498322318464492a0
Merge remote-tracking branch 'cm/cm-11.0' into HEAD
Wimax: Squashed commit of the following:

SQN: WiMAX: initial import of Sequans WiMAX hardware control interface
wimax: LOG* -> ALOG*

Change-Id: I0b9d1cf996ef648b7b89930163b15dc8ab81e1c2
libhardware_legacy: Add support for DirectTrack

-Add new APIs to AudioStreamOut class.
-Add audio output flags to openOutputStream.

(cherry picked from commit c2238e581c815dbf33625011ad32a97067d1ab52)
(cherry picked from commit 87d4ab5eee4124403012cb3e5440d36eb0df9586)

Conflicts:
	include/hardware_legacy/AudioHardwareInterface.h

Change-Id: I8a1f51542658655b254f629b648ac6b1bb0113f3
libhardware_legacy: Add MSM specific flags, devices and channels.

- Add support for MSM flags, devices and channels

Change-Id: I88ff548a4ac0629ea80a0103648b5d8f7acfd7da
(cherry picked from commit 47fc1126a6d6d4e7716b6ca65490550744c909f2)
(cherry picked from commit dc8add29ede96579400e07721ee2510cf40da629)
audio: fix no audio when playing dtmf tones

AUDIO_OUTPUT_FLAG_DIRECT is passed for isCompatibleProfile()
which would match incall music profile even for regular dtmf
tones. As a result output stream for incall music case is
selected. Fix by passing the input parameter flags along
with AUDIO_OUTPUT_FLAG_DIRECT.

CRs-fixed: 568696
Change-Id: Ie5a11f21a01c65fb07e9ae1268cf03b6744f9f6e
libhardware_legacy: Add property for A-V playback in offload mode

Add a and check for property for enabline tunnel audio video
playback.

Change-Id: I8ebbfe106feac4a991de05a0db79ac64493d0129
audio: fix no audio playback issue in recorder app

When audio clips recorded using voice recorder app is played,
openoutput() in audio policy manager is called with flags 0 and
will match the incall music profile and try to open incall music
direct output stream. Fix by looking for direct output profiles
only when AUDIO_OUTPUT_FLAG_DIRECT is set in the flags.

Change-Id: I3f6fdec1dfdc4c7642d308108199369cfc6d2409
libhardware_legacy: Add ifdefs for non-QCOM hardware

Change-Id: Iae00232cd401aa748e9ae3d941427d13c6aa51b6
Define and use DRC-specific volume curves when applicable

Add support for property defining whether a DRC on the speaker path
 is enabled and will boost soft sounds.
Define new volume curves with more attenuations than existing ones
 to compensate for DRC-induced boost on sonification sounds to
 provide a more "linear" control to the user over the applied volume.

Bug 11600699

Change-Id: If23dd097a8b9b5ebb61e75dd8512ff75e63ba899
Merge tag 'android-4.4.1_r1' into HEAD

Android 4.4.1 Release 1

Conflicts:
	audio/AudioPolicyManagerBase.cpp

Change-Id: I4671ff8c7de55cbe0edd14c5bf6a71671e61907c
AudioPolicyManagerBase : MUTE_TIME_MS reduced to 500ms

 - Some streams are muted while the audio path
   is switched for different device switch like
   BT, Headset, AOS and HDMI etc. Audio drop is
   observed for more than 3-4 secs. So tuning
   this macro for better results.

Change-Id: I8bb0b6f5eb5e526b755fce97f31a3f8f6dd22064
CRs-fixed: 572654
audio :Make isVirtualInputDevice as protected method

- startInput is overridden in AudioPolicyManagerALSA and is
  making a call to isVirtualInputDevice which is private in
  AudioPolicyManagerBase.
- Make isVirtualInputDevice as protected in base class so
  that it can be called from the derived class

Change-Id: I7e499b0c06f9412bc191179d497298cd57af2c3a
CRs-Fixed: 591788
Merge pull request #3 from Evervolv/kitkat

Evervolv-Kitkat