msm: mdss: Add support for macro tile formats

MDP now supports tile formats on APQ8084. Macro tile formats
are aligned with number of memory banks and access channels to
improve performance.

Conflicts:

	Documentation/devicetree/bindings/fb/mdss-mdp.txt
	drivers/video/msm/mdss/mdss_mdp_pipe.c
	include/uapi/linux/msm_mdp.h

Change-Id: Ie566cc12b38f81d111f378f19883433bcc71fa48
Signed-off-by: Shalabh Jain <shalabhj@codeaurora.org>
msm: mdss: calculate mdp clk requirement of each pipe with the fudge factor

Currently the mdp clk margin is added for the final calculated max of
all individual pipe clk requirements to avoid underruns. When this
final rate is greater than the max rate that h/w can support, pipe
decimation mode may not be enabled to avoid underruns. So, move this
margin calculation into each pipe clk so that when any individual pipe
has higher clk rate than the max, pipe decimation can be enabled.

CRs-fixed: 538803
Change-Id: Ia4dc500cfc27e7e4d08f03066b511ed3e4ae4664
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
media: msm: Freeze H camera code

 * Freeze camera code to avoid userspace breakage.

Change-Id: Id5137389249019e42087f0e2e1a959ac18e36cc8
Merge branch 'kk_3.5_rb1.19' of git://codeaurora.org/kernel/msm into cm-11.0

Change-Id: I8cc519ed1b6b72af82923db1968f7a85695ece77
media: msm: Additional changes for H camera freeze

Change-Id: I8adb8b6672b855061585e9175d8d04776fb9f6a6
msm8974: Merge DT changes to Samsung version

Change-Id: I885479e4f26f406887003ca0bf84810fd13976d7
Merge "Merge "Merge "Revert "msm: camera2: add api for set actuator for manual af"."""
msm: wfd: Add timeouts to completions

In the case of Venus going into a bad state and not returning buffers,
timeout of the completion so that the driver isn't stuck perpetually
waiting for a buffer.  This at least gives the driver a chance to clean
up and exit gracefully.

Change-Id: I05dd1e2977999bd17bd79e78eb8882fddf6a4aa4
CRs-Fixed: 589645
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
Revert "msm: mdss: Display splash screen during boot up"

This reverts commit 2f5b7a1d1a0f48dfd4c8dd4f4dcdd1fa3cc60d30.
Revert "msm: mdss: Distinguish BL_DCS_CMD from DCS_CMD on 8x10"

This reverts commit 2b0875ff78d3e4656a8a5155d3de0d7504bdd56b.
ASoC: Copy audio_effects header to userspace

Change-Id: I62f4713ac32fcb15717a9eaa2763728422338617
ALSA: jack: Add support to report second microphone

ALSA jack framework currently supports reporting only
one microphone. Add support to report presence of
second microphone to the userspace.

Change-Id: Id0df7aa222e547da3771f5d61092a959394c10dc
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
ARM: dts: msm8974: Configure micbias3 voltage to 2.7V

Configure micbias3 voltage to 2.7V that powers up
ANC mic lines and to support detection of the ANC
mic using MBHC.

Change-Id: Ifa75dc4b5c6b10662830e0db391f606d2cf69682
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
ASoC: wcd9xxx: Add support for MBHC 5-pole plug detection

Add support to determine the presence of second microphone
on a 5-pole plug used for active noise cancellation.

Change-Id: I85227a00c47fed1d0e4453b77902c1b473097a5b
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
msm: mdss: fix display time out when taking ESD test

Currently, Command engine will be blocked when sending
display off command in ESD test. Root cause is
panel BTA will affect DSI status. Reset dsi driver
when command engine is blocked.

Change-Id: I729b079d2becfad60630fc941d36199f95618eab
Signed-off-by: Shuo Yan <shuoy@codeaurora.org>
Revert "msm: vidc: Disable clock gating for 8x26"

This reverts commit 4a73878e8eef36c661b99afa19122632ccffa084.
Inter frame clock gating was earlier disabled to resolve PDT
issues.Venus clock was getting disabled, when the ARM9 was
still doing bus access.
The final fix is merged as 0435d4a997f43ec1612a796ed871dbc71ae98368.
With the fix, clock gating can be enabled again to save power
during Interframe clock gating as well as during power
collapse.Hence the revert to enable Interframe clock
gating.

Change-Id: I5c9815cd6281535654f55aa72f15715fc7f747a5
Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org>
msm: mdss: add retire fence support

Retire fence timeline should follow the actual panel vsync more closely.
For video mode the retire fence can be signaled along with the release
timeline with +1 offset, since this is signaled at vsync.
In case of command mode the panel vsync can be different from buffer
release timeline. To handle the command mode panel vsyncs better, create
a new timeline for the retire fence signaling.

Change-Id: If8a1eb717d733ca215275a8be4f0054091dbc147
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
msm8974: mdss: dsi: uncached alloc for dsi buffer (FIX)

Use uncached allocation for DSI buffers to avoid
cache inconsistency issues introduced with SLUB
DEBUG option enabled. With SLUB_DEBUG, the entries
in cache are somehow polluted which results in incorrect
dsi command values sent to the panel. This change avoids
cached allocation by using dma allocation instead.

Change-Id: Ib769e91d411bf856e7d2e860cff7c1188ff0236e
CRs-Fixed: 488236
Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
msm: sps: use a new flag for disconnecting pipe

Use a new flag to indicate if BAM client has decided to disconnect
a pipe so that we can avoid BAM IRQ handling for a disconnected
pipe.

Change-Id: I1d1e467cf7366f0b00b32674117d381432611e26
Signed-off-by: Yan He <yanhe@codeaurora.org>
msm: mdss: hdmi: hdcp encryption enablement

For hdmi as primary case, enable encryption after
hdcp authentication passes. That is to avoid black
screen before authentication finishes.

Change-Id: I956066369dd7bae5794fe4c2751712293924cf54
Signed-off-by: Ken Zhang <kenz@codeaurora.org>