MLK-17088: mipi_csi: improve the compatiblility of S_FMT
authorGuoniu.Zhou <guoniu.zhou@nxp.com>
Wed, 13 Dec 2017 07:15:40 +0000 (15:15 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:51:49 +0000 (14:51 -0500)
commit8b1aea5d84d2a561eb7e2f21cf183208a9d99673
tree8e18238c50702554d2fa2f8aecc180a9af58cfb6
parent1d1c3448948378a38afc79787c80159b7c7b3d0e
MLK-17088: mipi_csi: improve the compatiblility of S_FMT

1) When app call S_FMT ioctl, they may only set width, height
   and format of image. So driver can't determine whether it
   support the specified format by checking the format fourcc
   value and the plane number.

2) Driver should also fill plane and sizeimage member in S_FMT
   ioctl, because some apps use this information after they call
   S_FMT ioctl, such as gstreamer.

Reviewed-by: Sandor.Yu <sandor.yu@nxp.com>
Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
drivers/media/platform/imx8/mxc-isi-cap.c