Revert "fix VOIP calls"

This reverts commit cd7711a7f37bcb64b48ab65bad8398890f64b0e9.
Revert "8660: Support STE/Sony FM Radio"

This reverts commit 111cf41727bad67c7400119e4b6ee66e84bed22d.
Revert "msm8660: reworked audio to use system/audio.h"

This reverts commit b9f10e9802e85b946c2bec50fbf674f2cc05f0d4.
audio/msm8660: Squashed set of updates

* Updates cherry-picked from msm7x30's jb_2.5.3 branch.

msm7630 : Send proper channleMask for getInputProfile()

-Unable to perform Voice call recording.
-Unable to find profile for the device.
-Update proper channelMask for getInputProfile().

Change-Id: Ic67a1d59c4ea54ecccab2958e3c94672282f710f

audio/msm7630: Add usb audio hal profile.

remove USB ACCESSORY support from STRATEGY_PHONE to force speaker

Change-Id: I080d1e547310d48b43bdf9bae8ee789887766b3c

audio/msm7630: Fix the issue of voice call when HDMI connected

- Voice call is not working when HDMI cable is connected.
- When HDMI is connected getDeviceForStrategy is picking
  up HDMI rx as active device, because of this voice call
  is not working.
- Avoid updating the HDMI as active output device, when
  strategy is STRATGY_PHONE.

(cherry picked from commit 93bc81a7cd494373c19e5611fed060732a14b31b)

Change-Id: I74be601f771883d9dfecc751994a4068acaf2d03

audio/msm7630: Fix to enable TTY device

-Connecting TTY device is not showing proper RX and TX values.
-Mismatch in Key values of TTY modes in HAL.
-Change TTY mode string values as per the values in PhoneGlobals.java.

CRs-Fixed: 449513
Change-Id: I53e52b057bb535647731bdd7b99cb065b2e50940

audio/msm7630: Fix for routing camcorded encoded clip audio to wired headset

-Audio not routing to wired headset while playing the camcorder encoded video clip.
-device is not updating and routing when stopInput is called.
-Obtain the available active device by calling getNewDevice() and route to that device.

Change-Id: I163de3ba3c9e1ca9e81263acf8395d6cebdf410a
CRs-fixed: 451142

audio/msm7630: Fix for back to back VOIP calls failure

- Back to back VOIP calls fail.
- MVS driver is not closed in HAL at the end of VOIP call
  due to wrong book keeping of VOIP in and out streams.
  This prevents back to back VOIP calls.
- Enhance bookkeeping code and close driver at end of VOIP call

(cherry picked from commit 2884ae26b9b65f49acee44a49efbc6196ab6d15f)

Patchset 2: fix unneeded bool usage (isDriverClosed)

Change-Id: Ia99149fca9c47846bc7c5a71bc23e1cbc30a16fa
audio-caf: allow devices to only set min buffer sizes

Required for Sony MSM8960 devices.

This is a port of codeworkx's patch from the mako audio repo.
x
Merge remote-tracking branch 'upstream/cm-10.1' into cm-10.1