msm8660: use policy manager from ALSA

Change-Id: I94db1a64072e94f3d85dd0fcf15565f3dd673104
msm7627a/msm8660: Port heap mask change to ion

Heap mask field passes as argument at allocation
time to specify ion heap.

Change-Id: I9b77a8bb926d938b3cc023b0de2e3ab49455155a
audio/msm8660: Add support for Tunnel Playback.

Add a new audiosession to support Tunnel playback.

Change-Id: Ic3663037f5c62b23a8a448ed5a57f9f4de5c3231
audio/msm8660: Fix for pause and resume failure.

- Resume fails if the sequence is pause,flush & resume.
- Resume of audio HAL is not resulting in driver resume.
- When the music player is paused, seek and resume fail
  this is due to the functionality built around 'mseeking',
  fix is to remove the variable

Change-Id: I2e0901dd17e86ec29435847f2ac08c761e4c4512
msm8660: Update audio policy

 * Remove hack on VOIP device
 * Set A2DP samplerate to 48KHz

Change-Id: I52f0ebe341847a9603594920bef5e71f4325fbbe
msm8660: Use a larger sample buffer for LPA

Change-Id: I292b30ae2df64297b4585181bfcd06f231430b01
msm8660: 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
msm8660: Additional routing fixes

 * Various cleanups.

Change-Id: I9019d46b1268a05c6c743e40e9198b6b4898b0de

Conflicts:
	msm8660/AudioHardware.cpp
	msm8660/AudioHardware.h
alsa_sound: Improve USB device detection

 * Samsung's proprietary dock was hijacking the routing when a USB audio
   device such as a DAC was connected in host mode.
 * Instead of blindly shoving stuff down a route that doesn't work for
   the dock case, check the switch in sysfs for the proprietary dock
   first.
 * Remove the DOCK_USBAUDIO define entirely and just wrap it up with
   everything else that SAMSUNG_AUDIO includes.

Change-Id: Id9ea2641b67c68a8b38d24aae88b186ee6e991f0
alsa_sound: Add support for sound card in Galaxy S4 Mini

Change-Id: I9ff14fa6cc1b1a0c5b2307f4f84dc42b378ae8c9