From: Laurent Pinchart Subject: Re: [PATCH v2 5/5] media: staging: rkisp1: cap: remove unsupported formats Date: Mon, 6 Apr 2020 01:43:57 +0300 Message-ID: <20200405224357.GR5846@pendragon.ideasonboard.com> References: <20200402190419.15155-1-dafna.hirschfeld@collabora.com> <20200402190419.15155-6-dafna.hirschfeld@collabora.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Content-Disposition: inline In-Reply-To: <20200402190419.15155-6-dafna.hirschfeld@collabora.com> Sender: linux-media-owner@vger.kernel.org To: Dafna Hirschfeld Cc: linux-media@vger.kernel.org, helen.koike@collabora.com, ezequiel@collabora.com, hverkuil@xs4all.nl, kernel@collabora.com, dafna3@gmail.com, linux-rockchip@lists.infradead.org List-Id: linux-rockchip.vger.kernel.org Hi Dafna, Thank you for the patch. On Thu, Apr 02, 2020 at 09:04:19PM +0200, Dafna Hirschfeld wrote: > For Ycbcr packed formats only YUYV can be supported by > the driver. This patch removes the other formats. The RKISP1_CIF_MI_BYTE_SWAP bit could possibly help achieving other YUV orders, but as far as I can tell, it would affect both the main path and the self path, so it wouldn't be very convenient. At a quick glance I haven't found a way to support those formats, but just to make sure, have you double-checked that the nv21_self and nv21_main bits of MI_XTD_FORMAT_CTRL don't also affect packed mode ? If they don't, Reviewed-by: Laurent Pinchart > Signed-off-by: Dafna Hirschfeld > Acked-by: Helen Koike > --- > drivers/staging/media/rkisp1/rkisp1-capture.c | 21 ------------------- > 1 file changed, 21 deletions(-) > > diff --git a/drivers/staging/media/rkisp1/rkisp1-capture.c b/drivers/staging/media/rkisp1/rkisp1-capture.c > index 2d274e8f565b..076335193f40 100644 > --- a/drivers/staging/media/rkisp1/rkisp1-capture.c > +++ b/drivers/staging/media/rkisp1/rkisp1-capture.c > @@ -98,15 +98,6 @@ static const struct rkisp1_capture_fmt_cfg rkisp1_mp_fmts[] = { > .fmt_type = RKISP1_FMT_YUV, > .uv_swap = 0, > .write_format = RKISP1_MI_CTRL_MP_WRITE_YUVINT, > - }, { > - .fourcc = V4L2_PIX_FMT_YVYU, > - .fmt_type = RKISP1_FMT_YUV, > - .uv_swap = 1, > - .write_format = RKISP1_MI_CTRL_MP_WRITE_YUVINT, > - }, { > - .fourcc = V4L2_PIX_FMT_VYUY, > - .fmt_type = RKISP1_FMT_YUV, > - .write_format = RKISP1_MI_CTRL_MP_WRITE_YUVINT, > }, { > .fourcc = V4L2_PIX_FMT_YUV422P, > .fmt_type = RKISP1_FMT_YUV, > @@ -234,18 +225,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, > - .fmt_type = RKISP1_FMT_YUV, > - .uv_swap = 1, > - .write_format = RKISP1_MI_CTRL_SP_WRITE_INT, > - .output_format = RKISP1_MI_CTRL_SP_OUTPUT_YUV422, > - }, { > - .fourcc = V4L2_PIX_FMT_VYUY, > - .fmt_type = RKISP1_FMT_YUV, > - .uv_swap = 1, > - .write_format = RKISP1_MI_CTRL_SP_WRITE_INT, > - .output_format = RKISP1_MI_CTRL_SP_OUTPUT_YUV422, > }, { > .fourcc = V4L2_PIX_FMT_YUV422P, > .fmt_type = RKISP1_FMT_YUV, -- Regards, Laurent Pinchart