fix up indentations
msm_fb: cleanup lg comments

Change-Id: I0be65bae79fb507e3c92d70daf488f6ce3e4aec9
msm_fb: Fix chroma offset calculation for YUV as source format

For frame composition using MDP, fix the calculation of source
chroma offset pointer to be programmed to MDP hardware whenever
the crop 'y' value is non-zero. This prevents green lines/chroma
shift and other artifacts from being seen on the panel.

CRs-fixed: 438027
Change-Id: Id6c2a7d2c2709edd0bacfc049df360e1c0f3b90f
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
msm_fb: Create sysfs nodes during frame buffer initialization

During boot up, create two sysfs nodes and write the xres and
yres details of the panel used. This is required to support
dynamic DPI value setting based on panel resolution.

CRs-fixed: 443699
Change-Id: I5b85c95653e6cb7aba2aea103c23b587ac01795e
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
msm_fb: display: skip one vsync event after enabling mdp and vsync clk

Both mdp and mdp_vsync clks are disabled for command mode panel when
no new frames are being played. When they are re-enabled if new
requests come in, the first vsync event which is signaled by read
pointer interrupt arrives in a random time due to the sync between mdp
and panel, so skip it to maintain correct vsync timing.

Change-Id: I683b765e4a16d3d152b9270f5982234b94921f1e
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
msm_fb: display: wake up system before vsync for cmd panel

Add this feature for cmd mode panel. The feature is to avoid frame
drops due to power collapse and it is already present for other
display interfaces.

Change-Id: Ic68f41cd59931294b592577475ed7480459f2cf8
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
msm_fb: display: add panel's late_init

Some panels need to be initialized after panel is on.
Add late_init to support this feature.

CRs-fixed: 433011
Change-Id: I73c623d1fe52363f070af79ce4bf7774cd84689e
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
msm_fb: display: allow backlight update after first update

bl_updated is set to non zero at pan_display if unset_bl_level
is not zero. And unset_bl_level is not updated unless bl_updated
is zero. There is a situation that bl_updated stay as zero after
first pan display due to unset_bl_level is still zero which
prevents back light from being changed until next pan display
even though unset_bl_level changed. This patch break up this loop
and allow back light being changed right after first pan display.

CRs-fixed: 471983
Change-Id: I75504206853517672f968e8ea8fc6782a282e326
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
kgsl: port jb_2.5 kgsl

kgsl from AU_LINUX_ANDROID_JB_2.5.04.02.02.040.414

Change-Id: I88eee5dc2dfabe6dc4d059b0d97cbe91c34da06f
ion: ion mini upgrade

Change-Id: I39a7743690cf5115f28495d1206746421073364c
msm: audio: include msm-specific ion header

All msm_ion clients need to use <linux/msm_ion.h> instead of
<linux/ion.h>

Change-Id: Ida4e46d0f257e8c27467a8c13f7a0eb710dd3f5c
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
ASoC: msm: include msm-specific ion header.

All msm_ion clients need to use <linux/msm_ion.h> instead of
<linux/ion.h>

 Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
(cherry picked from commit 71a6ac9d4fc5e88efd57c2077caaff34afa36603)
(cherry picked from commit 353fac8a22a0253e990c745232d45586adb0defb)

Change-Id: I26165047d3361802ff3957b54a645544a8e9c3b5
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
msm: vidc: include msm-specific ion header

All msm_ion clients need to use <linux/msm_ion.h> instead of
<linux/ion.h>

Change-Id: I521a079686780c117ccc9d91f27b9c59aaeafa04
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
msm: display: include msm-specific ion header

All msm_ion clients need to use <linux/msm_ion.h> instead of
<linux/ion.h>

Change-Id: I7b5390d7cb9cb5b03227b77def248c48b7bc7fa2
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
msm: camera: include msm-specific ion header.

All msm_ion clients need to use <linux/msm_ion.h> instead of
<linux/ion.h>

Change-Id: I6acf8da3f6a6ed3222aa5e7eb85b67bc2f9e68b9
lge_boards: include msm-specific ion header

All msm_ion clients need to use <linux/msm_ion.h> instead of
<linux/ion.h>

Change-Id: If418ed4fafaeca8c893c48996a985aeb9b341f68
Revert "msm_fb: Fix chroma offset calculation for YUV as source format"

This reverts commit 5cd53d055d50b42dc02046d4aa9219fffbb5cc86.