msm: vidc: add new control for limiting i/p buffer size

Take the minimum of the size calculated by driver using
max width and height supported and the size set by client
for input buffers. Change interface to get input and
output buffer sizes.

Change-Id: Ida75a5718013cc852df74ea69a3b4e9a0c47d4a6
Signed-off-by: Manikanta Sivapala <msivap@codeaurora.org>
Signed-off-by: SungHun Ra <sktjdgns1189@naver.com>

Conflicts:
	drivers/media/platform/msm/vidc/msm_vdec.c

Conflicts:
	drivers/media/platform/msm/vidc/msm_vdec.c
	include/linux/videodev2.h
msm: vidc: Add support for different errors

When hardware is overloaded or when max number of clients are
reached in driver or firmware, hardware error is sent to video
client. This change is to replace hardware error with actual
errors.

Change-Id: If15fd272320f7a0e85f5abe9fb6863cc7292bda9
CRs-fixed: 575852
Signed-off-by: Deepak Verma <dverma@codeaurora.org>

Conflicts:
	drivers/media/platform/msm/vidc/msm_vidc_common.c