ASoC: msm: 8974: Fix error condition check

This change fixes the error check condition for
us-euro gpio switch.

Change-Id: I33fdb1f6379492aecd577055769e1ac5d24b4802
CRs-fixed: 476010
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
defconfig: msm8974: Enable HDMI audio playback

This change enables HDMI audio playback feature
for msm 8974

Change-Id: I1f83c559f83676e0d892e9f1f75d37c359396b3a
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
arm/dt: msm8610: Use sensor 5 for kernel thermal mitigation

Use TSENS Sensor 5 when kernel thermal mitigation runs. msm8610 only has
2 sensors. Sensor 5 tracks core0-1-2-3.

Change-Id: I0df6facdd0937c59baad4700fc1f2c39cc144ee2
Signed-off-by: Jennifer Liu <chihning@codeaurora.org>
msm: vidc: enhance resolution capability check

The video firmware can support WxH as well as
HxW resolutions. Without this check, supported
video clips will be rejected as unsupported.

Change-Id: I9f4ccc89ad4d0ad56527f98c7188012508138f05
Signed-off-by: Arun Menon <avmenon@codeaurora.org>
msm: msm_bus: Add checks to avoid Klocwork errors

This patch adds Null pointer checks while getting bus devices
from the kernel tree. This is required to avoid Klocwork errors.

Change-Id: I761a9d177871a42aadfaa6f855be7e9c4c781e8b
Signed-off-by: Gagan Mac <gmac@codeaurora.org>
msm: kgsl: Add fault count to snapshot debugfs

Additional faults can occur between when a snapshot is frozen
and the snapshot is read.  Keep track of the total number of
faults encountered to keep track of how the GPU is actually
doing on multi-hour test cases.

Change-Id: I392fce74e7d215aa7bd0e1a7ce5c9f340413cd53
Signed-off-by: Carter Cooper <ccooper@codeaurora.org>
arm/dt: msm8610: add qpnp-bms device

Enable the battery management system device to provide a fuelgauge.

The BMS will report SOC to the system so it knows the percent charge of
the attached battery.

Change-Id: Ief92561d9dbb81669575ab2b5ef6e650a20bd4bc
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
arm/dt: apq8084: Extend #address-cells and #size-cells

Extend the root-level #address-cells and #size-cells
properties to allow the /memory node to contain physical
addresses larger than 32 bits. Create a new skeleton DTSI
file for this configuration.

Change-Id: Iefbc568c60fdea97fd92f671579843d9177d984f
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
ASoC: msm: Add IOMMU for msm8x10

MSM8x10 has IOMMU in LPASS. msm_audio_ion.c provide wrapper APIs
for ION fuctions. MMAP fuction should be used in this wrapper.
If audio heap is not available, it fall back to system heap.

Change-Id: I3abab96df14fde34f14b8a2f79c22aebca46511e
Signed-off-by: Fred Oh <fred@codeaurora.org>
arm/dt: msm8610: Enable smmu for 8x10

smmu-enabled has to be true for 8x10.

Change-Id: I18c0344a1ceaeeefafae895e67235c0c7367ba7d
Signed-off-by: Fred Oh <fred@codeaurora.org>
msm: ipa: teth_bridge: register to IPA RM for A2_PROD events

Register for A2_PROD events, such as RESOURCE_GRANTED and
RESOURCE_RELEASED. By getting the notifications, bridge driver will be
able to configure A2 pipes at the right time.

This fix enables USB suspend/resume scenario and also fixes a hidden bug
in Ethernet link protocol during the same scenario.

Change-Id: I2f6171f2a86d158cea3f0d208159754ef930231f
Signed-off-by: Vladislav Mordohovich <vmordoho@codeaurora.org>
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
ASoC:msm: Enabling TTY for VoLTE call

Enabled TTY for VoLTE call. Earlier TTY feature is not
supported for VoLTE call.

Change-Id: If5e3436504f40c3e782bf79a16547be068f6b27e
Signed-off-by: Sidipotu Ashok <sashok@codeaurora.org>
msm: camera2: Add gemini driver

Copies the driver for the Gemini JPEG hardware encoder engine from
camera_v1 to camera_v2. Resolves the introduced build errors resulting
from interface changes.

Change-Id: I3a8779b2c1e6f67f085ff919aaa3721b28bbcfc4
Signed-off-by: Kamen Kirov <kkirov@codeaurora.org>
ASoC: msm: 8974: Fix vifeed dailink fixup function

VI feedback dailink should be configured as stereo
with sampling frequency set to 48 Khz.
This change updates the fixup function of vi feedback
dailink.

Change-Id: Idf60695c3651befa67f7740958c28029a9935eda
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
msm: clock-mdss: Fix clock warnings during DSI panel probe

clk_set_rate is called with the incorrect rates causing
clock warnings during bootup.

Change-Id: Ica2fb94c2ec9b006dedcec1a64920bda2f8719bc
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
qseecom: add integer overflow protection and support to set multiple PIPEs

Add integer overflow protection for qclk->clk_access_cnt;
TZ changes their implementation to support one quest to set
multiple PIPE registers.We use mode operation to indicate
multiple PIPE registers in qseecom set key request.

Change-Id: I216dfdf73a6ecef633e0f5846d65d0648d2d451e
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
ASoC: wcd9xxx: adjust MBHC thresholds upon micbias source change

When ACDB has relatively high voltage in the button detection threshold,
it's possible the high voltage is higher than mic voltage during playback
since during playback mic bias's source changes to VDDIO from CFILT.
Adjust relevant thresholds upon micbias source change to avoid false MBHC
button press and release detection.

CRs-fixed: 484436
Change-Id: I1937e35d0123e642e2247ae92367b64ac31fc030
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
diag: Bring diag control message support up to date

The current implementation is out of date with the current
diag control messages. Make modifications to bring the
control messages up to date.

Change-Id: Ia5456db63146de6eef9bc3d00991197fa868f281
Signed-off-by: Dixon Peterson <dixonp@codeaurora.org>
msm: audio: qdsp6v2: Add size safety check to ACDB driver

Check that the size sent by userspace is not larger
then the internal amount allowed. This protects
against overflowing the stack due to an invalid size.

Change-Id: I8230fdb00a7b57d398929e8ab0eb6587476f3db1
CRs-fixed: 470222
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
msm: pm-8x60: Use on_each_cpu instead of smp_call_function_many

The broadcast timer needs to be setup on all the online cores. As
smp_call_function_many doesn't execute the CPU invoking the call, switch
to using on_each_cpu. Also change the function prototype as it is called
only to turn on broadcast timers.

Change-Id: If7002d787d98b68cb229ebc40f3c817c5aefe1f1
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>