Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1838476imn; Mon, 1 Aug 2022 01:53:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uNUulXgoJmP7aOVvpdwMEHU/0t3Tu+6nlEhvHVkpN0+nks/+JfGo/cx+D4WGNGdhqqdWm0 X-Received: by 2002:a17:906:9c82:b0:6e1:2c94:1616 with SMTP id fj2-20020a1709069c8200b006e12c941616mr11897591ejc.64.1659344011682; Mon, 01 Aug 2022 01:53:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1659344011; cv=pass; d=google.com; s=arc-20160816; b=ImuOXs7pxv08knXhBUBI/b5Vi+ReeCIqWsBmNVywAQV3IHLqe9r1V6GOWPNpONWgON FrEW64UZlUBoDD3bMTp2+0OgZ1Ernu46WSGTA9Bc+5nxi7BHjsZpKkLXX1Yj1g0H/CXk n+SEjQ/wMm4k8ym5xLgIVyCLorxcIxmrviF+4V3qOO1MhV8OJ83h+vyCb+FIsOZZAo0o oz4OsfMEjgUvH+TPxNtSHHCTePkUYtOwn/jY/PIui5s95oVU+7N+9iZuALLV98cKnM+k miqjHAhw+tHFhiUXJctJpfdvJ2UF+1kTVBKRqXSnLGwoFFl7U9e1ib7F7kypDlPiXbEn zJQg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=kN1Qwcq9eoWUxIJU9Yd2T4IGLMbZMN7Zb5GLCZFJBrk=; b=qtedgRpW5XeVZPHz1AcKP+E2Qqg12z1SlHtfcgr42XpabYp/k9RTJJGtb88IHErOHu U+6JJo3Ij+wSvN0xzybAf3/0iInHREFMr6VkpEkBgzQHwtua4MIk4XKjZwtaMnfWcEJM I1aapETIegT0EEnBts51ysuTlk/dubV4Dk2xL/cE/hvXmwtLhURQX/HOFTa2PfIOMRIv qfSGalkygv/CKWS4WvdvKg2qR7u2J+V+UNdq0AW9c/bYc4dCuwN238mqHklXuUpciRX+ +mvBWhY23PtSRKJz4Xv2dn/V94x/GCoTb4C5TGuW4CQxPT0hr1DPb+9n6jRHv1j820xO iqsg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="Rb+QmB/H"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hv17-20020a17090760d100b0072b4cba9671si11530889ejc.186.2022.08.01.01.53.04; Mon, 01 Aug 2022 01:53:31 -0700 (PDT) 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 header.i=@nxp.com header.s=selector2 header.b="Rb+QmB/H"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229957AbiHAITV (ORCPT + 99 others); Mon, 1 Aug 2022 04:19:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230078AbiHAITL (ORCPT ); Mon, 1 Aug 2022 04:19:11 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2053.outbound.protection.outlook.com [40.107.21.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D48F63AB11; Mon, 1 Aug 2022 01:19:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A6rK/Nn5uGMEeHP5xCnF8AiInhJyX0NvivP3eppmq+nsueURZp5ZrAOMuUG5IkpI1zrRG6NW40MzmUNUGcJvmOD70RNXdcDBfgcZs/iWo+IOJ/1o/QR2KqcdjouQGv6bRSIpBSmew7iv9A1FQB+liKqzyxU1tDvoVxE/5fahN4ZDpd0qiAFxRVCVQwCMn08ng5BpxndlrbfkuPodWQL0ckFQgh0/72Puh44g+QRWhSHQbYblwfl4whtLF46eMf5l8B/2UbuCaYibOnGUiKQ6oKLLEuhFST5lOQvQ0BYxS4vBBaf6ngZMVfExO0vF/YYTNSoIYIxI0NbH97Yz935MCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kN1Qwcq9eoWUxIJU9Yd2T4IGLMbZMN7Zb5GLCZFJBrk=; b=KXMrL+ybI475Kmj3giaHd2Q7ig6tXeL2gqnpUxZpMQkPevyB1jEwYDKy1YRMcdzdnCj5/lLdYXQcr0ZVtLCexPfLM706K+VPVsuPZ3rGIIbUjm3aDZmlFawlQB0UmhG4SHD2IfwCl6he4mcp43KIiMNRWmZ1F4cd2HGWma4rb3/EJ9oYxpMxVdEEWXHt/LZ6ui4hOPT2okOnLtQX1onf/cz3yrKc3lmbNmsZCZy4E/lFRUQuX1B/m0wYCW4UUh0KoHOfhCGTj7/4ip2MGeEnQ29OV3eLyvenRIH16pbDoLivsnPet9LGTpxnxBbCt06iBgJXPrW0Ya2JD4JEIXrNfg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kN1Qwcq9eoWUxIJU9Yd2T4IGLMbZMN7Zb5GLCZFJBrk=; b=Rb+QmB/HAKgLd822/3n/OTRl9/GNvjHYGBbqFUx4EW+XoK7jUXqfB9zYx3EMPg0D67kVA+IIYhLaxkw2zNWoP150KeG4lYorhWjj67QEWMADgPAmiFwK5CZ2xA8sYqTqBFjM7qKHQoCbZiu/GUxQKVugZVfMpAfamGtJiU5WcjI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) by AS1PR04MB9334.eurprd04.prod.outlook.com (2603:10a6:20b:4de::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5482.11; Mon, 1 Aug 2022 08:19:06 +0000 Received: from AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::5db6:3f08:2e04:33c]) by AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::5db6:3f08:2e04:33c%4]) with mapi id 15.20.5482.014; Mon, 1 Aug 2022 08:19:06 +0000 From: Ming Qian To: mchehab@kernel.org, hverkuil-cisco@xs4all.nl Cc: shawnguo@kernel.org, robh+dt@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, xiahong.bao@nxp.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 4/4] media: amphion: encoder add support for contiguous planes Date: Mon, 1 Aug 2022 16:18:05 +0800 Message-Id: <72174e3feb8427f255dd65d081765bef23b4cfea.1659340974.git.ming.qian@nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: References: Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SGBP274CA0011.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::23) To AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ca7ab328-ec26-476b-9e0f-08da73968054 X-MS-TrafficTypeDiagnostic: AS1PR04MB9334:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tyebxqza+X+btEKdd3kVt+Etf/1dO3ndyaEv64IrAeMwcCAIs+qORapNGIe4d7ydgYTiM0p+/RmI2jZRov45TwliWaSPEBQCs+KSc68hb+s0soXcDdA3h/Wy1kU3O2yONY5YfNUvcpofFYFJyyltTuRoQsdB34LAp9+rOC11F11c1Y9/6JFUAVLCw+HmOtGriPGLv1tqHhhucaG5VOv2WotjJ3BsvGa5v6QaLXf2HEhd6tlGqt9aI4CIRDUfjyf/V4QbX4lFiVWxLU5qhh3to6eRVMajM/hx6Fe7D0710BRIy+Sds3nphJDBMotRN6W7ghN66ly8jeRPo9WRUoRBtmQMCdH/gZpiND5gjvHK48ayFQuQlgvGd54shFBoqBS0NDBxyvW3i68CkNpGfo0Y4+ONyQt88CUb/BTIDzpDnQrDrmW5CM2OjiKoS3F0yUt7ghtbgiSktqFDE/QZQvOz0jR2SkmL+7BFXvJeqTGtVT5PWhesbOEDow2tds+QhZK17PYbqxTIcw9Vr7dXcxk3hjkSFV/9d56xMZjt0khC6D0ufviKFN/ShN0LyLfU5psQLnmuSqodel/jOR1dTlPIdQhyzcPgc4VlPofScfGacDMPTaEfV10ixhv0TbA63BPoDX1zzmmNKP1Jn3x6pKsrSCbn31rAvpddLwj4S3UkFyacSYQ2yK4XiQzbPLdJOVtu68WuQPOnBqIPC+5RkrmmeLB22mS/NHFyx1MEstoKGOHMXQu/SLfBbn26gsAbhL6Y1VE30Ae/x51oYR2HmtIWOkytZ2vkkqZwviUUODUs46XnjVkW1hKLPaEWkBf9K2fU X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB6341.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(136003)(366004)(376002)(346002)(39860400002)(396003)(66946007)(316002)(6506007)(6512007)(52116002)(26005)(6486002)(86362001)(2616005)(41300700001)(38350700002)(478600001)(5660300002)(7416002)(44832011)(4744005)(36756003)(38100700002)(66476007)(66556008)(4326008)(8676002)(8936002)(186003)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?GdwMtpUGukYQbj5vOyjIqCWyIMtKSfJ+SUn2Nq5L4pcskQ2D7guopUyBQfhR?= =?us-ascii?Q?eYIOXrQWecf1dOrLItngfZB9bS6YbLNBfx6Sylqfaur9LlMd3BmceuoLxegM?= =?us-ascii?Q?J8NRGdtPe5HXhWfhCT6Z8fJAPRKt6FdqumXSArnCh0W3gruldxSnnWsjkBvp?= =?us-ascii?Q?xjl5sKvKrB1oPs+w6ckgkyu4TWyqj+87CSF8C/bobbEPLdXjDSozC3Fl5WIP?= =?us-ascii?Q?xzDQUT9QWeA0+r+GS8b7eQANnSzSeN8ORooQtN8pHsuWdMN6Qwtg5482Jako?= =?us-ascii?Q?+cpsGKpqexicJw5FCYaC5MHinO0TE5X/GolQCcQqURmbPx6u3BF+j33uIgZm?= =?us-ascii?Q?yZxtuziN3qQvmIxtR6a19k0bQ5WWFl67mRLAgzDgzfoCu2/ocQG4xEAQ2wU/?= =?us-ascii?Q?kBdEO/rkYVs9BZ5lXOUQJIp36S8ckiTpkkANmJRcaU3xeXaOV/UYQp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UHb8DDHbZCj3ReOb8DxlJuXyVbCH8949aJOb8?= =?us-ascii?Q?QsoKTMaNoNru8Bf0PuNcgh07Vq1aSvneOs7Kl2vBsr6dOjh8EDAvWEKdwgOv?= =?us-ascii?Q?yIaQeJQ8yNwwwRCAdFHUumO2SdQ5XTzfawATc9V9B+bFK6fFMy+PtzGc1CHR?= =?us-ascii?Q?z+xa7LjoK2Sy4mb2Vyihl0OllF/mgK9lnRHTw27TV9ewkDxcKQI3wdp+qrSQ?= =?us-ascii?Q?cv/xnS3WjQZeC3Jgbb6NN4f6AkzdBnSx4wVSI6N5?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ca7ab328-ec26-476b-9e0f-08da73968054 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Aug 2022 08:19:06.4476 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: eTIYpchjPSNXS3rrFl/8oAv352gw4GD8LsNUQB+9vz0vWZYlp7bfB64CYWRGXo1FUYjqSNJM5J0oNe2Pp7jnRQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR04MB9334 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,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 encoder add support for contiguous formats NV12 Signed-off-by: Ming Qian --- drivers/media/platform/amphion/venc.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/media/platform/amphion/venc.c b/drivers/media/platform/amphion/venc.c index 060a1ee78b17..3cbe8ce637e5 100644 --- a/drivers/media/platform/amphion/venc.c +++ b/drivers/media/platform/amphion/venc.c @@ -72,6 +72,14 @@ static const struct vpu_format venc_formats[] = { .mem_planes = 2, .comp_planes = 2, .type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, + .sibling = V4L2_PIX_FMT_NV12, + }, + { + .pixfmt = V4L2_PIX_FMT_NV12, + .mem_planes = 1, + .comp_planes = 2, + .type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, + .sibling = V4L2_PIX_FMT_NV12M, }, { .pixfmt = V4L2_PIX_FMT_H264, -- 2.37.1