Fix Wformat warnings

warning: format '%d' expects argument of type 'int', but argument 4
has type 'long int' [-Wformat]

Change-Id: I406189caca08356efe92060cb86a2f8f87e57fcf
msm7x30: disable logcat spam

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I82ebb39e62f49c24f236cc9eeadbc303f8dbd823
Revert "Revert "alsa_sound: Calculate proxy port latency""

This reverts commit b7d4839fff30b743458a6e62e94b9413dbbd4da8.
Remove High water mark check in ALSA Device

- High water mark framecount check while reading from proxy
  device is causing issues during A2DP Music Playback
- Remove this check to avoid freeze during A2DP Playback

Change-Id: If066438c9f1886aa29ad57ccba154e0ca970a5f3
alsa_sound: Add boundary check for alsa appl and hw ptr

for continuous playback the hw_ptr and appl_ptr may go beyond boundary.
The overflow check is required to ensure boundary check.

CRs-Fixed: 483203
Change-Id: I8c56a97ad1cc2a895f904bb9c03f23714ea61035
alsa_sound:Removed AWB from tunneled-input-formats

-AMRWB recording is failing because tunnelled mode is
 getting enabled in Sound Recorder use case
-Fix is to remove AWB parameter from tunneled-input-
 formats as it is not supported on A Family devices

Change-Id: I0cfc9b62639dfd179bc13af0988776a6c89999da
CRs-fixed: 521809
libalsa-int: Check for valid mixer control

 When the mixer value is NULL , the mixer_close function
 crashes.
 Added a check to make sure that only a valid mixer function
 is handled

 CRs-Fixed: 516186
Change-Id: I61a45e4fbc68fbd82fdcb8f372e5b66a36487f2f
alsa_sound: Fix to Support in-call uplink recording

Uplink recording during voice call fails as the case was not
 getting handled while opening the input stream.
 -Added support for Incall Uplink recording in openInputStream.

GTalk call doesn't work if call is started during an existing
 recording session. All subsequent calls are failing after this
 scenario
 - Move the pcm device node open to read() call instead which will
   avoid opening the pcm device node of normal recording session
   and doesn't go into the error state. This will allow GTalk call
   to work and also all the subsequent calls to work

CRs-Fixed: 517810
Change-Id: I440ac4090b9f3e3a70b8acb4a818cfbf97e8c868
alsa_sound :Starting "UsbRecordingThread" if not started

- Recorder stop() was getting called in hangout app before the
  call got connected, this will stop UsbRecordingThread.
  Recorder set() is called with a sample rate of 48k due to which
  the USB recording thread doesnt get re-started because for VOIP
  the sample rate expected is 8/16k.

- UsbRecordingThread has to get started when the call
  gets connected.

Change-Id: I12c4d1f473224de7df2041f22fdc45cf77ac4acb
CRs-Fixed: 516270
alsa_sound : send voc-cal data for play voip use case

- Volume not being changed when playing voicemail
  during MODE_IN_CALL
- The calibration data was not being sent to the DSP
  for the play voip use case
- Setting the current modifier properly
  Permitting sending of calibration data despite
  no change in rx and tx devices

Change-Id: Ice9599941d3d6c115daa63c44bf4a1daa8f50ba3
CRs-Fixed: 508126
msm7x30: fix -Wreorder warnings

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I0a9a8989dd153e99a474da4a2f6c37dc068227fd
alsa_sound: Fix CAMCORDER_TX use case

* Enable use case by setting BOARD_USES_SEPERATED_CAMCORDER

Change-Id: Icabb0073f85e65455d5bbeae9b9b6956a8a78b90
alsa_sound: Add support for custom LPA buffer size

 * On msm8930, during playback over A2DP with DSP Manager effects enabled,
   there's a lot of stuttering with the default buffer size. Stock kernel
   used a buffer size of 32, but that caused no audio at all in CM because
   of mismatch in buffer size between kernel and user space. So up until
   now I've been using a buffer size of 256 to get audio working at all,
   but unfortunately it causes stuttering as mentioned. Hence add support
   for a custom buffer size so we can revert to stock value used in kernel,
   and enjoy no stuttering.

Change-Id: I29113cee46d0adcc72a8c9c830e4c15d9fdd43dc
audio: libaudioamp: add hooks to open/close for amplifier init

Change-Id: I64e8cafad3e5eb872f2924eabde9b5dbfc947710
alsa_sound: Fix audio over Miracast

 * We're not using QC's proprietary WFD solution, so pick the remote
   submix instead of the proxy.

Change-Id: Ie32a4591a27f17e2a1d0b87b5f5a7b8b320ff169