From patchwork Thu Nov 17 08:42:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 21506 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp285163wrr; Thu, 17 Nov 2022 00:46:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf4UXFDSuy+aAZEjsh+vPbA78ITOpc++1E6JipjyMal4SA4zG95nbbXCI8Ebx9WNlrIJpVyM X-Received: by 2002:a17:903:11c5:b0:188:8dc6:4eae with SMTP id q5-20020a17090311c500b001888dc64eaemr1884808plh.2.1668674784318; Thu, 17 Nov 2022 00:46:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668674784; cv=none; d=google.com; s=arc-20160816; b=X7pISoNHs7NXUaKSuv2C39y2fkk2a9mhj70VJ2joSJnpKT9y6Yjn29AvZ/SFhK4RtI pjoGpgQ47N2lWbJ7anB5g2rola9OmmGDKr2jH9nfMsN/hnOcCFxvmkjdwx2z2fi1szDJ S3WIA9TdjnlVUZYIph+FN+QGFPisB8Q9MYFm2aCbSFp016JILm08JdfeqklaFagmgZi6 topdC6hwdjDK1wehCwyl6DI8z3yGklz/mW3SASJq5J3rVXc2KfH5j4ZrMMaRjgNiWSZ4 KJ0HI7iTJNLv1tMnJix6HuBsri4+CALp49h15KlPNPyP265jvczB4wscv2luGj9nD480 aXlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KvcPwMxJh99UHnx4aqPf20qy1tH/1ZRezGaRMDSZALM=; b=dBfocl9pJyEVg4vPzf/oVTSSZD912owY+yZ6aPkwo8XoU4qsm8Ydn9wVZhfFOIRxJ4 oIpsN+I1FUiq5Lp6ZU4525fzRK+ciLP44IKaJhiyQEQxgBFykXF3QAdGVgnU4TshZ7tr YJPGIR2E/AK1rF08leqfvbe3LzQXwGJF5SpnS+wXaui5sObRKRQ0fEFM87IixwSurGLx p/N3pBRDy0AKnvaZI6wUSMyhLneHoMKvuB2NrDTnw+Vwb7xS6zfuo8yIgboFeMdc8h00 NTbnUucpDZixQa6v7zDFcUpvgpn4VyfgNOX4G28fSZzMflteapBqBftzpj1Apka6F/Vk bCsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=TDzTqsj6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z21-20020a63e555000000b00476e94ad180si503153pgj.127.2022.11.17.00.46.11; Thu, 17 Nov 2022 00:46:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=TDzTqsj6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239647AbiKQInC (ORCPT + 99 others); Thu, 17 Nov 2022 03:43:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239125AbiKQImk (ORCPT ); Thu, 17 Nov 2022 03:42:40 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF9B071F2B; Thu, 17 Nov 2022 00:42:39 -0800 (PST) Received: from pyrite.tail37cf.ts.net (h175-177-042-159.catv02.itscom.jp [175.177.42.159]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 0EF48E86; Thu, 17 Nov 2022 09:42:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1668674556; bh=FRk1HlQxJCg/bMBCI0emDkc9se4S4LTHyPJceYD/tbs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TDzTqsj63t6K/a/B4DMs5kSyJXF3EcecH0lSSATrtir5oC+kSwDXVlYcqHjI4vTd4 ilx19LRZ6IgMjw0gucOqzf2J4rMnoJn6biezg75wBvlYQSqHmVDhtfFqBT+7IM1uRP I2UigdVHCbTciydjJrN4d8k7ALpXqdNQn1+Y/N5M= From: Paul Elder To: linux-media@vger.kernel.org Cc: Paul Elder , Dafna Hirschfeld , Mauro Carvalho Chehab , Heiko Stuebner , Laurent Pinchart , linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/3] media: rkisp1: Add NV16M and NV61M to output formats Date: Thu, 17 Nov 2022 17:42:15 +0900 Message-Id: <20221117084217.3892680-2-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221117084217.3892680-1-paul.elder@ideasonboard.com> References: <20221117084217.3892680-1-paul.elder@ideasonboard.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749732331034294932?= X-GMAIL-MSGID: =?utf-8?q?1749732331034294932?= Add support for NV16M and NV61M as output formats. As NV16, NV61, NV12M and NV21M are already supported, the infrastructure is already in place to support NV16M and NV61M, so it is sufficient to simply add relevant entries to the list of output formats. Signed-off-by: Paul Elder Reviewed-by: Laurent Pinchart Signed-off-by: Laurent Pinchart Reviewed-by: Dafna Hirschfeld --- .../platform/rockchip/rkisp1/rkisp1-capture.c | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c b/drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c index d4540684ea9a..7695ef134908 100644 --- a/drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c +++ b/drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c @@ -110,6 +110,16 @@ static const struct rkisp1_capture_fmt_cfg rkisp1_mp_fmts[] = { .uv_swap = 1, .write_format = RKISP1_MI_CTRL_MP_WRITE_YUV_SPLA, .mbus = MEDIA_BUS_FMT_YUYV8_2X8, + }, { + .fourcc = V4L2_PIX_FMT_NV16M, + .uv_swap = 0, + .write_format = RKISP1_MI_CTRL_MP_WRITE_YUV_SPLA, + .mbus = MEDIA_BUS_FMT_YUYV8_2X8, + }, { + .fourcc = V4L2_PIX_FMT_NV61M, + .uv_swap = 1, + .write_format = RKISP1_MI_CTRL_MP_WRITE_YUV_SPLA, + .mbus = MEDIA_BUS_FMT_YUYV8_2X8, }, { .fourcc = V4L2_PIX_FMT_YVU422M, .uv_swap = 1, @@ -237,6 +247,18 @@ static const struct rkisp1_capture_fmt_cfg rkisp1_sp_fmts[] = { .write_format = RKISP1_MI_CTRL_SP_WRITE_SPLA, .output_format = RKISP1_MI_CTRL_SP_OUTPUT_YUV422, .mbus = MEDIA_BUS_FMT_YUYV8_2X8, + }, { + .fourcc = V4L2_PIX_FMT_NV16M, + .uv_swap = 0, + .write_format = RKISP1_MI_CTRL_SP_WRITE_SPLA, + .output_format = RKISP1_MI_CTRL_SP_OUTPUT_YUV422, + .mbus = MEDIA_BUS_FMT_YUYV8_2X8, + }, { + .fourcc = V4L2_PIX_FMT_NV61M, + .uv_swap = 1, + .write_format = RKISP1_MI_CTRL_SP_WRITE_SPLA, + .output_format = RKISP1_MI_CTRL_SP_OUTPUT_YUV422, + .mbus = MEDIA_BUS_FMT_YUYV8_2X8, }, { .fourcc = V4L2_PIX_FMT_YVU422M, .uv_swap = 1,