msm_fb: display: Change perf level for VGA video

Change perf level to 3 from 4 for VGA and less
resolution video use cases. This avoidsunder runs
seen with camera/camcordeuse caseses on 8660 and older
platforms.

CRs-fixed: 338044
Signed-off-by: Mayank Chopra <makchopra@codeaurora.org>
(cherry picked from commit 56daa2d8864d4de16d131b943af5f5fb3ce50b24)

Change-Id: I9212220e941e1add9380e3935486febdb5dd6d10
Signed-off-by: Gopal G Goberu <ggober@codeaurora.org>
mach: increase camera heap size to 66 MB.

In order to support full size ZSL feature on 8960, we need a
total of 120 MB. This change increases the camera EBI heap size
to 66 MB, which combined with 54MB from SMI gives us
120MB of carved out memory.

Change-Id: Id0e3adb7cae4f209d061328526ecc7143371fcfe
Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>
msm: camera: Fix the stretch issue in Camera Preview

In non zsl camera preview mode, two vfe outputs are configured as
preview and video outputs. Greater of the two is output from main
scaler and the lower one from the secondary scaler. In Camera preview
mode,
application matches preview dimensions aspect ratio to snapshot
dimensions and in camcorder mode it is matched to video.

In Current design, We have below scenarios for Non ZSL Camera Preview

Case1: Main Scaler is preview and secondary scalar is video
  In this scenario no error is observed
Case2: Main scalar is video and secondary scalar is preview
  In this scenario since preview output in derived from video but the
aspect ratio may not match in camera mode, so we see stretch in camera
preview.

  This issue is fixed by configuring only single VFE output as per
display dimensions in Camera Preview  since the second video output
is never used

CRs-Fixed: 343884
Change-Id: I25a82b417a3ed1b28ea243c6ce988c23d5fed4a7
Signed-off-by: Nishant Pandit <npandit@codeaurora.org>
ASoC: msm: Fix mute issue in LPA

In event of an under-run, driver is not able to start again.
Memset the buffer to play silence while userspace receives the
next set of data and copies it into the mmap buffer.

CRs-Fixed: 356297
CRs-Fixed: 359764
Signed-off-by: Tejas Shikhare <tshikhar@codeaurora.org>
(cherry picked from commit 0c2a7704c764371e63e27d1cbbcfe4646d7ea84f)

Change-Id: I3b01599753f3cbe5fa3f0711f08b90de63e00166
Signed-off-by: Gopal G Goberu <ggober@codeaurora.org>
msm_fb : Disable power collapse before VSync to negate wake up latencies.

For a 16ms frame period  the CPU may go into deep power collapse.
Based on the power collapse exit latency for that low power mode,
the frame period gets extended by the latency to wake up the CPU at the
next VSYNC. This results in a user experience glitch. Adding an hrtimer
to wake up the CPU few ms before the Vsync and disabling power collapse
compensates for the extra time spent in waking up the CPU out of deep
sleep. On timer expiry, set wake lock to veto idle power collapse till
the next VSync. Thewake lock is released on the next VSYNC occurrence.

CRs-fixed: 368740
Signed-off-by: Anitha Anand <anithas@codeaurora.org>
(cherry picked from commit 7a77c7ca07bbcc390967552d0973238ac48b5597)

Change-Id: Id15a3297bf444180a5d172436a186d3ea06e6529
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
msm: camera: correct op_pixel_clk value

1) The op_pixel_clk is higher than the actual output rate,
when vfe get the value and set the same for vfe clk, it
set to higher frequency which will draw more power.
2) The timing issue is due to the vfe timing requirement
for blanking time. Since we reduce the vfe clk, the
blanking lines required more to meet the minimum
requirement.

(cherry picked from commit fc630dceef8a6c0727f052318ea3076e360f6f0f)

Change-Id: I7828c3cb514ba6395e1daf55ddec13226f9a102e
Signed-off-by: Hody Hung <hhung@codeaurora.org>
power: pm8921-charger: fix vbus draw for 0 mA request

A missing equal sign avoids the disabling of the charger
when calling the pm8921_vbus_draw API.

Fix this by adding the equal sign for the 0 mA VBUS request
to ensure that the charger is forced to run off the battery.

CRs-Fixed: 366285
Change-Id: Ie8c926cf41782ddccfb5fc0a896b2cbae4135b49
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
Signed-off-by: Ram Kumar Chakravarthy Chebathini <rcheba@codeaurora.org>
Removed unnecessary comment
Revert "msm_fb : Disable power collapse before VSync to negate wake up latencies."

This reverts commit d9b5f8f5ed7d6b79798ecdc817abeaf11f8174c4.
Revert "Revert "msm_fb : Disable power collapse before VSync to negate wake up latencies.""

This reverts commit 0f5b0fb986f6861aa8e149af781d835d2930583d.
More over clocking tweaks - Higher L2 and Bus speeds