Revert "caf: audio_extn_usb_stop_capture takes 0 arguments"

Not sure why we have this, I assume CM had it at one point. Breaks hlte
This reverts commit a50b71e044b911fc6d383bd9e7c7ce7eff6ded70.

Change-Id: Ic86d1b93efa816d56b1ce771782002056f2df3f2
Signed-off-by: Josue Rivera <prbassplayer@gmail.com>
Merge "hal: Clear VI feedback cal after VI capture path is started" into kk4.4
Merge "post_proc: Enable reverb in DSP to start effect" into kk4.4
Merge "post_proc: reverb preset id is not mapped correctly" into kk4.4
Merge "post_proc: disable Bassboost and Virtualizer for certain devices" into kk4.4
Merge "hal: update bt-sco sample rate before device enable" into kk4.4
Merge "post_proc: disable effect immediately when routed to invalid devices" into kk4.4
Audio: Add routing option between HDMI speakers and device speakers

Add option that routing  between HDMI audio output and device audio
output, when HDMI is connected.

Change-Id: I9bbe9b1cbee5b6659502dae386c086f37bef2120
audio: primary desc check for sonification

- Audio glitches on alarm expiry if alarm starts
  on screen lock/standby mode

- On alarm expiry alarm tone will start play on combo device
  &screen unlock tone try to play on headset which results
  multiple device switch, as a result audio glitches are audible

- Fix is to treat all non-music streams as sonification
  if sonfication strategy is used by primary desc which
  will avoid device switch

Change-Id: Ie280400d5f754a8d4bd8885b6836be5e120f8783
CRs-Fixed: 514467
Crs-Fixed: 626722
hal: start voip driver independent of voip output stream

- Voip driver requires voip output stream to be opened
to start itself. But it is possible that some applications
may use voip input and normal audio output. Code changes are
done to handle this scenario.
- It is possible that some applications may use different
sample rates for voip input and voip output streams. It is
handled now in such a way that, if the sample rate of the
secondly opening stream does not match with that of the
first one, the second stream will not be allowed to open
voice path for VoIP.

Change-Id: Id9d86181eeee2c4ea0aa49a723ca92c1961a559b
CRs-fixed: 601785
hal: HFP support for setting volume

-Add support for setting volume using setparameter.

Change-Id: Id614d719324ab6b280116fd952c3fa73844ce1b0
CRs-Fixed: 596437
hal: apply TTY mode change for all voice use cases

Update devices for Voice2, VoLTE and QCHAT sessions
based on the TTY mode. This change is needed to support
enabling/disabling and switching TTY mode during
voice call.

Change-Id: I4f1fde8ce6b20fad0d24e0cd963e2c3709ff25d5
CRs-fixed: 608183
hal: Add new CSD API to reduce in call device switch delay

New CSD api is added to reduce device switch delay during voice call.
This api is called before enabling the devices so that csd voice call
sequence on MDM can run in parallel with device enable configuration
on APQ.

Change-Id: I9239ff21e1c07370516d0ed668e1e94af12f9eb2
hal: Check hfp usecase to differenciate between nb and wb

 - Need to check if the hfp session is WB or not before
   setting the device to avoid rerouting.

CRs-Fixed: 605465
Change-Id: Ice6fd2776b89e5358004071b011ac304f35dbf58
hal: Do not apply CSD voice switch API on 8960

Introduced by I9239ff21e1c07370516d0ed668e1e94af12f9eb2, not relevant
here.

Change-Id: Icb63ad5dc17029bc79f81051458b47a9ddb00bf5
audio: Update call state from RIL during silent mode

 -In silent mode, after call is rejected from Far end, RIL
  sets call state to active to play the network message and
  sets the call_state to inactive later without informing
  the telephony framework.So, setMode() is not called from
  framework.
 -Currently,we are updating call state only if there is any
  active call or call state being set from RIL is "active".
  Fix is to update the call state when inactive state is
  received from RIL for the same VSID

CRs-Fixed: 631062

Change-Id: I937341c48fd4950aab2e9e689712b47976b3c28d
postproc: Add exceptions for USB digital out

Change-Id: Idc7f926d31e855ea67dedfb579a9757316e3f526
audio: Disabled excessive logging in OMX AACEncoder

- Too many debug logs are enabled in AAC Encoder by default
- Fix is to disable all the logs except the error messages
  and logs indicating loading and unloading of the encoder

Change-Id: If4b37fb654b1c70796bfdc1c839839fab3ea20dc
CRs-Fixed: 619677
hal: update csd soft volume and mute controls

Update csd volume and mute controls with new apis which
takes ramp duration as a parameter. Set default mute
ramp duration to 20 ms.

Change-Id: Id8dcbc9bc12ac4e9c56962abc58b6bd1de0530a7
hal: fix listen and audio calibration concurency

- ACDB loader is maintaining the same calibration buffers
for both listen and audio. So there is a possibility that
the audio calibration buffers may be overwritten with listen
calibration soon after notifying the device busy state to
listen hal
- Avoid this issue by notifying listen hal before sending the
audio calibration so that listen hal can complete pushing its
calibration

Change-Id: I4d954b1287b59ee4e1510707db25f466d14dca97