msm-camera: Fixed MIPI raw snaspshot issue 8x10

Removed clearing of interrupt mask register after the streamon is done
add a reset logic for VFE after all the streams are inactive

Change-Id: Ib8999baae8f75498dcc813aa01fbb44f8c104e94
CRs-Fixed: 583125
Signed-off-by: Chandan Gera <cgera@codeaurora.org>

Conflicts:

	drivers/media/platform/msm/camera_v2/isp/msm_isp32.c
msm: camera: Cleanup msm_generic_buff list while close

Cleanup the camera msm generic buffer manager list
when all v4l2 nodes are closed.

Change-Id: I27636533621d3329bcc5dffba8c003d2cdc252c2
CRs-Fixed: 599983
Signed-off-by: Azam Sadiq Pasha Kapatrala Syed <akapatra@codeaurora.org>
msm: camera2: add api for set actuator for manual af

this is to support fr18291 manually set focus position

Change-Id: Idec86177abc265c38fd48e18d1320c5ae40b7f03
Signed-off-by: Yongui Mao <yongguim@codeaurora.org>
msm: camera: Return current lens position in actuator driver

Actuator user space driver requires lens position after move focus
call returns. Return lens position as part cfg params for move focus
ioctl.

Change-Id: I8fdce16c192db8685b1a2ac66a2cba052d64423c
Signed-off-by: Sreesudhan Ramakrish Ramkumar <srramku@codeaurora.org>
camera: add LGE_CHANGE
msm: vidc: Fix various decoder downscalar issues

Queue output buffers without extradata to Venus.
Venus is returning UPSCALE_NOT_SUPPORTED error when
output2 size is bigger than output size. This change
suppresses this error as it is not fatal.

Change-Id: I8a3f708092b131400b88828f6c1a684f08b3f18a
Signed-off-by: Manikanta Sivapala <msivap@codeaurora.org>
msm: vidc: flush queued work during device suspend

This change flushes any queued work related to power collapse,
once the device is power suspended.
There are applications which do not destroy video instance
on suspending the device. For such applications, if the device
is power suspended, video driver does not prepare venus for
power collapse.
Considerable power saving is observed by power collapsing
venus before the device goes in suspend state.

Change-Id: I11252e45b10d0d3d3eefb38994acd083c847bbb8
Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org>
msm: vidc: queue output-1 buffers to FW

While seeking, FW returns all the buffers to host.
In multi-stream usecase like downscaling, the o/p
buffers need to be re-queued back to FW.

Change-Id: I5ea8534c06b3e48dadd4d73ab4432a13687a99c1
CRs-Fixed: 631827
Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org>

Conflicts:

	drivers/media/platform/msm/vidc/msm_vdec.c
msm: vidc: add kzalloc success check for new q6 HAL session

Memory allocation must be verified before proceeding.

CRs-Fixed: 606522
Change-Id: I809acc21dcd5e680827feb5d0fa8f45814bf4773
Signed-off-by: Jorge Solano Altamirano <jsolano@codeaurora.org>
msm: vidc: add input check for hfi q6 function.

The input parameters may be null. This change adds input checks at
function q6_hfi_iface_eventq_read

CRs-Fixed: 606516
Change-Id: I801a9d3249e9b97fa218fc29bc3a2a0e7a0d4d3f
Signed-off-by: Prasad Nallani <pnalla@codeaurora.org>
msm-vidc: Modify Q6 HFI not to alter VP8 max supported width

Modify Q6 HFI not to alter the core returned max supported
width and height. Whereas venus HFI will alter the the max
supported width and height to 1080p.

Change-Id: I901862e8fc98a1a6d80e62e7ab2d6477de5f07a4
Signed-off-by: Ravi Kiran Vonteddu <rvontedd@codeaurora.org>

Conflicts:

	drivers/media/platform/msm/vidc/msm_vidc_common.c
	drivers/media/platform/msm/vidc/venus_hfi.c
	drivers/media/platform/msm/vidc/vidc_hfi_api.h
msm-vidc: Modify HFI not to alter VP8 max supported width

Modify HFI not to alter firmware returned max supported width
and height and make generic both for Venus and Q6. Remove
creation of debugfs file for VP8 mode.

Change-Id: I77d9077a79214d90f59eb7314bb66e310b5a418f
Signed-off-by: Manikanta Sivapala <msivap@codeaurora.org>