msm : camera: Implement Video HDR on IMX134.

Add videoHDR support for kernel and also change number of
write master from 4 to 5 inorder to accomodate stats for
video HDR.

Change-Id: I5314a8972fc17aebc640c4de76c4ce3722cfe27f
Signed-off-by: Aditya Jonnalagadda <ajonnala@codeaurora.org>
ASoC: msm: qdsp6v2: Initialize local variable output_meta_data

The local variable output_meta_data is not initialized if
prtd->meta_data_mode is false. It can lead unexpected behavior.

Change-Id: I1801af9bc9c8bf31a9902388e01f4ae5c165be28
CRs-fixed: 539805
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
ARM: dts: msm: Add KTM hotplug feature for msm8610

Add entry for hotplug threshold. Set hotplug threshold and threshold
hysteresis to 110degC and 90degC respectively.
Add cpu sensors mapping.

Change-Id: I279f9826d1f76b6795ae6a5867d78faab490f79f
Signed-off-by: Jennifer Liu <chihning@codeaurora.org>
ARM: dts: msm: Add NFC device for msm8610

Add nfc device for 8610 based msm. currently sensor and nfc share
same i2c.

Change-Id: Ib696fbcd122583c241fb195fb83a36c892c92799
Acked-by: Umesh Jagga <ujagga@qti.qualcomm.com>
Signed-off-by: Bansidhar Gopalachari <bansid@codeaurora.org>
msm: 8610: gpiomux: Configure nfc gpio clock source

Add gpio clock source and remove ethernet interrupt which is used
by NFC as clock

Change-Id: I50e9e4b5c1602019667a69b04244e03fb3bbf7a2
Acked-by: Umesh Jagga <ujagga@qti.qualcomm.com>
Signed-off-by: Bansidhar Gopalachari <bansid@codeaurora.org>
msm: clock-8610: Update lookup table for NFC clocks

i2c gpio clock configuration needed to support qca199x NFCC
on msm8610.

Change-Id: Ieef2c54ce1d3c4ff022f9ffa211d0d8ff480db2f
Acked-by: Umesh Jagga <ujagga@qti.qualcomm.com>
Signed-off-by: Bansidhar Gopalachari <bansid@codeaurora.org>
defconfig: msm8610: enable Qualcomm NFC NCI driver

Add the config parameters to enable the NFC QCA1990
NCI driver for msm8610

Change-Id: Ie5e54c767fffe900c007e934a6b4cd7cd2e44290
Acked-by: Umesh Jagga <ujagga@qti.qualcomm.com>
Signed-off-by: Bansidhar Gopalachari <bansid@codeaurora.org>
ARM: dts: msm: Add KTM hotplug feature for msm8226

Add entry for hotplug threshold. Set hotplug threshold and threshold
hysteresis to 110degC and 90degC respectively.

Add cpu sensors mapping.

Change-Id: Ic833c00a42dbcbec71e730eccd2d52b4bdabf92e
Signed-off-by: Jennifer Liu <chihning@codeaurora.org>
ARM: dts: msm: Override KTM hotplug sensors for msm8926

For msm8926, core 2- 3 tsens is mapped to tsens_tz_sensor1. Override
hotplug properties: qcom, cpu-sensors in msm8926 device tree accordingly
when KTM hotplug is enabled in msm8226 device tree.

Change-Id: I8a011ae96592f47a2e383cd720910a5f96a93e48
Signed-off-by: Jennifer Liu <chihning@codeaurora.org>
qseecom: Fix issues with failure to release client handle

There exists scenarios when qseecom_release is called,
the client handle type is incorrect; hence proper cleanup
is not done with regards to unloading app or cleaning up
memory allocated for the device handle.
This change addresses all cleanup issues related to qseecom
client in qseecom_release call by ensuring the handle type is
set correctly and cleanup is done properly based on client type.

Change-Id: I126aa431ce635ae98100b774e3d92b704635d199
Signed-off-by: Hariprasad Dhalinarasimha <hnamgund@codeaurora.org>
ASoC: msm: Route low latency frontend to in-call music backend

Add routing controls to support routing of low latency stream
to in-call music delivery backend.

Change-Id: I5934f32fb4cbfb7f12a09e9bad76f370c3fd7fb7
CRs-fixed: 550396
Signed-off-by: Narsinga Rao Chella <nrchella@codeaurora.org>
ASoC: msm: Add missing backends for Multimedia4

Some backends for the front-end Multimedia4 is missing in the
routing driver. This results tunnel recording failure for
USB headset/BT SCO usecases.

Change-Id: I7998309df4e7da9545bdc75e9b67873cc0417870
Signed-off-by: Krishnankutty Kolathappilly <kkolat@codeaurora.org>
qdsp6v2: Fix access issues in adsp loader.

Access issues are present in adsp loader. These are introduced
by the changes made for making adsp loader an in-kernel component.

Change-Id: Ife7499685b78b4ee5fb2794368170b52987b0cfb
Signed-off-by: Krishnankutty Kolathappilly <kkolat@codeaurora.org>
mdss: mdp3: Add underrun counter to debugfs stat call

To allow for easier debug we added logs to output current
underrun count

Change-Id: I61f3911b315193ae5550de0332c5abefe22c12ce
Signed-off-by: Terence Hampson <thampson@codeaurora.org>
msm: mdss: Validate mixer/ctl are not null

mdss_mdp_wb_mixer_destroy could theoretically be
called with null mixer or ctl, which would cause
a null pointer dereference. Adding a check to
prevent this from happening.

Change-Id: I376c449daf05c8ca4ebb789d402575598ee59d86
CRs-Fixed: 551787
Signed-off-by: Casey Piper <cpiper@codeaurora.org>
msm: mdss: Account for null ctl passed to line count

Line count could be passed a null ctl structure,
which would cause a kernel panic. To prevent this,
line count will just return 0 if a null parameter
is passed.

Change-Id: I2b52533e6b67b842542de5b81be5b43fccc364dc
CRs-Fixed: 551701
Signed-off-by: Casey Piper <cpiper@codeaurora.org>
Revert "msm: iomap: Remove GIC mappings for device tree targets"

This reverts commit 4baedc0dafac1e4bc03181dfc6dd9e54cadbb146
so that pm-8x60 may resume use of these mappings.

Minor context conflicts have been resolved, and corresponding
8x10 changes have been made (which were not part of the original
commit).

CRs-Fixed: 550405
Change-Id: I838999faf1adb49bbd42f66b3c663e1d5aadef6b
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
Revert "msm: pm-8x60: Don't save or restore GIC,VFP state in power collapse"

Save and restore of GIC and VFP state is required to avoid subtle
userspace crashes due to corrupted state across power-collapse

This reverts commit a291d8a5596ba23ed3c03629ae50169443dd6159.

CRs-Fixed: 550405
Change-Id: I1ebe5666dc858116ddc5b830d706e3dacbb16cbe
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
msm: vidc: fix setting of client buffer count

The client requested buffer count was not honoured
in specific case - when requested buffer count
was less than actual buffer count, but greater than
min buffer count. It would be set to the min buffer
count, which would fail playback.

Change-Id: I10859fd2cb309b8f2b4fb106f9a78f4dc46d45ed
Signed-off-by: Arun Menon <avmenon@codeaurora.org>
ARM:dts:msm8610-camera Add dts node for rear sensor IMX134

Add IMX134 entry to dtsi file for 8x10

Change-Id: I66874a238ef17c34696d2a64ebdc39e73922b083
Signed-off-by: Aditya Jonnalagadda <ajonnala@codeaurora.org>