Revert "fmradio: enable STE radio"

This reverts commit 11793000ea4706c2424ca12b5284d3ff489a5062.

Change-Id: Ib8513d35ad7f272ea584f1ad48724739a405f1ca
alsa_sound: Add support for seperated FM devices

 * Some devices have special headset and speaker devices
   tuned for FM output.
 * Enable with BOARD_USES_SEPERATED_FM

Change-Id: Iac47043d2ee186208623bea7b34465592797ea1e
audio :Close HotWord audio source if it is already opened

- HotWord GTS test tries to record using second instance
  of HotWord Audio Source while one is already active.
  AudioPolicyManagerALSA is not closing the previous audio
  input before starting the second input.
- AudioHardwareALSA::openInputStream rejects opening
  of the second instance of audio input.
- HotWordAudioSource GTS test case fails due to above
  reasons.
- Fix is to enable the code that closes the previous
  input before starting the second audio input.
- Remove the code in openInputStream that is restricting
  the second record client. This is not needed now as it
  is already done in startInput of AudioPolicyManagerALSA

Change-Id: I63cd5061e23bef6c1f7c52cadd65833778e34018
CRs-Fixed: 591788
hal: set gapless metadata for compress  offload playback

-If any of the  metadata parameters are set from the framework.
 set the gapless metadata to one.

CRs-Fixed: 588353
Change-Id: I66a79d3f64515d108585527496a754c06a441560
audio: hal: Fix to use correct EC_REF_RX

In 8610, we need to use I2S_RX as ec_ref_rx
parameter and for SLIM based targets use
SLIM_RX.

CRs-Fixed: 575647
Change-Id: Ia220498f302a58dc3dbd42b1874fa01f081ce3dd
hal: fix for surround sound recording

- Use proper period_size(512) and period_count(8)
  for 4ch pcm recording.
- Fix read logic in ssr_read to capture 4k data
  for each read
- Miscellaneous code clean up for variables, APIS,
  and debug dumps.

Change-Id: I01c0e99a717a3536bd7d19c2f46ed10be77661e4
Crs-Fixed: 589342
hal: Detect sound card dynamically

- HAL always assumed SOUND_CARD/MIXER_CARD
  number to be zero. This could cause HAL
  not to load when some other card is
  detected earlier to HAL.
- Fix by removing these Macro(s) and reading
  correct sound card number runtime while loading
- Corrected its use cases across HAL replacing it
  with appropriate platform API

CRs-fixed: 580226

Change-Id: I4512e4a2f7f81d8415c3ba8ec393c96867e6d69a
hal: pass set parameters call to listen hal

Pass set parameters call to listen hal. Currently it used
to handle SSR in listen hal.

Change-Id: Ia8df94ca87916afff45fe4e3fd569f6268bc3560
hal: Avoid duplicate primary outputs

open_output_stream API expects the default usecase to
be returned if other usecases are unavailable or unusable.
However, the output returned in this default case must be
the default primary if it exists.

Change-Id: Ie5cc53f077358d7039d62b09b29edb58c213bc08
hal: Fix voice call with QUAD MIC

voice call using quad mic doesn't work.
Fix this by update quad mic acdb entry in the table.

Change-Id: I744ac2fe26e39e24f0b0c8f0eed337c86cd7bd6c
hal: Fix slowtalk key value type

Slowtalk key value is defined as string in upper layer but
HAL expects key value as type 'int' which causes type mismatch.
change slowtalk key value as string.

Change-Id: I66499436d1d09528e4f4b3079c39c9c1a0777385
hal: Add property to configure the compress offload fragment size.

Add property - audio.offload.buffer.size.kbytes to configure offload
fragment size. The maximum value for fragment size is 256k. Default
value is 32k. The minimum value is 8k.

Change-Id: I9b440a420270b27f5fdba9f82de6944da0afb9d2
policy_hal: Fix to route the call to proper device

When voice/volte call is setup over USB headset, the call is
still on USB headset even after turning on speaker.

Don't set the device to USB headset when speaker is forced
by Telephony during call.

Change-Id: If6a95895a33423ff5150862a823fc669fd44e59a
CRs-Fixed: 588884
policy_hal: remove unused function isVirtualInputDevice

- isVirtualInputDevice is a static member function and
  its implementation should be modified in base class only.
- Remove isVirtualInputDevice in policy_hal and modify
  APM_AUDIO_IN_DEVICE_VIRTUAL_ALL in base class to support
  FM recording over A2DP headset.

Change-Id: Ib0527cfdff170367491feb62b117815558e139e1
CRs-Fixed: 581377
hal: Add audio support for 8092

- Add support for OMX audio encoder components for mpq8092.

Change-Id: I7a652581fd48fc22c025193d2c825b6e747edcfe
audio: msm8660: Use msm_ion header

 * The ion.h header has long since removed MSM-specific bits.
 * Even ancient kernels should have support for at least a dummy
   msm_ion.h, so enable it for compatibility with new kernels.

Change-Id: Ie3381913c8ff8a8e61038d8962f1455131dc4659
mpq8092: Porting audio HAL changes

Porting audio HAL changes

Change-Id: I85e739ed231ee09ebf150da2ea3fd4f5d4aa3a24
hal: remove assertion for unsupported sound card

- Remove CHECK(0) for unsupported sound card to
  avoid boot up failure with USB headsets.

Change-Id: Ib41c48e2b50de042fe94a4c1db0890a39b6a03e2
CRs-Fixed: 580226
audio: mpq: Add WMA, PCM and MP2 format for tunnel decode

Add WMA, PCM and MP2 as supported format for tunnel decode

Change-Id: I874305c17c1ac31ab89412bd5f05503b7844deea
audio: Add support for 8974 Voice2

Add the Voice2 pcm ID to enable DSDS on 8974.

CRs-fixed: 587066
Change-Id: Ifd134313a49af601f4e0f1d66ad0b4ff8596609d