audio-caf: Trigger immediate doRouting() on setMode() change to normal

On call hangup, this normally happens as consequence of
a setParameter call shortly after the change of mode.
However, if a stream write occurs between the mode change
and setParameter, AudioStreamOutALSA::write calls route()
which then laters causes doRouting() not to deroute voice
properly.

By triggering an immediate doRouting() on a setMode change
to normal, we remove this window of opportunity for voice
derouting to fail.

Resolves calls with mute audio on jf.  This could
theoretically show up on other platforms if the
timing conditions are right.

Change-Id: I90e98596dcb42a0b4b164fc27790c39349ea777c
alsa_sound: Add support for sound card in Galaxy S4 Mini

Change-Id: I80eb510c78b1d546e34297d6b9b850d48fc60994
Merge "alsa_sound: Add support for sound card in Galaxy S4 Mini" into cm-10.1
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
msm7x30: disable logcat spam

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

Change-Id: I82ebb39e62f49c24f236cc9eeadbc303f8dbd823
Merge "msm7x30: disable logcat spam" into cm-10.1
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