From patchwork Fri Jul 29 08:38:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Qian X-Patchwork-Id: 12932195 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 33E30C00144 for ; Fri, 29 Jul 2022 08:59:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=BsZxD527/TvliHo5KoBhMcHMBs9bikjavqk8Wmr/MCM=; b=SFNxaLsO9xP+wZ wGn0OXis4TOlGKT0c9BjbgW2WXFLtZdsHld++yCvkRuW4F5cr1ZeGhEWSNDgOWm7bgvBWpOPsOf4N ToZAPoth0+2juHxbUiZs7cqotjF+ARvlj5PPP8SmHwR56TpXVtc8W9PsPErMp3Wtx54ZavEpL8eVL Wsgk5L2b02G0kX1VZT9RgSpTjeIAYJ5o7urWm2PEFB+Wt6+phgGZoH+RjS53l5OSNg9DlnSxa/jz9 5uScQT8DmqrRDnvcnlcHnkyxssDMHQqEx5qn2PpRPAhK8J7m7ZHdQo2hazQqMl9Q4SFOS7uvQTIE3 zzSmGQROfFqk7gcGtSvw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oHLoZ-003Yac-U7; Fri, 29 Jul 2022 08:57:51 +0000 Received: from mail-eopbgr150074.outbound.protection.outlook.com ([40.107.15.74] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oHLWl-003NIu-SD for linux-arm-kernel@lists.infradead.org; Fri, 29 Jul 2022 08:39:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QvYhlPTn9WussMfcMShPe9KwSmxpe2GsJ/zK+hEvURWKIXOHO9R+72yD+pP/qt/EoXUHpXlV2aDNf4NovWgMrMfmz3mQAOxiuZeXp98gzJN6qfDtSZ8wLsFej3zHg5B3+pkrsdA5penjERanML3Lsy0Nh7Nbyu3ex1pK2JD6H7bab9AV23Hwq/n0wetqd/0YwIBp2IgHWb3kHgPKed6Qt86Fr936aBEEiiGJ/EdSS42UbO8cxn0RKfERNViZaPBPJdjrCU5XJ/ujxIvQ1QlzzuFo1tuJhFU3HCyAMNlvqd/hhaHZWxCsAutrCXXxPAmWxLu8Z+NFsNWteE21UEzMfQ== 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=XPZPsjVK4KkE82rZlmw4T95v9YAmy+iU2EebdwQloo0=; b=EoMZxYQnLyiAMLMwBLHYQrESo6vs7VQ6MhsASwmra5YDt0og+/r/yofGmKxkSMcFJMnx1UWAgyDVypp0JZz+rC+xHSKKkZH9KRkozgh5Wfy2VQov3/E3711Y1iwsWpluktNK4cX98EGRnz6qq6KEOGBQY7bQNedvuYplQQFrtAJC5nZmDAQKyuzTWLxxmuCxCMref5xpm+Y8WU4Ocist3DazZyffCesWGITTa3u5uRZqNGRAvpIZgVx6BrgWxgIn9yAY8BHkqT8W3wkpIPVuzae8R2Uf/gLdOW0nnS1Tm9OhfSYXdMVDyOrnLp7DbOwVSU1DUwfZyweQlLsah0+7fg== 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=XPZPsjVK4KkE82rZlmw4T95v9YAmy+iU2EebdwQloo0=; b=U6OnNQL/klC/mlp9PrUNuncdRgFXyMmLGTK9MaPbmHLrod3CvvpP+Exvg5BLOb0Zd/AmyjNb9/RrRe+QAftGr2n2D54Q95w6bhsUfNsaHqbatd/cJpVFbexaXg4uQlLJp30CJX0Bu8Jw1kYyfCrmSls3UjjncRhZ++wMpQa1Z68= 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 VI1PR04MB3039.eurprd04.prod.outlook.com (2603:10a6:802:b::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5458.25; Fri, 29 Jul 2022 08:39:19 +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.5438.023; Fri, 29 Jul 2022 08:39:19 +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 3/4] media: amphion: decoder add support for contiguous planes Date: Fri, 29 Jul 2022 16:38:14 +0800 Message-Id: <2d0cac861e771a0c5f30c00f0159b7387a623407.1659082839.git.ming.qian@nxp.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: References: X-ClientProxiedBy: SG2PR02CA0028.apcprd02.prod.outlook.com (2603:1096:3:18::16) 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: 2cc9e1c8-7cc0-4bf4-cd55-08da713dd3e5 X-MS-TrafficTypeDiagnostic: VI1PR04MB3039:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2HD1tiQLgVCawHmDzmJj1kvPX5P3nwcU+PrE8EQfPcRKBFF/mUFWZanl7IKIUJh1+oMcRxcbjMnq+yMsZpBdbQ/mvV90+hDJxtJ05rgzHwnczijHFW5pa7rh8H5WS1RaQh0EqGOIKlTOLk4H6XcI8ngLu8TIbAHDM33PSjQOWWkRPNGYHhSAg8memsBWLZi8AnPj0I99CgFAVr16PHjgkVbbAh85h19Hqt4oc7ugtXeR5UqjWjWvBlBAjhsxAa1r5XmToFFQCHMhGlYq2wnvwCp8rHGnkUiIVLdpC6PViEVgQXitsOOTKvW9CYtDw98HeU0kU709vcxEykhP1EQl3jkihnzRcoMYur9x104Pv7UX+sW1+PkfQatjAtHBh8LX0dvrk6wCuSnXHIAw4yXG7vlqgZvWyhYVn2ffsS0QTGXzDUy0dCkjZHCWFz0Blwf7fark3XuOT9xrQgrivSQzX+Wca9j/Gq9t/QrISC0rGpu7T1B4czsmNQ7O1XTjPKmWXu/aQ7B0PiP8TklyczkzWrqJWzs8WAevfK8DDYjyw1CQEodW/P4ViF3XIytDoYchc9djVxS1covl3vC4LLFbcbWPMR+iN7AKT9eFLJUP/0PgOOI6qOwBgrxTwxMhwp3lxv9p3TtafladQWoX/rGEJIWix3+BC8NmVNmlc5Tq4boP4mos8iai2XK55o+KqrquCD/6pg9lfFOl1STyfSRZoe5tmaYH4n3MqPn4tY/T+w2W4vV4fuy7Z6k3CrwHi7cJ7JS6OE/S0uw/P98NFvoJp8MrQTjeW2Skc2qB15Gq+sI= 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)(396003)(346002)(39860400002)(366004)(376002)(8676002)(5660300002)(52116002)(316002)(26005)(44832011)(8936002)(2906002)(7416002)(66556008)(4326008)(66946007)(36756003)(66476007)(86362001)(6512007)(6506007)(6666004)(186003)(41300700001)(2616005)(6486002)(38350700002)(38100700002)(478600001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: TY1frztoe0truGV2pfX3j8P+M4pvs7ZFpjWft72JZ3mAJkGcGuH/9tQ0DsO/SG4JgRQeDAmdS+2UPcuQ2cXIZfvEgOAoycgQ18VeZs1BD0PbVhjrtd+C88ChPTnFM+DRHx+COrE/HTUXmZEGZHmaZzMfS6kdK6zvLKO6i1pthha/pykYBDy997INKx69M4h6jiZdqcbJ80YoPspUH7EKbLSr+xbJUXbGfOrtsUY/NVFGLoSslUk+Ic9ePM6rMAlr/AiGSmId+iPMQk7875zERMvrmtdZDxcaN5k0pfN7dppbcVD2xog3mJJ4mZPGiT0dJKiQbBJthG5H3jaueUa2TuuGbYPPh8OlRgZuY9KAK95rjqPmzvCwVtRbCv5XkJ8SQ3K6GThswjrAHCp+fjDq75JhdRH9nxUGbwJ5DZUVJ5Rgs0TqD7qIlIHz79TFLwKTA3uI1AznrU6d550mu9FiZBLAVUlwPnAaR1nTI4MPp/xGksyuEBlh3PmueCBZdgdYBBekmRMA+1B8H5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-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2cc9e1c8-7cc0-4bf4-cd55-08da713dd3e5 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jul 2022 08:39:19.1155 (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: q9NIPhHI+RV2P0iC1PhHXHiswTxnQDZJg4uZtGYQFsfHtLCgnR1L6tKmjW9nq5aSyf3zxRkz1xgkaydHpm1qlA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB3039 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220729_013924_057433_2B13D477 X-CRM114-Status: UNSURE ( 9.54 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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,