msm: wfd: Pass proper ion buffer handle to video driver

This change gets ion handle corresponding to output
buffer and passes it to the video driver for ION
kernel mapping.

Change-Id: Ie6783f160029119f0df36f6d4a2e14c737b80edc
CRs-fixed: 508888
Signed-off-by: Deepak Verma <dverma@codeaurora.org>
msm: wfd: Flush encoder after stopping VSG

VSG_STOP's completion is dependent on all buffers being returned back
to VSG. Hence, flush encoder earlier so that the core returns all input
buffers back.

Change-Id: I0324a4c1ec04bc91fef94b11b54c2721dbf73322
Signed-off-by: Srinu Gorle <sgorle@codeaurora.org>
Revert "msm_fb: display: delay commit video tile frame size register"

This reverts commit 7a71e5fdabb38c2bdfc3da56ea30b38450414714.

Change-Id: I90024840845cc508ea2feace2a5e84e6f9f32e89
Signed-off-by: Mayank Chopra <makchopra@codeaurora.org>
msm_fb: display: Program TILE video frame size in dma ISR

Since, video tile frame size register is single buffered, its
value takes effect as soon as it is programmed. Single buffered
registers like this should be configured very close to the vsync
to prevent issues like flicker or artifacts.
Program this register in dma ISR to prevent flickers and IOMMU
page faults.

Change-Id: Ifa770e4b4f29d6e4070e51388043422cc60e5872
Signed-off-by: Mayank Chopra <makchopra@codeaurora.org>
msm: vidc: Use min_dpb from resource tracker in smooth streaming mode

Get min_dpb from resource tracker always if smooth streaming
mode is enabled to handle number of output buffers properly.

Change-Id: Ic46f76061f3895fda44e1d8e94198f898e5edf9b
Signed-off-by: Deepak Verma <dverma@codeaurora.org>