media: staging: rkisp1: cap: remove unsupported formats
authorDafna Hirschfeld <dafna.hirschfeld@collabora.com>
Tue, 1 Sep 2020 11:16:04 +0000 (13:16 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 27 Sep 2020 08:58:03 +0000 (10:58 +0200)
For Ycbcr packed formats only YUYV can be supported by
the driver. This patch removes the other formats.

Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Acked-by: Helen Koike <helen.koike@collabora.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/rkisp1/rkisp1-capture.c

index a7635f8d5c6f2d1fd42fe10ed158e9805f7730a3..dc2c1f93cb2b7a42f84fa05d65244895d4aa86c4 100644 (file)
@@ -88,13 +88,6 @@ static const struct rkisp1_capture_fmt_cfg rkisp1_mp_fmts[] = {
                .fourcc = V4L2_PIX_FMT_YUYV,
                .uv_swap = 0,
                .write_format = RKISP1_MI_CTRL_MP_WRITE_YUVINT,
-       }, {
-               .fourcc = V4L2_PIX_FMT_YVYU,
-               .uv_swap = 1,
-               .write_format = RKISP1_MI_CTRL_MP_WRITE_YUVINT,
-       }, {
-               .fourcc = V4L2_PIX_FMT_VYUY,
-               .write_format = RKISP1_MI_CTRL_MP_WRITE_YUVINT,
        }, {
                .fourcc = V4L2_PIX_FMT_YUV422P,
                .uv_swap = 0,
@@ -197,16 +190,6 @@ static const struct rkisp1_capture_fmt_cfg rkisp1_sp_fmts[] = {
                .uv_swap = 0,
                .write_format = RKISP1_MI_CTRL_SP_WRITE_INT,
                .output_format = RKISP1_MI_CTRL_SP_OUTPUT_YUV422,
-       }, {
-               .fourcc = V4L2_PIX_FMT_YVYU,
-               .uv_swap = 1,
-               .write_format = RKISP1_MI_CTRL_SP_WRITE_INT,
-               .output_format = RKISP1_MI_CTRL_SP_OUTPUT_YUV422,
-       }, {
-               .fourcc = V4L2_PIX_FMT_VYUY,
-               .uv_swap = 1,
-               .write_format = RKISP1_MI_CTRL_SP_WRITE_INT,
-               .output_format = RKISP1_MI_CTRL_SP_OUTPUT_YUV422,
        }, {
                .fourcc = V4L2_PIX_FMT_YUV422P,
                .uv_swap = 0,