display: removed the code exhausts file descriptor in mdp overlay and rotator.

Fix the problem crashed while playing video clips and VT camera test.
ion_share_dma_buf is called in pr_debug.
So, it is called depends on build option and makes crash problem.

-------------
A. Dodd note:  Part of this patch was already in mdp4_overlay.c due to
the mako bulk updates patch.  This is the remaining part of the upstream
CAF patch.

Change-Id: I6355a7e9867d985cae229f1ef5316d2c5660abcd
Signed-off-by: Andrew Dodd <atd7@cornell.edu>
msm: rotator: Add pseudo-planar 422 H1V2 dst format for MDP4

For interleaved 422 inputs, rotator outputs MDP_Y_CRCB_H1V2
format on 90 degree rotation. Add support as destination format
for MDP4.

CRs-Fixed: 371303
Change-Id: Ie0f98d40f58bf2cb9bc3298a94cae9c4e89b2f7a
Signed-off-by: Mayank Chopra <makchopra@codeaurora.org>
msm: rotator: clear rotator bus scale handler

rotator bus client will be not registered again without handler reset.

Change-Id: Id35c4e5ad481d0a4401bdb3ee4628ffa9a891467
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
msm: rotator: Support Fast YUV for 8960, 8064 and 8x30 targets.

Add Fast YUV support in rotator for 8960, 8064 and 8x30 based
targets to improve performance for YUV 420P and 420PP inputs.

CRs-fixed: 415246
Change-Id: Ib4cbbd0fd45a82b8d409e7f52ae8bf8420b2c4eb
Signed-off-by: Mayank Chopra <makchopra@codeaurora.org>
msm_fb: display: exit properly when rotator max session reached

When rotator session reach maximum, it should exit without calling
put_img since no get_img had been called.

CRs-fixed: 466462
Change-Id: I951570227ebd81da6dad19c1b897cde84f8d0451
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
board-8064-pmic: Enable RTC write.

Qualcomm's RTC crash workaround is only applicable to
CDMA MSMs - not needed on GSM devices or, as far as I know,
any device with an APQ+MDM combo.

Change-Id: Ie0b0c444e115b0cf8cf3e3d6b3b2b7b711e87308
msm_rotator: Fast YUV logic improvements from Sony kernels

This plus the other patches improves landscape videos,
but portrait orientation videos still cause issues.

Starting to look like the longterm goal needs to be a CAF rebase,
or a whole pile of cherrypicking from upstream.  We've cherrypicked
nearly all the rotator patches we can.  Other possibility is
stuff from the Sony APQ8064 kernel that wasn't in the big mako
bulk update.

Change-Id: Id321ca8290d99e9b4789b4d5f4cd048f14029545
msm_fb: display: Program source address registers correctly

Scale filter FIR uses the adjacent pixels as part of the
processing. Source address registers should be program such that
they point to the first valid pixel so that non-ROI pixels are
ignored. This is done by making source x,y offsets to zero and
adding the computed offset to source address.

(cherry picked from commit 7bcecf0a6a6864accfa1318e33e85ad2cc23f535)

Change-Id: I4de6a6f28aee2cc9896a028164172a4c3bad950f
CRs-Fixed: 380020
Signed-off-by: Mayank Chopra <makchopra@codeaurora.org>