hardware/alsa_sound: Change the device disable sequence

Before tearing down codec, disable the MDM device first so that
slimbus channel is disconnected from MDM to avoid overflow on
codec slimbus interface

Change-Id: I20ef6fe97b3e72b6fe17243a55e4e20ed30df93c
merge in jb-mr1-release history after reset to jb-mr1-dev
audio: add the headset tx

Change-Id: If15ef8362dd2800c41fb945b96488844db29e5db
merge in jb-mr1-release history after reset to jb-mr1-dev
merge in jb-mr1-release history after reset to jb-mr1-dev
merge in jb-mr1-release history after reset to jb-mr1-dev
merge in jb-mr1-release history after reset to jb-mr1-dev
merge in jb-mr1-release history after reset to jb-mr1-dev
merge in jb-mr1-release history after reset to jb-mr1-dev
merge in jb-mr1-release history after reset to jb-mr1-dev
merge in jb-mr1-release history after reset to jb-mr1-dev
merge in jb-mr1-release history after reset to jb-mr1-dev
merge in jb-mr1-release history after reset to jb-mr1-dev
merge in jb-mr1-release history after reset to jb-mr1-dev
alsa_sound: fix for output device routing during video chat

Bug: 7163358

- Output device for MODE_IN_COMMUNICATION could be earpiece
  or speaker, do not update output device in switchDevice()
  if input device is BUILTIN_MIC

Change-Id: I2a97a63f4cb57ef114695d3fd917282612b7a346
Signed-off-by: Iliyan Malchev <malchev@google.com>
merge in jb-mr1-release history after reset to jb-mr1-dev
alsa_sound: fix for SIP call mute issue.

-Mute VOIP through audio path is not supported by kernel,
 so calling setVoipMicMute() to disable ""Voip Tx Mute"" fails
-Mute VOIP by cleanning buffers read if setMicMute is set
-Remove mVoipMicMute and use mMicMute for voice and VOIP

Bug: 7213748
Change-Id: Ie2a200470c16da2e4ae991c0814ec8dfb4666833
Signed-off-by: Iliyan Malchev <malchev@google.com>
Revert "alsa_sound: fix for SIP call mute issue."

This reverts commit f859d3e80b790d4b525515918f1c6889383cc495.

bug: 7250052
reopens-bug: 7213748
Change-Id: I33312c0be196b327887edc93c0b766bcf86a94bc
Signed-off-by: Iliyan Malchev <malchev@google.com>
merge in jb-mr1-release history after reset to jb-mr1-dev
alsa_sound: fix for SIP call mute issue.

-Mute VOIP through audio path is not supported by kernel,
 so calling setVoipMicMute() to disable ""Voip Tx Mute"" fails
-Mute VOIP by cleanning buffers read if setMicMute is set
-Remove mVoipMicMute and use mMicMute for voice and VOIP

Bug: 7213748
Change-Id: I62be8456447425cbd1521083782802effcb6d326
Signed-off-by: Iliyan Malchev <malchev@google.com>