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
hal: add support for device mute

Add support for muting the RX and TX devices without affecting
the voice stream. This feature is added to enable voice call
quality testing by carriers.

Change-Id: I4d0f599e44ae24ce02d29333f496ef18f889ac55
hal: update playback channel mapping for USB headset

- Set proper USB headset channel mapping before
  starting playback.
- Update audio_extn_set_afe_proxy_channel_mixer
  to handle channel mapping based on channel count.

CRs-Fixed: 620828

Change-Id: I9660e3088bc747c30891b0aa7ec8d22096dd0fa2
hal: Add 8916 qrd skuh sound card detection

- Remove 8916 skuaa/skuab sound card detection which is obsolete
  derived from 8x10 platform

- Add 8916 qrd skuh sound card detection

Change-Id: I5b60aa8ec8bebc8ae0d5306db2ae747492f380a7
hal: add support for Fluence Broadside

ADSP supports Fluence Broadside algorithm in Speaker Phone mode
for voice call and audio recording usecases. Add support for
the same in audio HAL.

Change-Id: I6682f72f8f47ce1f261511cb150e506de6f3dddb
CRs-fixed: 590495
hal: add incall music uplink2 pcm id

- There is no LCH tone playback on sub2 since the
  pcm ID and the DAI links are missing for 8974.
- Add pcm id for 8974.

Change-Id: I518d5eb3bfeaddd3b00281db064429087b10a37b
CRs-Fixed: 626562
hal: Add support for VoWLAN feature

Add VoWLAN pcm ID and usecase to enable voice
over WLAN feature

CRs-fixed: 642690
Change-Id: I791ffb19f61a726b8c2c45de380559831e08b520
hal: Change device IDs of HFP

Match the device IDs of HFP with the IDs of the
DAI links for HFP in the machine driver of 8x16

Change-Id: I7f4cc46c7017d44b08964c3538370606e57ab7df