From d899b036e2d691bf9c978308f810c8b772656c84 Mon Sep 17 00:00:00 2001 From: Cai YiWei Date: Wed, 9 Jan 2019 16:31:46 +0800 Subject: [PATCH] media: rockchip: isp1: del nonsupport yuv format from isp specification, only semi-planar with uv swap. Change-Id: I3fc713cd6cbab1e12a94d7b8144d7d43a6de5530 Signed-off-by: Cai YiWei --- .../media/platform/rockchip/isp1/capture.c | 59 ++----------------- 1 file changed, 4 insertions(+), 55 deletions(-) diff --git a/drivers/media/platform/rockchip/isp1/capture.c b/drivers/media/platform/rockchip/isp1/capture.c index 64105c1f699d..0fe2135f2ff5 100644 --- a/drivers/media/platform/rockchip/isp1/capture.c +++ b/drivers/media/platform/rockchip/isp1/capture.c @@ -172,22 +172,6 @@ static const struct capture_fmt mp_fmts[] = { .mplanes = 1, .uv_swap = 0, .write_format = MI_CTRL_MP_WRITE_YUVINT, - }, { - .fourcc = V4L2_PIX_FMT_YVYU, - .fmt_type = FMT_YUV, - .bpp = { 16 }, - .cplanes = 1, - .mplanes = 1, - .uv_swap = 1, - .write_format = MI_CTRL_MP_WRITE_YUVINT, - }, { - .fourcc = V4L2_PIX_FMT_VYUY, - .fmt_type = FMT_YUV, - .bpp = { 16 }, - .cplanes = 1, - .mplanes = 1, - .uv_swap = 1, - .write_format = MI_CTRL_MP_WRITE_YUVINT, }, { .fourcc = V4L2_PIX_FMT_YUV422P, .fmt_type = FMT_YUV, @@ -213,12 +197,12 @@ static const struct capture_fmt mp_fmts[] = { .uv_swap = 1, .write_format = MI_CTRL_MP_WRITE_YUV_SPLA, }, { - .fourcc = V4L2_PIX_FMT_YVU422M, + .fourcc = V4L2_PIX_FMT_YUV422M, .fmt_type = FMT_YUV, .bpp = { 8, 8, 8 }, .cplanes = 3, .mplanes = 3, - .uv_swap = 1, + .uv_swap = 0, .write_format = MI_CTRL_MP_WRITE_YUV_PLA_OR_RAW8, }, /* yuv420 */ @@ -262,14 +246,6 @@ static const struct capture_fmt mp_fmts[] = { .mplanes = 1, .uv_swap = 0, .write_format = MI_CTRL_MP_WRITE_YUV_PLA_OR_RAW8, - }, { - .fourcc = V4L2_PIX_FMT_YVU420, - .fmt_type = FMT_YUV, - .bpp = { 8, 8, 8 }, - .cplanes = 3, - .mplanes = 1, - .uv_swap = 1, - .write_format = MI_CTRL_MP_WRITE_YUV_PLA_OR_RAW8, }, /* yuv444 */ { @@ -368,24 +344,6 @@ static const struct capture_fmt sp_fmts[] = { .uv_swap = 0, .write_format = MI_CTRL_SP_WRITE_INT, .output_format = MI_CTRL_SP_OUTPUT_YUV422, - }, { - .fourcc = V4L2_PIX_FMT_YVYU, - .fmt_type = FMT_YUV, - .bpp = { 16 }, - .cplanes = 1, - .mplanes = 1, - .uv_swap = 1, - .write_format = MI_CTRL_SP_WRITE_INT, - .output_format = MI_CTRL_SP_OUTPUT_YUV422, - }, { - .fourcc = V4L2_PIX_FMT_VYUY, - .fmt_type = FMT_YUV, - .bpp = { 16 }, - .cplanes = 1, - .mplanes = 1, - .uv_swap = 1, - .write_format = MI_CTRL_SP_WRITE_INT, - .output_format = MI_CTRL_SP_OUTPUT_YUV422, }, { .fourcc = V4L2_PIX_FMT_YUV422P, .fmt_type = FMT_YUV, @@ -414,12 +372,12 @@ static const struct capture_fmt sp_fmts[] = { .write_format = MI_CTRL_SP_WRITE_SPLA, .output_format = MI_CTRL_SP_OUTPUT_YUV422, }, { - .fourcc = V4L2_PIX_FMT_YVU422M, + .fourcc = V4L2_PIX_FMT_YUV422M, .fmt_type = FMT_YUV, .bpp = { 8, 8, 8 }, .cplanes = 3, .mplanes = 3, - .uv_swap = 1, + .uv_swap = 0, .write_format = MI_CTRL_SP_WRITE_PLA, .output_format = MI_CTRL_SP_OUTPUT_YUV422, }, @@ -469,15 +427,6 @@ static const struct capture_fmt sp_fmts[] = { .uv_swap = 0, .write_format = MI_CTRL_SP_WRITE_PLA, .output_format = MI_CTRL_SP_OUTPUT_YUV420, - }, { - .fourcc = V4L2_PIX_FMT_YVU420, - .fmt_type = FMT_YUV, - .bpp = { 8, 8, 8 }, - .cplanes = 3, - .mplanes = 1, - .uv_swap = 1, - .write_format = MI_CTRL_SP_WRITE_PLA, - .output_format = MI_CTRL_SP_OUTPUT_YUV420, }, /* yuv444 */ {