msm: vidc: enable video core clock to 266Mhz

This change will ensure that video core clock is
set to 266Mhz on supported devices, else fallback
to 228Mhz.

Change-Id: Ie9d28b218150f2e21fa95c4d4346251ddab3ee50
Signed-off-by: Srinu Gorle <sgorle@codeaurora.org>
msm: kgsl: Make the GPU device aware of the next pending event

The adreno core needs to know what the next event pending for
any given context is so it can mark the interupt to be fired.
If this isn't done then some timestamps that don't have a
matching waittimestamp call won't fire an interrupt. This is
dangerous on the last interrupt/event before a context goes
away.

Change-Id: Ic0dedbad71f6de07b43b0656128c76509326d645
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
ASoC: msm: qdsp6: Add a separate condition for ADM_OPEN cmd response.

-Added a separate condition to synchronize ADM_OPEN command
from other ADM commands.

Change-Id: Icbf71400fb575cc8de8c5c209b10aa880c162f9a
Signed-off-by: Ashish Jain <ashishj@codeaurora.org>
media: dvb: Out-of-Band (OOB) commands support

Extend demux API with ability to push OOB commands to the DVR device
during playback from memory. OOB command is then received by all running
filters. Two types of OOB commands are defined:

1. End-of-Stream (EOS) - allow user to declare source stream has reached
its end. This will make pending data readable to user and block any more
data from being output.

2. Data markers - these allow user to mark with an identifier certain
points in the source stream, and be notified via the demux filters when
those are reached. Data markers are currently not implemented.

Change-Id: Id5b08dc96cd4e296fa2ab29ddcbb7bce3bd4d520
Signed-off-by: Gilad Broner <gbroner@codeaurora.org>
Merge "msm: kgsl: Make the GPU device aware of the next pending event"
msm: vidc: Remove delayed unmap flag in ion_map_iommu()

This change fixes the iommu map failure in movie studio
application by removing the delayed unmap flag in
ion_map_iommu(). The delayed unmap will cause the
iommu buffer to be unmapped only when all the clients
unmap the buffer.

Change-Id: I9e226fd56fecfa292e4d77aa94b2883bcfbf6ec2
CRs-fixed: 464374
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
Merge "media: dvb: Out-of-Band (OOB) commands support"
Merge "ASoC: msm: qdsp6: Add a separate condition for ADM_OPEN cmd response."
msm: vidc: Free buffer pool entry and then delete address table

Free the buffer pool entry first and then delete the
address table (which will unmap the buffer with iommu)
else we might get a corner case where the entry was not
freed but the buffer is unmapped and the next buffer is
mapped with the same physical address which is still
available in the buffer pool entry, which results in
video recording failure.

Change-Id: I6978d5e5de35db63f43a7f38c58940216217b676
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
msm_fb: display: Make vsync stats reading multi thread safe.

  There are chances where one thread blocks till timeout
  even after wakeup call made when multiple threads
  try to read the VSYNC stats. The present logic takes
  care of un-blocking all threads after wake up being
  called in ISR.

Change-Id: I02c10a335a38a94b637e69ad4ee4996c9d717b51
Signed-off-by: Ananda Kishore <kananda@codeaurora.org>
msm_fb: Proc entry in kernel for stats

Proc entry made to count number of frame repeats,
frame count from last frame repeat and frame count

Change-Id: I229a7992dcaa755eb7c1de393a2b19f860e5469b
Signed-off-by: Sakshi Sharma <sakshis@codeaurora.org>
msm: footswitch: Add separate enable hook for VCAP FS

Device hang is seen when multiple iterations of the VCAP footswitch
enable followed by VCAP H/w operations and then disable. To decrease
inrush current into the core, wait until the core is fully powered on
before enabling its clocks.

CRs-Fixed: 477575
Change-Id: I74e85bb8d299d7118fae0f93d833bbc7a54c5ea6
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Merge "msm: footswitch: Add separate enable hook for VCAP FS"
Merge "msm_fb: display: Make vsync stats reading multi thread safe."
Merge "msm_fb: Proc entry in kernel for stats"
msm_fb: hdmi: Fastboot param resolution change

This change fixes the fast boot param resolution set.

Change-Id: I2358181aa7279ffbfbe07ff2c4d4c3b36183d8ed
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
msm: Add support for ION Flushing without virtual address

Video has very large buffers to be flushed. Due to lack of
vmalloc space, ion_map_kernel cannot be called on each of
the video buffers. With this change the ion handle can be
flushed without the need of the kernel mapping.

Change-Id: I9175e4a441887368cfd7232c60cb9a282fdb9a62
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
Merge "msm: vidc: enable video core clock to 266Mhz"
msm: vidc: Do not reset VCD_FRAME_FLAG_DATACORRUPT flag for VC1

- To propagate VCD_FRAME_FLAG_DATACORRUPT flag to IL client, dont reset.

Change-Id: I25f987322010697dab4bda0979915cf407919b40
CRs-Fixed: 472798
Signed-off-by: Srinu Gorle <sgorle@codeaurora.org>
Merge "msm: vidc: Do not reset VCD_FRAME_FLAG_DATACORRUPT flag for VC1"