msm: vidc: handle mappings for Dynamic Buffer mode

For dynamic buffer mode, map and register each
buffer during qbuf before sending to firmware,
instead of doing it during prepare_buf. Based on
the buffer ref count, the FBD from the firmware is
unmapped and released back to client or queued back
to firmware.

Change-Id: I91aaf80f0177bcf2e18d3d26b41f5ea131334579
Signed-off-by: Arun Menon <avmenon@codeaurora.org>
(cherry picked from commit 734f0407598ebd8e2e5fcea39588992fb0eb9579)
4 files changed