ASoC: msm: Add check for both offset and index variable

-The offset and index variable may leads to array out of
boundary exception.
-Added offset and index overflow check.

Change-Id: I1f71ee595944573e85d77d2001f656bd8ba53806
CRs-fixed: 583931
Signed-off-by: Mohammad Johny Shaik <mjshai@codeaurora.org>
msm: ADSPRPC: Add mappings to IOMMU for remote heap

The remote heap buffers need to be mapped and unmapped in
the IOMMU when SMMU is present on the remote processor.

Change-Id: I9d78e1098a4163109dbde4c23681be4cfb8a353a
Acked-by: Sathish Ambley <sambley@qti.qualcomm.com>
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
msm: ADSPRPC: Use module specific class name

Update the class name passed during class creation to match the module
rather than use a generic one. If another driver uses this same generic
name then the class creation would fail.

Change-Id: I33d7527e27c56fd943c93f823d99d244e2348319
Acked-by: Sathish Ambley <sambley@qti.qualcomm.com>
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
ASoC: wcd9xxx: Remove unnecessary condition

There is no need to check if internal micbias is
already enabled when we are only updating the bits,
as updating the bits does not do register write
is bit is already set.

CRs-Fixed: 572295
Change-Id: I79ea05150c6d3a2bbaeff0ac66bd39888451f11d
Signed-off-by: Simmi Pateriya <simmip@codeaurora.org>
ASoC: wcd9xxx: Increase delta for Invalid detection

Currently only 50mv delta in DCE measuremet is considered.
Increase this delta as per observation, sometimes even
more difference in DCE can be seen.

CRs-Fixed: 572295
Change-Id: If55b746ad4e4bca23cda9bcb594078acd9b1e01d
Signed-off-by: Simmi Pateriya <simmip@codeaurora.org>
ASoC: wcd9xxx: Make recalibration configurable.

Add support to have option to enable and disable
recalibration of DCE during headset detection.

CRs-Fixed: 572295
Change-Id: I4e0d20b0aaf7f362d0439ed4e6c91923445c58d0

Conflicts:
	sound/soc/msm/msm8x10.c

Signed-off-by: Simmi Pateriya <simmip@codeaurora.org>
Signed-off-by: Abhinay Reddy Vanipally <avanip@codeaurora.org>
ASoC: wcd9xxx: Do not use current source if micbias is already enabled

Some targets share the same micbias for handset mic and headset mic.
When any recording is in progress from handset mic and if headset
is inserted, we shouldn't be using current source for the detection
as the micbias is already enabled. Check if micbias is already enabled
or not and if it is already enabled, detect the headset insertion using
micbias not with current source.

Change-Id: I269c2320ed735fa07f6b77ebffe4d2a1a8163da9
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
ASoC: wcd9xxx: Make vddio usage configurable..

Switching to VDDIO for DCE measurement can cause
micbias to drop. If micbias is shared for handset
and headset, this can result in pop noise in
recorded data. Make this option configurable
so that it can be disable if micbias is shared.

CRs-Fixed: 562782
Change-Id: I77aa973583c482d5c0169774054627aed81d22cd
Signed-off-by: Simmi Pateriya <simmip@codeaurora.org>
Signed-off-by: Abhinay Reddy Vanipally <avanip@codeaurora.org>
ASoC: msm: Use 16K sample rate for RFECNS

To enable record with an RFECNS device use a 16K
sample rate.

Change-Id: Ib9c6a4605f6a7f9e5f4c25280e0cc646459815fc
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
Merge "msm: ADSPRPC: Use module specific class name"
Merge "ASoC: msm: Add check for both offset and index variable"
Merge "ASoC: wcd9xxx: Remove unnecessary condition"
Merge "ASoC: wcd9xxx: Increase delta for Invalid detection"
Merge "ASoC: wcd9xxx: Make recalibration configurable."
Merge "ASoC: wcd9xxx: Make vddio usage configurable.."
Merge "ASoC: wcd9xxx: Do not use current source if micbias is already enabled"
Merge "ASoC: msm: Use 16K sample rate for RFECNS"
Merge "msm: ADSPRPC: Add mappings to IOMMU for remote heap"