merge in jb-mr1-factory-release history after reset to jb-mr1-dev
alsa_sound: change voice-call stop sequence

When application processor is paired with an external modem, stop
command should be sent to the DSP on the modem before closing the
Slimbus channels on the application processor.

Bug: 7313016
Change-Id: Ibafeaf9a9badbf32cc955c4e8b5c81e5efdcbb0c
Signed-off-by: Iliyan Malchev <malchev@google.com>
Revert "alsa_sound: change voice-call stop sequence"

This reverts commit 0f5426b31b9a15743e4621a972cccafc4087aa62

Change-Id: I09e3d3cf17c1d775c76e2f8f6276216fbaa9ac92
Reconcile with jb-mr1-factory-release jb-mr1-release - do not merge

Change-Id: Ib9d689c7e8ac4eca802f694d6dbd902653eb84f1
mm-audio: Fix delay with first voice call after bootup.

- Add csd init and deinit to HAL constructor and
  destructor
- Add conditional check for voice acdb loader

Bug-id: 7612431
Change-Id: I4165e659fa300abb184e2438a5d730bb2158c094
mm-audio: Fix delay at the start of MT voice call

- Reducing the delay for playing the RINGTONE
  before voice call is accepted saves,appr 340ms.
- on this platform reducing the delay wont affect
  the RINGTONE as the delay in setting up voice
  path after accepting the voice call will
  compensate RINGTONE buffers with kernel and
  firmware played on the device.

Bug-id: 7612431

Change-Id: Iff5b4545ca7e2316178b0db8cb6760b173c189be
audio: separate calibration data for TMUS

When inserting TMUS SIM, we use different acoustic parameters in call.

Bug: 7716204
Change-Id: Ifce8d6ceb07e4474c28c8c9fe81c4457397e6d0c
mm-audio: Change delay value when setting device in call mode

commit 6ae807 (mm-audio: Fix delay at the start of MT voice call) has an issue.
That setting value is too aggressive, RINGTONE buffer is remained and routed
to connected device in call mode.

Add 40ms delay for playing ringtone.  This patch will increase about 40ms
for call connection time.

Bug:7946399
Change-Id: I98da5c515b5ba03b413818a8124c213d591c7bc3
Merge tag 'android-4.2.2_r1' into jb422

Android 4.2.2 release 1