msm: display: Set max MDP bandwidths for larger primary resolutions

To avoid underruns for larger primary display resolutions,
set max MDP clock/bandwidths for dynamic boot parameter
cases with HDMI as primary and WUXGA panels

Change-Id: I1e020de0cbd4082edd26d4b03ebee4d4b976c26a
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
ASoC: msm8960: Add module MBHC module parameters

Add boolean module parameters hs_detect_use_gpio and hs_detect_use_firmware
The hs_detect_use_gpio enables MBHC mechanical detection,
hs_detect_use_firmware makes codec driver to read MBHC calibration firmware
from filesystem.  Both of them are set to false by default.

Change-Id: I2c5f526a0b199265ebf85003cdc49e85fc76f5b8
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
(cherry picked from commit b727b09aaf3fce379c9e9fcb15ce595fbf0edb0f)
msm: audio: qdsp6v2: Replace PMEM with ION in Audio Decoder drivers

ION is replacement for PMEM which is less complex with better
reference counting. Hence ION which is a superset of PMEM is
used to allocate memory in the audio decoder drivers.

Change-Id: I0c9458b902bad169d6fcc36dfc66d538c00a6e22
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
msm_fb: display: Enable pre-multiplied alpha for MDP303

For images which are pre-multiplied with alpha, driver
support is now added to blend them properly

Change-Id: I1c07496f9d85c50f1df9eb8d70362ff23dbd90f8
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
msm: Added DFAB clock definitions for msm8x60.

Added DFAB clock definitions for qseecom on msm8x60 target.
Currently this definitions are missing.

Change-Id: If8febc6217fc3c968d4f5534c6fbde3d79488525
CRs-fixed: 351830
Signed-off-by: Ramesh Masavarapu <rameshm@codeaurora.org>
msm_fb: display: add dmap waiting before turn off timing generator

Wait for dmap done to turn off TG to avoid underruns before base
pipe setup and after constant splash during boot time.

Change-Id: I64bc3935d996af1d2d54db4c11319301ea454ced
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
 msm_fb: display: retrieve correct base layer pipe

Base layer pipe is cloned and cached at satge array.
Retrive the real base layer pipe before used it.

Change-Id: I6fc606559684156348a57b500083ed4089fc71b5
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm: msm7627a: Support ION on 7627a/8625

Deprecate PMEM and start using ION for existing converted
drivers

Change-Id: I86b0336a62573307941625fc0bee16c91cbc9b15
Signed-off-by: Atul Raut <araut@codeaurora.org>
msm: qdsp5: Add ION framework support for 7x27A & 8x25 targets

Modified adsp driver to support the ION memory framework
for 7x27A and 8x25 targets

Change-Id: I0df75ed3d71575a28fe9f2267117a94c5a224296
Signed-off-by: Saikumar Kondaparthi <saikumar@codeaurora.org>
Signed-off-by: Arvind Thatikonda <arvindt@codeaurora.org>
Merge "msm: msm7627a: Support ION on 7627a/8625" into jb_chocolate
msm: board-7627a: Initial bringup changes

Change-Id: I6c526538b012f957177ae9b3207a86e87ef2a695
Signed-off-by: Atul Raut <araut@codeaurora.org>
Merge " msm_fb: display: retrieve correct base layer pipe" into jb_chocolate
Merge "msm: display: Set max MDP bandwidths for larger primary resolutions" into jb_chocolate
msm: sdio_ctl: Update the driver to support poll operation

Poll operation is needed by user-space modules, to select among
multiple file descriptors for read/write operation.

CRs-Fixed: 357121
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
(cherry picked from commit 70bbcbc9b7c41d0f0865065e39677e8e8aaba31b)

Change-Id: I8462f04a86a74f8c95f0a68706f1321581127b5f
Signed-off-by: Gopal G Goberu <ggober@codeaurora.org>
msm: display: remove the predefined mdp clk rate tables

Mdp clk rate will be calculated during run time based on pipe
requirements, so the tables in board files are not necessary. Only the
max rate which is target specific is passed to display driver.

Change-Id: Ib42d378e5bb4b6876719c2cebefbd9dc9a4cef15
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm_fb: display: mdp clk and bw based on vsync

rebased to vsync patch

Change-Id: I2a11866e2dbe26109bf0eefa50fe778286ca5d0d
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm_fb: display: commit mdp baselayer pipe

When in resume or boot time, baselayer pipes need to be committed for
mdp to play, otherwize underruns and blue screens are seen. The
previous pipe stage up func has this commit which is removed now, so
the commit calls have to be added for the cases where base pipe is
initialized.

Change-Id: I63a7d0ac3fb078b3d7f604eb646a0430326a478c
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
Merge "msm: sdio_ctl: Update the driver to support poll operation" into jb_chocolate
Merge "msm: audio: qdsp6v2: Replace PMEM with ION in Audio Decoder drivers" into jb_chocolate
Bluetooth: hidp: use dest address from session info

While hid device unpair process, we are trying to access released
socket as apart of getting hci device which results a kernel panic.

CRs-fixed: 387164
Signed-off-by: Ram Mohan Korukonda <rkorukon@codeaurora.org>
(cherry picked from commit 27e77d2bda65c96815cb5f785df9ffd7bd733e6a)

Change-Id: Ic4359adf41c3da4effba25856169629787b5f7e0
Signed-off-by: Sivasri Kumar Vanka <sivasri@codeaurora.org>