hal: Fix arguments passed to set_echo_reference

* set_echo_reference function takes (struct audio_device *, bool) but is
  being passed (struct mixer *, int) instead.

Change-Id: I3b4fab2b2d266eebac0d5bab80f7a377d442d8fa
hal: Fix digital USB headset combo device

 * Digital USB output was not handled in this case. Add it.

Change-Id: I8e984a2cf545dabdc6dc538b75e8ca7221fb6688
Revert "hal: add custom platform abstraction"

* Handle this in a more extensible way with upcoming platform info
  extension code.

This reverts commit 36a435d08826160ddbf9e0759711f7badae42566.

Change-Id: I9683e27b70f591bff6c5131523ef7c3e51ee6513
Revert "hal: Add speaker backend case handling"

* Handle this in a more extensible way with upcoming platform info
  extension code.

This reverts commit 957c3d94bf34da538b3cd296e17b94a9206fd8d1.

Change-Id: Ie0b86bfd8decd92bda76a2706e5ebd7dcedae89b
audio: extend platform parser

Extend platform parser with support for additional sections.
Supported sections now include acdb ids, pcm device ids and backend names.

Change-Id: Idfbc8a8bb490606686436c107db5b0c7d636ccbe
audio: Extend platform parser to allow device name aliasing

* Supported sections now include device names
* This allows for aliasing device names to a custom name

Change-Id: I880e90a7e887f020517d89ba276199c700c0eeae
hal: Fix voice call recording for msm8974

Voice call recording uses audio-record usecase which causes recording
only devices microphone. Use the correct usecase for call recording.

Change-Id: Iaa9fc30534263c6de9b4b66fa5ffa9a1e2cc8fd4
audio: avoid mute delay when no active stream

-Dialpad touch tone delay is observed when connected USB
 headset. This is beacuse of mute delay during  device switch
-In this usecase, mute delay is not required as there is no
 actual device switch
-Fix is to avoid delay in this usecase.

Change-Id: Ib9e7d7f953f740c9f96c43a104edd0b548421e8d
CRs-Fixed: 706678
audio: Avoid mute delay during stopping of tones.

 - Each time tone is played extra delay added due to
   checkDeviceMuteStrategies during stop of tone.
 - Such mute delay is not needed in this scenario when
   there is no actual device switch.
 - Fix is to avoid mute during stop of tone.

Change-Id: I16e11ab846044fc14cb625cee8bf8273e0e4bcc3
audio: Use project pathmap

Change-Id: I32c9c9dccafd782bf76d476e2b4c1cf6f9c4ff7a
Audio: Bear family(8916) audio HAL bringup changes

- Added new files for platform specific code

  Separate platform specific code from generic audio HAL code.
  Platform specific code is:
    - platform initialization
    - pcm device selection
    - pcm stream configuration
    - sound device selection
    - acdb ID selection
  Modified makefiles for 8916 support

Change-Id: Idf53d19c355feb26ce9f35f9e5dd0734b542eae6
Audio: Bear family(8916) audio HAL bringup changes

- Updated  new API for voice call device config on 8x16

Change-Id: I03af1d2761288763d2db33469de5f9d476f4b527
hal: send custom stereo state to driver

Update custom stereo state to driver as received from Apps

Change-Id: Ifc3f448aecec15e7055440786338b1bbf1ddf68b
Audio: 8916 Audio HAL bringup changes

- Remove 8916 platform specific folder

- use common platform specific files for
  B family & 8916 targets

Change-Id: Icdc20fa289d3aaa2080346e1305b0faec1bbd233
hal: Add chipset specific HFP device IDs

Different chipsets have different device IDs as the front end
dai links are specific to chipsets. Ensure that the right device
IDs are used based on the chipset.

CRs-Fixed: 611132
Change-Id: If7d1a0de30653ed85d52bcb35fd13b0cc7282657
hal: update hw_info with tomtom sound card

-8084 has two variants of soundcards taiko and tomtom.
-Add tomtom sound card name to hw_info

Change-Id: I5b03b6d77589b5491d922b6caa2146fdd43ebf08
CRs-Fixed: 627505
Audio: 8916 Audio HAL bringup changes

-Separate platform specific code from generic audio HAL code

-Platform specific code is:
    - platform initialization
    - pcm device selection
    - pcm stream configuration
    - sound device selection
    - acdb ID selection
    - HDMI configuration

Change-Id: I9b02d60035ea632776e59c9d953909d3b851f3d7
Audio: 8916 Audio HAL bringup changes

-Add support for multiple hardware variants.

- Most of the targets supports multiple hardware variants such as
  MTP, CDP, Fluid, Liquid etc. The mixer paths for certain devices
  may vary on some of the variants. For example, the mixer controls
  for speaker device are different on msm8974 MTP and Fluid variants.

- Update audio HAL to select corresponding entry in the
  mixer_paths.xml file based on HW information.

Change-Id: Id957c44d55639b7c833a6c4c8caf162fcf8041f8
Audio: Bear(8916) Audio HAL bringup changes

- Added 8916 audio HAL spacific changes
  Merged 8916 BU changes to mainline

Change-Id: I8bfb06f328f1851d924d1b1219bc7317afa38b0d
hal: update voice2 pcm device id for APQ target

The pcm device id for voice2 call on APQ target is updated
to match the Voice2 Stub front-end dai sequence in machine
driver.

Change-Id: Id70f2e8ba5aa7762de616cd867a1e1ed60f9195e