alsa_sound: Fix for voice volume restore after reboot

  - Maximum volume is heard for call after reboot even if it
    was set to minimum during the last call before reboot.

  - During call after reboot, mLastvoiceVolume is getting
    updated improperly and hence proper volume is not
    being applied.

  - Fix is to cache the voice Volume properly.

  CRs-Fixed: 517731

Change-Id: Ia9512afaab94407f04011541db1b49b41cd5707a
legacy/alsa_sound: Replace STREAM_FM with STREAM_MUSIC.

- FM changes to move back to STREAM_MUSIC instead of STREAM_FM.
- This is done as, STREAM_FM changes from frameworks/base
has been replaced by STREAM_MUSIC.

Change-Id: I674fc148a85f722164aab42f9d4015f7923c13ec
legacy/alsa_sound: Fix for Music and FM volume concurrency.

- Call music volume and FM volume subsequently, as both use
STREAM_MUSIC, and change in one should get effective in other
application.
- Initialize FM volume to zero in Audio HAL. Store FM volume
even if FM is not active.

Change-Id: I29eb30f30a42dd2cac05fb8566e5f0725618df89
Fix building for 8974

Add the platform to the base filter, and initialize a variable when
reading EDID details that could cause evil memory accesses

Change-Id: I61955ca9280cc7c3357bf827e2e1269981fd5d6e
Merge "Fix building for 8974" into cm-10.2
alsa_sound: Add support for separated speaker mic devices

* Some devices use a dedicated ambient mic for loudspeaker, and
  reject attempts at using DMIC for it even if regular earpiece
  mode uses it

Change-Id: I87201cb3ab81a345ac817c66ba35d22b075fcedc
Revert "alsa_sound: Fix CAMCORDER_TX use case"

This reverts commit 58bd771e0b626c5edc6dbb1bfc2df0518387f6d8,
cleaner fix coming up

Change-Id: I4042b699379dbf5a0b868cd978a45cc99d8f91ac
alsa_sound: Fix camcorder input selection

Change I1ddc6460a91752fd7673d84fd41b70365d83d90c was supposed to
address camcorder during calls, and ended up forcing the main mic
for every other use case. Don't do that.

Change-Id: I4ecc11de57603ec12d2f60e408469f90ef3696b9
alsa_sound: separate fast CSD call device switching from CSD sessions

* This was two separate commits from upstream, some devices may have
  support for CSD sessions but no support for the fast call switching
  functionality.

Change-Id: I4d082b875a299e47407fb5b2d0b7ac54eef5adfa
Merge "  alsa_sound: Fix for voice volume restore after reboot" into cm-10.2