vidc: Add metabuffer mode support for encoder driver
vidc: Add metabuffer mode support for 720p encoder driver

Added 720p core video encoder driver changes, this change
depends-on 93816, which allows clients to register buffers
in data path in meta buffer mode.

Change-Id: I41f74ceabe348de37763d9728090238d71a786bd
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
vidc: 1080p: Enable closed gop in MPEG4 encoder

Change open gop to close gop encoding for MPEG4 ASP.

Change-Id: I2e25b00a28848c3e7d6d971620830065fbd5b50e
Signed-off-by: Ashray Kulkarni <ashrayk@codeaurora.org>
CRs-fixed: 318148
msm: vidc: Add a check for fullHD playback.
vidc: Map firmware buffers after memory clocks are ON.
vidc: Enable clocks required for secure playback.

The video driver should enable iommu clocks for vcodec, mdp and
rotator for content protection playback. Expose clocks to video
driver to enable for secure playback.

Signed-off-by: Gopikrishnaiah Anandan <gopikr@codeaurora.org>
(cherry picked from commit 4d05ed377635f1955412c580d2e925babd0fa122)

Change-Id: I412d6a1370adf2612aa73ec4db94e7b02eecec5a
Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org>

Conflicts:

	arch/arm/mach-msm/clock-8960.c
vidc: Add support for video playback secure session.
vidc: 1080p: Increase context memory size of the H.264 encoder.

Increasing the context memory size of H264 encoder
to 20KB as it is a requirement from 11302011 firmware.

Signed-off-by: Rajeshwar Kurapaty <rkurapat@codeaurora.org>
(cherry picked from commit 6fb6e94208d7eacebf159127b558515ac77ea164)

Change-Id: I6b269fcbd45b7bb2460c7a2de0a8fb8855aca979
Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org>
msm: video: Update macros to use readl/writel

Currently, video code uses macros other than readl/writel
to read/write from memory mapped registers. While technically
correct, this prevents readl/writel logging from working as
expected. Change the video macros to use readl/writel
internally.

Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
(cherry picked from commit 51c0e6541a6eab7510def11804fb0b379d093b89)

Change-Id: I69401584b9862cfa0fae5bcae7375af65749a745
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
vidc: Fix for release of secure session.

When the video driver is released ,the memory is un protected
by calling the unsecure heap API, It was observed that
sometimes when the memory is unprotected without closing
the device the video core was not responding, after testing
it was found the call sequence of unprotecting and closing
of the video driver was not proper, hence first close the
video driver and then un protect the memory.

CRs-fixed: 336365
Signed-off-by: Deepak Kotur <dkotur@codeaurora.org>
(cherry picked from commit a4036e1a530eaa235c01c4eceadf48379964c8a4)

Change-Id: I77d5713b005f61061978195d8e3d04a82d17084d
Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org>
vidc: Increase size of h264 encoder's mv buffer

Corruption is seen in the output bitstream in hfr recording
mode.

The output corruption is avoided by increasing the size
of the mv buffer.

Change-Id: I6fed4329a9be772cb680e268cf0c618d8a350f14
CRs-Fixed: 340590
Signed-off-by: Luis GarciaCalderon <luisgc@codeaurora.org>
(cherry picked from commit 8cd67fa36db83b5757c61de4b3bed567bc800b14)
Update configuration for better script parameter sets