audio/msm7x30: always unmute mic

Change-Id: I7cc45c08340cf7a78e0ebb03c7af02dbec6ffab1
msm8660: Fix argument type of msm_set_volume

 * This should be a float, not an int. It was breaking LPA and probably
   other things.

Change-Id: Icd021717995025fb9580d7b73693ee7381eb8622
msm7x30: fix for SEMC devices with stereo hw speaker
hardware/qcom: msm8660: Fix no voice issue in Voipcall

-When Voip call is triggered, observe voice mute
issue sometimes.
-When Voip call is started, there is a ringer
that comes first and speaker is enabled. After
accepting the call, PolicyManager initiate route
device to Handset for Voip Usecase. Meanwhile
VoipStreamoutDirect thread opens MVS driver and also
routes the voice stream to current active rx device
and enables it. So enable Device is happening in
above two contexts at same time causing issue.
Need to acquire Lock in Voip context to avoid this.

Change-Id: I95c09204ae615e7255ed18beae9bd5c0a154eb8a
CRs-Fixed: 349440

Conflicts:

	audio/msm8660/AudioHardware.cpp
audio/msm8660: Fix for voice call volume change issue

- Volume does not change when a voice call is the
  first use case with all the tones disabled.
- When voice call is the first use case, acdb_loader_send_voice_cal()
  is called before ACDB is initialized causing ACDB to be
  initialized incorrectly.
- Fixed the issue by calling initACDB() before acdb_loader_send_voice_cal()

CRs-Fixed: 356557

Change-Id: Id696bc2548cc68b6e1ac023bb12f852af08c6d7e
qcom/media/audio/msm8660: Fix the issue of audio routing to headset during camcorder

-  During Camcorder Recording + Voice call with headset connected,
   audio is routing back to headset if the headset is removed and
   plugged in back to the target. But cam corder is always expected
   to record from handset tx.
-  When headset is removed and plugged in back, setDeviceConnectionState()
   is updating only output devices. Input devices not being updated as the
   condition checked for updating the input devices is always false.
   Also PhoneApp sends two intents headset connected and tty mode change
   when headset is connected. So even if input device is updated in
   SetDevice ConnectionState(), because of tty mode change intent audio
   is again routing to headset.
-  Fix this issue by changing the condition to update input devices and
   ignore the tty mode change event if current device is not headset.

Change-Id: I9de6da353bc23e279835403c163d6f400e024d0b
CRs-fixed: 336124
audio/msm7x30: Fixes for compiling with LPA support

* Add missing SND_DEVICE_FM_TX_AND_SPEAKER const
* Change msm_audio_7x30.h to msm_audio.h
  NB: this require that your local include file is renamed.

For those using kernel 2.6.35, a few patches from 3.0 kernel is needed
for proper functioning LPA. See http://bit.ly/KJfMYd

Further more, you need the following in BoardConfig.mk:

COMMON_GLOBAL_CFLAGS += -DWITH_QCOM_LPA
TARGET_USES_QCOM_LPA := true

and in system.prop:

lpa.decode=true
lpa.use-stagefright=true

Change-Id: Iba1b70434fb795946388a3587c084754025db0b6
msm8660: Add support for Samsung voice devices

 * Adds support for the call and VOIP channels found on this hardware.
 * Also raise the max number of devices since we are over the limit.
 * VOIP channel is currently disabled until MVS is working.

Change-Id: I52617b4578196b4db5a00d859cfa5bbc92757a3d