ASoC: msm: qdsp6v2: Fix for invalid mem handle after ADSP SSR

Setup a voice call and end the call. Trigger ADSP SSR, then make another
voice call. The memory handle got from the first call is provided to CVD
for calibration data for the second call. The memory handle is not valid
after ADSP restarts.
To fix the issue, after ADSP SSR is triggered, set calibration memory
handle to zero. When starting a new call, send VSS_IMEMORY_CMD_MAP_PHYSICAL
to cvd to get a new memory handle. Use the new memory handle to register
calibration.

Change-Id: Ie89e16c8e64e1acc1c324d25bead93945d3282d4
CRs-fixed: 504113
Signed-off-by: Helen Zeng <xiaoyunz@codeaurora.org>
ASoC: wcd9320: Update headphone static gain in companding mode

Depending on the buik voltage, the static gain for headphone path
are different when compander is enabled. -3dB static gain is required
if the buik voltage is 1.8V and 0dB gain is required while the buik
voltage is 2.15V. Update the codec driver to match the requirement.

Change-Id: Ia21c8732362176d20956a817058ede3c4a472c52
CRs-Fixed: 500280
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
ASoC: msm8974: Fix external speaker power amp shutdown sequence

External speaker power amplifier should be disabled when all
the lineout power amplifiers are shutdown. When lineout is
shutdown bit mask was not cleared, due to which external power
amplifier will not be shutdown. Change clears the
bit mask for each lineout that is powered down.

Change-Id: I740653cbb6605708b38c915d59415f5b7f0c6d74
CRs-fixed: 497619
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
ASoC: msm: Add error returns to ACDB driver

Change the ACDB kernel driver to return error codes
for any failures.

Change-Id: Ib2ffab8c9e5e9a044bbaaf83bd879d6b17c3918d
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
ASoC: usb: change uevent value to digital USB HEADSET

The uevent of usb_audio has two components - analog, digital.
When usb_audio is set to 1, uevent is set to analog.
But, this is incorrect type. The usb audio interface should be
digital. So, it changed to 2 - digital.

Change-Id: I646301a15a8b3badd9f1794d98c451b2d9f42293
Signed-off-by: sangwoo <sangwoo2.park@lge.com>
ASoc: msm: Update default stream channel mapping

Update the default stream channel mapping for multichannel
content

Bug: 11099837

Change-Id: I4551e5f6e78a5bb7900d52d2bbe41dd49b4d1901
Signed-off-by: Haynes Mathew George <hgeorge@codeaurora.org>
Signed-off-by: sangwon.jeon <sangwon.jeon@lge.com>
ALSA: core: Expose sound card online/offline state

Expose sound card online/offline state to procfs so userspace application
can poll and read sound card's state.

Change-Id: Icafb2a8b970fb53ebc3eb7c44d075f1c01985072
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Signed-off-by: Glenn Kasten <gkasten@google.com>