ARM: dts: Add support for apq8074v2.2 hardware variants

Previously, apq8074v2.2 booted using a configuration inherited
from msm8974-v2.0-1.dtsi. Inherit settings from msm8974-v2.2.dtsi
instead.

Change-Id: I257e77ef0983a011ad3d9249a6c22fb32c15b0b7
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
ASoC: wcd9xxx: Fix codec type detection failure error handling

Changes fixes the error handling exit point when the codec
type is not found.

Change-Id: I2923dc16880fe312741188b360620ea924fe4ca3
CRs-fixed: 517978
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
msm: vidc: Increase maximum buffer count limit

Some clients want to allocate more buffers on decoder
input port than required (mainly for performance reasons).
Video decoder should honor the client request as long as
V4L2 framework permits.

Change-Id: I1c5c90f18b723504d4287ee3fca3c427392c1129
CRs-fixed: 509088
Signed-off-by: Vinay Kalia <vkalia@codeaurora.org>
msm: audio: qdsp6v2:  Check return code from audio_aio_open()

When audio_aio_open() is triggered in blocking fashion, it  frees audio
resouces and returns error code. In the current implementation,  callers
did not check the error code which can lead to dereference to freed
resources and cause system crash.  Update the callers to check return
code and then return error back to application to avoid the issue. In
the meanwhile, update the audio_aio_open not to free memory for caller
and leave the caller to free the memory in error condition.

CRs-fixed: 436653
Change-Id: If4dda158cb988c5837517817b1afa0572c30696e
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
msm: Makefile.boot: Refresh list of dtb files to build

Several MSM .dts files have been added to the kernel tree, but
corresponding dtb Make targets were not added to Makefile.boot.
Add the missing entries.

Change-Id: I7c34dba8a5d90bda06b31ac26fe1682ea63432a0
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
ASoC: wcd9xxx: Support to configure the code for media button

There is mismatch in button 0 code value that is used
in kernel and userspace. Configure the code for button 0
to match with that of userspace.

Change-Id: I3019807ee1e68e9990a12073fa11315e26575814
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
Merge "msm8974: mhl: Add support for sinks with non std DCAP INT STAT"
Merge "msm_fb: mdss: register framebuffer devices for device shutdown"
SoC: msm: Set soft step values to 0 to avoid noise

The abrupt steps in the curve are causing the noise. To avoid noise
smaller step size are recommended.

CRs-fixed: 513073
Change-Id: Ib9e7bb60bf4271c97aec7b1af208f06d22049960
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
arm/dt:apq8074-Dragon board: Add PCM GPIO lines

The audio connection between apq8074 and BT on Dragon Board is through
AUX PCM lines. Add support for MSM GPIOs used for PCM ports on
Dragon Board.

Change-Id: If1a9737f6b25af5bc27542b9b512064b2e17f16b
Signed-off-by: Tanya Finkel <tfinkel@codeaurora.org>
mdss: hdmi: Correct CEA format check

This change corrects the CEA format check to include all the supported
resolutions through which the audio should be routed to HDMI TV.

CRs-Fixed: 517950
Change-Id: Icd5c7503b2dc3a184bbf52205b0386eee9daca62
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
ASoC: qdsp6 : fix DAP params length in adm dolby set params call

During adm set param call for DAP params, send correct buffer length
to dsp, so DAP module doesnt look for parameters after valid length

Change-Id: I5c5c2f433f9c4913ad927d632d7981891c5b4e80
Signed-off-by: Jitendra Singh Naruka <jnaruk@codeaurora.org>
msm: mdss: validate fb backlight inputs

Ensure backlight level is less than the max backlight
brightness and the backlight scaling factor is at most
1.

Change-Id: I424ed22af48ecae46371291fe88a114cf3fc7c31
CRs-Fixed: 516699
Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
msm: kgsl: reset GPU when GDSC is forced on

Sometimes for debug purposes the GPU regulators can be left
on, make sure we reset the gpu while waking up.

Change-Id: Ie18c9f45d9f5a5a7587a1bea2c7c9bb5ce000316
Signed-off-by: Suman Tatiraju <sumant@codeaurora.org>
ion: msm: Add null-pointer check to info struct

Add null-pointer check after allocation to avoid null-pointer
deference and subsequent crash of the kernel.

Change-Id: Idba61f5047225323d83425863222808522e89f53
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
ion: Add null-pointer check to info structure

Add null-pointer check to info structure to avoid null-pointer
dereference and subsequent kernel crash.

Change-Id: I88135c1efa0b6ddc333e16511016d3618d9d5cf3
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
mmc: sdhci: add auto command error interrupt support

The auto command error interrupt is not enabled now. Hence,
if there occurs a timeout when auto-cmd is in progress,
no data timeout interrupt would occur and the driver would
only timeout after the software timer expires.

This patch enables the auto command error interrupt and lets the
higher layers know of such an error, if any.

CRs-Fixed: 515513
Change-Id: I69880a72ece7730645dcfe699d58271d60cab33d
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
Signed-off-by: Krishna Konda <kkonda@codeaurora.org>
Merge "ARM: dts: Add support for apq8074v2.2 hardware variants"
Merge "msm: Makefile.boot: Refresh list of dtb files to build"
Merge "SoC: msm: Set soft step values to 0 to avoid noise"