msm_fb: display: wake up system around vsync

To avoid frame drops due to power collapse,
wake up cpu right before vsync.

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

Conflicts:

	drivers/video/msm/mdp4_overlay_dsi_video.c
	drivers/video/msm/msm_fb.h
msm: display: display idle checking update

msm_fb_blank_sub might be called for UNBLANK from
display update work queue, which is at commit state.
Idle detection is invalid in this situation
Add detection for external snd earlyuspend/resume interface.

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

Conflicts:

	drivers/video/msm/msm_fb.c
Revert "lge: display: fix video lock-up issues and vsync irq problems"

This reverts commit e95707286903b010d7ebcda8daac92b729d1ae39.
Revert "lge: display: fix the vsync issue in F160 devices"

This reverts commit b5799eabc36fd2283b6b5163065488b5ce02c8d7.
Revert "lge: display: fix for broken display after sysfs mdp_probe patch"

This reverts commit e3d54ed5f8331b37a2fa95684029a0541bcba850.
Revert "msm_fb: display: Create sysfs entries in mdp_probe for MDP4 targets"

This reverts commit 65a4a2b15e33bfb2583d4d1f664dd4ac5cb070ef.

Conflicts:

	drivers/video/msm/mdp4_overlay_dsi_cmd.c
	drivers/video/msm/msm_fb.h
msm: display: reset vsync state when display is turned on

In the case that vsync ctrl is unbalanced, vsync IRQ is cleared
in suspend,  vsync cannot be enabled after resume.
Clear the status when display is turned on

CRs-fixed: 449155
Change-Id: I5ecf23053b60d1fbd91f042758d67d39c83ab444
Signed-off-by: Ken Zhang <kenz@codeaurora.org>

Conflicts:

	drivers/video/msm/mdp4_overlay_dsi_video.c
lge: d1l: add support for file system security and xattr
Revert "msm: vidc: Allow client to request sps/pps per IDR frame"

This reverts commit 6d28301bae4098491e4eb8f623d62017b504380e.
Revert "msm: vidc: Avoid memset of list elements in the buffer entry."

This reverts commit 1b2cde13e3dfad00e0befeca19f3ef1c05968fbc.
Revert "msm:vidc: Amend error checks on ION API failures"

This reverts commit be2232e339f3816ae1ad2bc6ccea62c2011b6f85.
Revert "vidc: 1080p: Reset meta data offset to zero"

This reverts commit 38721a176ca69c0b8f093566ce87e2d9be56a393.
Revert "msm: vidc: Enable turbo mode based on client request."

This reverts commit fea835f949c323a133feddff88b258f26491ff62.
Revert "msm: vidc: Reset data corrupt flag for non-H264 decoder"

This reverts commit 70fcecb72af207d66e3c55c86d05c47ae7b22afc.
Revert "vidc: Handle EOS with Codec config buffer."

This reverts commit 978cc40ab088cbd0cf031f43f8f122cc9fd57dec.
Revert "vidc: 1080p: IDR picture type support for H264 format"

This reverts commit 6cfe32a96cc3b6be0ab65b1a2973ad1984ed5a64.
Revert "msm:vidc: add support for pause in eos state"

This reverts commit daa921e2f81d0b6b434822d91af9c6735f0a6250.
Revert "msm: vidc: Add support for ION memory on 8x55 target"

This reverts commit 082418f2892bcdbd8b829560c8478627f0b90a0c.
Revert "video: msm: wfd: Add turbo mode support"

This reverts commit 5968a38ac07f851574344177316ae499889bd6c1.

Conflicts:

	arch/arm/mach-msm/include/mach/board.h
vidc: Modify shift value for extended PAR width.

Currently extended pixel aspect ratio register shift
value for width is 15. Due to this the actual width
value returned by core is getting doubled while
sending to user space. Now correct values are returned
by modifying the shift value to 16.

CRs-fixed: 362985
Change-Id: I996bfc79b327492a791017fd5b33638f82240d76
Signed-off-by: Rajeshwar Kurapaty <rkurapat@codeaurora.org>