msm: msm_bus: Change MDP port interleaved setting

When display driver requests bandwidth on MDP port 0, it was
automatically divided between port 0 and port 1 by the bus driver
as a part of interleaving. Since MDP port 1 was never used,
this did not have any impact.

Now, the display driver needs to use MDP port 1 such that MDP
ports should be able to use the bandwidth non-uniformally.
To enable these ports to use unequal amount of bandwidth,
it is required that bus driver does not divide bandwidth
between port 0 and port 1.
The display team is now responsible for requesting bandwidth
explicitly on both ports.

CRs-Fixed: 474499
Change-Id: I826a4c20a113a32f6d6bcf13f1c6474040f35f46
Signed-off-by: Gagan Mac <gmac@codeaurora.org>
msm: pm-8x60: Fix comparison of unsigned variable against 0

Comparing unsigned variable 'count' against zero has no effect. Hence
remove them.

Change-Id: I4e03b33b6f193a56800074c3d1597cf0c52dc3e8
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
msm: wfd: Explicitly include slab.h

slab.h is getting implicitly included from external header files, which
if disabled in compilation, causes compilation errors for wfd driver.
Include slab.h explicitly to remove this unnecessary dependancy.

Change-Id: I23691038f92ad1f6b9f2225a39ea76d0a18573ab
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
usb: dwc3-msm: Adjust SSPHY parameters

Tweak SSPHY specific parameters to increase TX full swing
amplitude and de-emphasis in order to pass SuperSpeed
electrical compliance tests. Set parameters to values provided
by hardware team.

CRs-fixed: 474264
Change-Id: I1e984d6611de1e4d9eeda58746d83dd05aef1c98
Signed-off-by: Jack Pham <jackp@codeaurora.org>
msm: kgsl: Send the right IB size to adreno_find_ctxtmem

adreno_find_ctxtmem expects byte lengths and we were sending it
dword lengths which was about as effective as you would expect.

Change-Id: Ic0dedbad536ed377f6253c3a5e75e5d6cb838acf
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
mmc: sdhci-msm: wait for SW reset to be complete

Wait for SW reset to be complete before proceeding further
in probe. Otherwise, any register writes immediately
after the reset would be ignored/reset.

Change-Id: If1c7f5debfca6f45a0fdb08bc759ad04b96fd86c
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
ASoC: msm: Add support to have FM playback through ASM loopback mode

- Add support to provide PP on FM playback.
- Add PCM platform driver which enables ASM loopback mode
Define MultiMedia6 front-end dai

Change-Id: Ibf9d2645e706f9a3027dd356223a2135224a0337
Signed-off-by: Damir Didjusto <damird@codeaurora.org>
ASoC: msm: Add msm-pcm-loopback device

Add msm-pcm-loopback platform device

Change-Id: Ic86f9d92d75bd7c19e3f2d827a4114f6828a7ce8
Signed-off-by: Damir Didjusto <damird@codeaurora.org>
ASoC: msm: Add MultiMedia6 dai link

Add MultiMedia6 dai link for FM loopback.

Change-Id: I08118c9c5add4dba2aaf4af620058dbc9160696d
Signed-off-by: Damir Didjusto <damird@codeaurora.org>
ASoC: msm: Handle data loss at device switch for FM

- When device switch happens there are underflow errors
in LPASS. And there is some break in audio observed for
around 2 sec.
- To handle this, ASM run command needs to be sent again
to DSP at device switch.

Change-Id: I26135ad9267ec5c018708b780b86b7cb4998aa0a
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
gpu: ion: Match some of the upstream debugfs infrastructure

Much of the debugfs infrastructure is now duplicated by what
upstream has added. Switch to what upstream uses to avoid merge
conflicts.

Change-Id: I5ae02564dcacc19d33b46220fb9bfc885b7210ac
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
gpu: ion: Fixup merge conflicts and old code

During the course of merging patches, some of the merge conflict
fixups have resulted in minor differences from the upstream
tree. Additionally, some old code from removed features is
still present. Fixup those differences to avoid merge conflicts
and remove old code that isn't needed anymore.

Change-Id: I593162ca0b3482ad338173401a02cc03f94f9213
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
ASoC: wcd9320: Enable speaker clip detection

Codec has 4 banks of clip pcm registers and they need
to be enabled for capturing pcm values.
Clip pcm registers in each bank will hold the values of pcm
samples that triggers the clip interrupt.
This change exposes the bank selection configuration to client's
of codec driver.

Change-Id: I285931df878ee621095a8b1bfc4d81fcbe2a4375
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
mdss: dsi: Power down DSI phy on panel off

Whenever the primary panel on the device is turned
off, we need to power down the DSI phy in addition to
voting off all the regulators used by the DSI controller.
This avoids the current leakage in low power mode.

Change-Id: Ic53a3a23c957290e66b43cac40aaaaa198719e9d
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
asoc: msm: Add afe loopback support for 8x10

Afe loopback is required for 8x10. Primary mi2s is used for tx,
secondary mi2s is used for rx.

Change-Id: I8c43aa0ac1ffeef87a8bf3dc8472f8dacb117eff
Signed-off-by: Fred Oh <fred@codeaurora.org>
ASoC: msm: qdsp6v2: Add FM support for msm8x10

FM playback is one of hostless playback. Update routing table for
msm8x10.

Change-Id: Ifa98b0b19827340d01b7f166ed4edbb8721fa9ba
Signed-off-by: Fred Oh <fred@codeaurora.org>
ASoC: msm8x10: Add all FEs/BEs to 8x10 driver

This is required FEs/BEs for 8x10 driver machine driver.

Change-Id: I64c4bb4a2535273939470e77bc65d9893c96b105
Signed-off-by: Fred Oh <fred@codeaurora.org>
ASoC: msm: qdsp6v2: Validate buffer size

This change returns error to userspace client if
pcm samples to be copied is greater than the kernel
buffer size.

Change-Id: I24e8f9bbdbe0a66572e4b3ee86183b78db340863
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
msm: mdss: disable cropping for bandwidth compression

cropping on the pipe shouldn't happen for Bandwidth compression.
Also, interlaced formats should have w,h as multiple of 4 to
avoid odd sizes after division.

Change-Id: I688898e9917bcea0b193c78ed3ccd0f7e5b6acfd
Signed-off-by: Sree Sesha Aravind Vadrevu <svadrevu@codeaurora.org>
msm: mdss: Prevent potential deadlock scenarios.

Need to avert deadlock issues in failure cases.

Change-Id: I373951acea7dc950bb560c64475866ebad245034
Signed-off-by: Sree Sesha Aravind Vadrevu <svadrevu@codeaurora.org>