vidc: Adjust core timeout based on input frame size

Video core is dropping certain IDR frames due to timeout.
This is resulting in video corruption. Computing the core
timeout based on input frame size and programming it for
each input frame fixes the issue.

Change-Id: I75d5039bc09f9be6a3028461ee4a2f13064bf53a
CRs-fixed: 370570
Signed-off-by: Rajeshwar Kurapaty <rkurapat@codeaurora.org>
vidc: fix wrong number of slices in slice delivery mode

The slices completed is not matching with the expected number
of slices in frame done. The fix is available in July firmware
release and this commit will have the corresponding video driver
changes.

Change-Id: Ic0c3c7ce4f9fdbcd6e8bed852a93dcc533d83a02
CRs-fixed: 380629
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
vidc:1080p: Add check for supported video resolution

1080p core can support max resolution upto 1920x1280.
Some of the video clips have a resolution more than
the supported resolution. Changes were made to check
for the supported resolution and stop the playback if
they exceed

Change-Id: Ia3fa9c38eef60d23644e54873849d528377ff722
CRs-Fixed: 362228
Signed-off-by: Mohan Kumar Gubbihalli Lachma Naik <mgubbi@codeaurora.org>
asoc: msm: Add flexible period count to pcm record driver

In pcm recording, if buffers are not requested from dsp at real
 time then dsp drops the buffers and sends partial buffers. This
 is causing record failures. Pcm record platform driver has two
 periods. If system is loaded, read request will not be at real
 time. Add flexible period count to pcm record platform driver
 so client can configure the period count.

CRs-Fixed: 467746
Change-Id: Iadd47979f7b29a01fb8e6479383094a2ed1d93c5
Signed-off-by: Krishnankutty Kolathappilly <kkolat@codeaurora.org>

Conflicts:
	sound/soc/msm/msm-pcm-q6.c
Revert "Initial backport of prima 3.2.3.114"

This reverts commit 495cd730f026480f070521d17583b2aac691faec.
Revert "Revert "Initial backport of prima 3.2.3.114""

This reverts commit d5393af758cb441944908e6e6198533c7ac77d95.
Small fix to prima driver code