msm: camera: Fix for camera crash

In msm_server_control function add a check for src
and dest before calling memcpy function to avoid
kernel crash

Change-Id: I814f654c223892a21d585fef31bd6ef75254c108
CRs-Fixed: 444081
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
d2 camera: squash commits from caf

msm-camera: Configure VPE for YV12
Configure VPE for YV12 format to make sure that all the three planes of
a frame have valid addresses in case of VPE processing.
CRs-fixed: 344048
Signed-off-by: Alekhya,Monika <malekh@codeaurora.org>
(cherry picked from commit 977e89e413c3a38de569ffed76d3461d2fdb0db6)

Change-Id: Ibe732266ed518fc355046d2bc748552a411d0bbf
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>

msm: camera: Fix color invert issue
The bayer pattern will invert if the frame lenght line is odd. The
change ensures frame length line is always even.
Change-Id: I7f796b8b0580a563c376f13ed781535df7f54389
Signed-off-by: Rajakumar Govindaram <rajakuma@codeaurora.org>
(cherry picked from commit ad09ecea54bb88dea5145a08f5b0c380f053d2c4)

msm-camera: Add Double Padding Support in Gemini
Add support to handle the padding on both sides of the input buffers to
the Gemini driver to support rotation in ZSL mode
Change-Id: I4bc0ef5a3d0f551021afbb93fd57acdcc83875b4
Signed-off-by: Ashwini Rao <ashwinik@codeaurora.org>
(cherry picked from commit 7a632c64debde89a280b20ca01e5ec1f27fe947f)