Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1833982imn; Mon, 1 Aug 2022 01:39:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR5errLSv8/ydln9/NA1SVN/RUhep/ln/8PslhDdVWYP2rAC4r0ylxLz+HHsUDXcjMyuz9wV X-Received: by 2002:a17:90a:eb16:b0:1f4:df89:edac with SMTP id j22-20020a17090aeb1600b001f4df89edacmr9829838pjz.54.1659343192291; Mon, 01 Aug 2022 01:39:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1659343192; cv=pass; d=google.com; s=arc-20160816; b=SyptExpuKxNxFTj4p8kNCGD1TG1HbNDCLcNMH6Wo3hL6ZliPXGU68WwGGdmU99zHFw dEYNqfmt1y1ue7oRqdh79HAFlzoLa8Ycrbo4DOiVilCDLmGwIXIxDipDfGuGXbceuV1b ziiyzUCtFt4agArnvDvsU8oDsrXxnpLLKWGieNFIh/cF/bwMSa+Eew5hcleXr+7ij599 8491860O5x5ydmOPj1YdANEiLXiGWRHpw44YNxl7/UQ+AtewKNNNHtp387Q3c57omzLS HIvS3jdeBNhGknYSpJqKisEr/CRFLOisxUVsR+6/Sl+eJQTaq2eGA+WQCQqRdS06RBkq EcFg== 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=ZDkTfxNOWCMwgkEiHCmfKKRGxwS7MQ9xxBjraUxchBk=; b=PTpKWnhef7zUR4OSktUJxe/djBnUk0t+n+UmQY93sp9N8aYaYP/hwI1/rPQ6D9HaL2 yQScrHWJDKYE4SAkwabWnV9pp6a/jGtN1fj5XBMMRSUq3vmLofw7jIWvXfAPjMxAyaZJ oD0SXzYHn7PQx5gJ1G5J77kjEWTWXpMq+dDP0jpeoLVAE+aCd/m/2msZstKyG7J1ybJT Y3QuB5HI3zdI3N6gwiCjvT+T53fgMOo+4PHDRCXd5zAcbTegkjMJ2kaiQwI20pcj/zT6 4AixttRYjnTe+SuUXBoELdqcau2ZVYkD2RDaVRgVyAgW0/iRtwOm7c/eIrPLILn6O6rM P8UA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=PR54dsfs; 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 z16-20020a170902ccd000b0016c09d28af1si11689411ple.621.2022.08.01.01.39.37; Mon, 01 Aug 2022 01:39:52 -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=PR54dsfs; 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 S230018AbiHAITQ (ORCPT + 99 others); Mon, 1 Aug 2022 04:19:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230075AbiHAITK (ORCPT ); Mon, 1 Aug 2022 04:19:10 -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 684453AE48; Mon, 1 Aug 2022 01:19:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bieI5xIrnB9J/fuQ7v4R4sMxBKC9gGrGbptTajNAb6JMLg8BpcfgZPQNXNBcYSNV46XxgPQvzds/UQQbAjDztojLXBetfCKHQCZK6S84qU8ta4Fua5h1DnFIQvK49qktBVL1L6nIi/fR9BvQzvLHh7ykNfkXQ0R8C/U2FzHcBMzTKVRwmNZUBSLtCvJt2ceCvPVF0TBKtUsoH6ymUP80b/RFzfN9NAWzFxVEVJvl9VkBhNjqVJVe7jyjsy60lrDm6S6034YeBjWnbIYKylr22f0ppLXoslVf4VKKjGzYnXd54qtXaKWKVY4LKEZpQUDGWYZ+cN+dBvJe6khi+gka3Q== 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=ZDkTfxNOWCMwgkEiHCmfKKRGxwS7MQ9xxBjraUxchBk=; b=ZEnmvGR/VItkMl+1YQ+up4JtYbuEyL06pbTA+XMA1pRdAWZGeY4xY2ekfJ6hiZsPY/l2hh0vP1zUrlIXXlYD9oE6URs+05o4gvp2NKzdOijdl8CppTuvUYSvwBogP4dxKWRkRVNZMUSA5Ni/2ooIqncrJ7gHnxgJ8/mo2QLS9ugEr4bmijLVe6csUqemUNPN7Q5Jz6VJxnKnVNvUSL6Nsv01rLrUCIBol90H8hCasWZGFnBb65tkKUG8lK7KLMgW3Lbq5bjWhtPYz8jtNbqp5aiWU19yaOJzwkgzBgTyDTPv1kotnyZD6C8zn5FRDj9UxEx7/GkP0MS+PbxbrvTnnw== 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=ZDkTfxNOWCMwgkEiHCmfKKRGxwS7MQ9xxBjraUxchBk=; b=PR54dsfscRBijxL0los8Xb9GFWbpIsMSVciBJiRcnKLKscArFFObmkS32TVbAyxtXANNcjZRT1gcpRHuBp4M50xjAWuaKCKUhoys/t4txxfqU4DlGpcJRiNuWJvAa8XfQUO8yejIAhXbuEb7+S5UNDiHJgRL5JC+tfEceSYgaF0= 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:02 +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:02 +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 3/4] media: amphion: decoder add support for contiguous planes Date: Mon, 1 Aug 2022 16:18:04 +0800 Message-Id: <5d3a7534e265a644d103e07821f3e5f905906bda.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: ffb0e2d0-4223-4361-ace7-08da73967e13 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: HIq8BMRJ66duunXTskmOGoa5jqT768tOjDA5GR5atZafF+CzUaORWMKYy4kc4aZV/hBrQxL+9dLLKn2639EfPEbGwR4//JFLRITqq/BFeMz2nmBQWyzdlDsWVTEkNPq3sYCOwO+OtU6GG7WlYhKf5qS2mrdGbQWj4NXX5ylzpUviVfI6CHxuWXIwcdL+cCGEnzIK1nb2flaBGbxVmuGgQoai02AY0xTmtdrh7ifUd8MfF1Fl4IxPnDPEA9d4oWBF1Zp8pwvRvBqmqErVGNB4Vfh9qQc0snQOXCV+c1/CRmQGUITlqVKXHaLVouAEKuVnrQWOrkM2OSGU90REAzgHMe9C3AE7yQIM6KxwueQzJo+CJZRlTowQUAoEZ219qOKLIR5wtrCy3ucl+Zuhtae3oQAhs5/vhGcHBzdEFsmcASeCvzocAXYj9/UjpwdDBbL7OVFhZjxNjR116F8tNRpQIZS5Lu2wQcE7lP/EgYHIpg7oTydtOsRZfegnKjE5/4NxF9Bk43kp38/DAiTqYSoC2k7VqnTyJT7rQvpehO1bOkpNXkvdOHxRKPvac+lNmRcydB2kt0LZc92H2cJ5is8JJ3wt9v2Fe0FNfvAf9Ru3jcw9nqM9Aw56mqph2/+wWV1EbmglW6VOnTMyLuV0v7gIQ9w3v+t7OojnyRomisd8aEtCpvI0I8Xeeo0Xu1zOZe+rqEUqMiaxtHKazITFTAqYVnrjgXZivCELORYbt9/aC2bG9z2c0roPF0wGqxa6kKpBjKNF0LMAwxiHSnI/1okiCXzSua9RbUMIeHNd0jnnAstxdnF+RhkUvXFm9wPvXo5g 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)(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?BYCLoBstIcja5182ZTR+fUwhUmlT3gQROYlt6e3B6MkMrP57+SpdzWW8ZRUH?= =?us-ascii?Q?N4Uetf680EX8OE5Wh3x1RcCS9VchPZ/Bs2THHON/pdw4TNsYCnwaP7riYElT?= =?us-ascii?Q?MBSiHSAk47hgydZp7SsLf+grza8FXs/Xhp3Obzy4HwiHUa0ewAXqoX9eZ75z?= =?us-ascii?Q?VG1SjsgMgOUWvwfRGNFkx8zX+lF+EwlCA+rgtlPOUpmfEef31zcdSOiPW/rs?= =?us-ascii?Q?HybVju2sow8ClcHu3rBV1c2nfSf78sUiz40R648RvrQnBRG6TTEZSL3gUdgH?= =?us-ascii?Q?mpsMXJpbficYqieHxMOFGxAFI7Ujwy/vRRBNh21SGt5fl436F+48MSCQrMJ8?= =?us-ascii?Q?x2AyOaPsn7KFlEl06n5y+U0rCzWq2/R1Jy/wcwsQs0nhT2dtEsIC4b8XTP8Z?= =?us-ascii?Q?w20TnphnC+aw7S4TTsnkFNV7oQRNg8k4E9oDxWk1VryVWx+pLxlHVIXzrcuA?= =?us-ascii?Q?l6w8N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Tu?= =?us-ascii?Q?33pWe+PxHM/1sbFyhdlJcJg7u7urb5AHUFlIUz0xuYxPBf8YPUMoujt5HGCn?= =?us-ascii?Q?necBc/UjgDZqzFNHDZTOdDlHZFqAarEcWU4jaofnEXAha3koh4gWvTOc3xL1?= =?us-ascii?Q?XqVAtnk9wQ3S640mbmbhUg+jWR/04HIB0qu+rwEsa4dMqPmjlc4882xl5EU5?= =?us-ascii?Q?Hsy3LiXCXIr5xwEm0WBJJnFifXJkvWGJpcXg3nh2?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ffb0e2d0-4223-4361-ace7-08da73967e13 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:02.6822 (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: uED1ra6TIWlzc27xn5FjPL6w/YJm7SEMp84O7ZSafTGQRa89q9B5RFuFAjYMXOHoCoov1nMIez83/5rB/Ah8/g== 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 decoder add support for contiguous formats V4L2_PIX_FMT_NV12_8L128 and V4L2_PIX_FMT_NV12_10BE_8L128 Signed-off-by: Ming Qian --- drivers/media/platform/amphion/vdec.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/media/platform/amphion/vdec.c b/drivers/media/platform/amphion/vdec.c index 48ab664fa7ef..9c3324717cbc 100644 --- a/drivers/media/platform/amphion/vdec.c +++ b/drivers/media/platform/amphion/vdec.c @@ -72,12 +72,28 @@ static const struct vpu_format vdec_formats[] = { .mem_planes = 2, .comp_planes = 2, .type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE, + .sibling = V4L2_PIX_FMT_NV12_8L128, + }, + { + .pixfmt = V4L2_PIX_FMT_NV12_8L128, + .mem_planes = 1, + .comp_planes = 2, + .type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE, + .sibling = V4L2_PIX_FMT_NV12M_8L128, }, { .pixfmt = V4L2_PIX_FMT_NV12M_10BE_8L128, .mem_planes = 2, .comp_planes = 2, .type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE, + .sibling = V4L2_PIX_FMT_NV12_10BE_8L128, + }, + { + .pixfmt = V4L2_PIX_FMT_NV12_10BE_8L128, + .mem_planes = 1, + .comp_planes = 2, + .type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE, + .sibling = V4L2_PIX_FMT_NV12M_10BE_8L128 }, { .pixfmt = V4L2_PIX_FMT_H264, -- 2.37.1