Revert "alsa_sound: Issue with seek and write"

This reverts commit defd6746917024a7097229b6bcdff31656124ace.
Revert "alsa_sound: Fix for, "Music getting played after onpausetimeout""

This reverts commit ef80c33f05b0969a00a53ad3b248ff32178903fb.
alsa_sound: Miscellaneous fixes for LPA and Tunnel Mode playback

Fix for, "Music getting played after onpausetimeout"
flushing the buffers in case of onpausetimeout.

Change-Id: Ibbe146cb83ce864c86fdd137c35ad6545e83cdf4
alsa_sound: Add support for 8 channel for HDMI device

Playback of upto 8 channels is supported over HDMI device
Add support to enable the 8 channel on HDMI device

Change-Id: I2314f2ab47fd47c8d22c3d0b29e60724711f43ff
alsa_sound:Fix for no audio while playback on USB headset

- Currently LPA/Tunnel usecases have been reset in
  AudioStreamOutALSA file which is not correct.
- Fixed by moving the reset logic to AudiosessionOut file
- Also fixed no-audio issue when device switch happens between
  BT and USB headset

Change-Id: I4873d50d4a6cb40a2c5ee9e3387cc63c5ac447aa
alsa_sound: Fix for no audio in voice call over USB

-Issue: No audio in voice call over USB headset
-Rootcause:Phone strategy selects USB headset only
 if mPhonestate is not in IN_CALL mode
-Fixed by update the USB headset device in phone strategy
 irrespective of mPhonestate value

Change-Id: I111dc7e4225d10074ae55e841aebec8a7568cc64
CRs-Fixed: 434752
audio: add support for FM feature

- Enable FM flags in audio HAL
- Use new FM device enums from system/core
- Fix device_conv_table for new device and legacy
  device mapping
- Update AudioPolicyManagerALSA to support FM

Change-Id: I11d72035f0f52dd69eafe0a2a081cfc3b9ab26c5
alsa_sound: Decrease the tunnel buffer size to 256Kbytes

Decrease Tunnel buffer size to 256Kbytes.

Change-Id: Ib47d7551af8c3856e145d131010cc5fd2c218ce3
alsa_sound: Collection of fixes in HAL for EOS

-Handling of EOS, and triggering EOS was wrong
in TunnelPlayer. Seeking when EOS was posted
to the HAL was wrong. EOS should
not be posted till seek is complete
-Also, EOS should not be posted to
the app if we are seeking
-Player should wake up when seeked,
even after EOS was posted from player
to HAL
-Fixed this issue by cleaning up the code

Change-Id: Ia5dc43e0482bb7c714a7269574b5eed34efd6637
CRs-Fixed: 433346
CRs-Fixed: 432233
CRs-Fixed: 429868
alsa_sound: Miscellaneous fixes BT and USB playback

1. Fix for MO call delay during LPA playback
Fixed this issue by setting dealy to zero device is same as
previous device
2. Fix for no audio over BT after BT ON/OFF
Initilize ExtOutStream whenever doRouting is called
with Device BT/USB and also in AudioSessionALSA and
AudioStreamOutALSA
3. Avoid dead-lock in A2DP/USB
4. Fix for music mute after BT MO call
A2DPsuspended=false keypair has been taken care in setparameters
5. Fix for BT no audio while device switch
Fix this by storing previous output device, stop and start a2dp
playback only when device switch happens from combo device to
normal or otherway
6. Fix for no audio in a2dp playback
Fixed by acquire common lock before mExtOutCv signal has been
issued in startPlaybackOnExtOut function.
7.Fix to avoid MT call ringtone to earpiece
Fix this issue by selecting speaker in Phone strategy if not
in call.
8.Failed write deadlock in A2DB/BT_SCO
Fix:Put the write thread to sleep if write fails so that A2DP
stop get the lock

Change-Id: I83c7a0849899bfad6a47a3e347a91122e86f82a2

Conflicts:
	alsa_sound/AudioPolicyManagerALSA.cpp
alsa_sound: Fix audio not routed from Speaker to HDMI device

Issue: Audio is not routing to HD TV on Plug-out and Plug-in of
HDMI cable during audio or a/v decode.
Fix: Remove the routing to Speaker when HDMI is plugged out

Change-Id: I400c839a486ccb28b6501622cbbfed038ce911aa
CRs-Fixed: 429760
qcom_audio-caf: disable support for LPA playback on bluetooth.

current generation bluetooth do not support lpa playback
audio/msm7630: Initial commit for MR1 Audio bringup.

Changes include MR1 upgrades and Initial commit to bring up Audio

(cherry picked from commit 02292ff1a6409b280cdef99195d3ad3131c313f5)

Change-Id: Id7e993bfa5bd63aedf9fe74a011880731b9fe859
msm7630 : Propagate the flag value to status

Change-Id: I8fc46faa9e105c6be9b96c0f4c8b16fc1375121d
audio/msm7x30: Rename folder to CM naming standard

Change-Id: I6a2620a4daade6bae5cc5a5fc0e72e697f9808d9
audio/msm7x30: Fix build in CM

Change-Id: I78fa2a67cc36e88d5866ecbe67dd3cdd6d58dde1
audio/msm7x30: Fix log tags and disable debug logging

Change-Id: I4712b09c86e3a067b0c847661fa43828be6eee23
audio/msm7x30: Support for Samsung audio devices

Change-Id: I2a624cddd99e02a9e0c73e829cc28dd520902074
Remove audio_poliy.conf from msm7630

Change-Id: I5f0a6055c41c804e25d96df2447c606abd45d143
audio/8655: Enabling LPA playback by adding AudioSessionOutLPA class

-AAC and MP3 clips are not playing in LPA path.
-Class AudioSessionOutLPA is not defined
-Define and implement AudioSessionOutLPA

Change-Id: Ie34c28d623d6c841bbddcbbe027317b0bd658660