From patchwork Thu Aug 25 01:38:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Qian X-Patchwork-Id: 12954125 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 8E1E5C04AA5 for ; Thu, 25 Aug 2022 01:41:56 +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=1vyCnz99mmA4He0vci0UK8CHlNUSjvnaOAwHcmDeghM=; b=ceDUED1FpM66SA PnF2rpDtjSAUGb4recElWGd2QtaYodvaF666XKijlEtg7kIrWfiWlVPmlWp15IgE1iehgZKG+PKXL LhV/LEB1qXeS7SzGCULcD81ydIoGMBK2jlZEb08BUKuY8RkyxyL5JoloxEm+Zg7HAQzbahk+sEJC7 it7zEcy/SpP+Z7FMW9dQxxUSCmk5jQs02iFUsqjhBi7ZD5ZRfvT/T5x7zNgEEWy0Qp+Jzjig7fDhE /TCrfZOirYH0jC6jqSz3pArOrw1gaFEg1S21TSq1P0bzMFiKSU7sblHsl6Ti25EIZ1As6Efxd4VTN hLR7tDzficiXFsYkj3bw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oR1r8-00412T-60; Thu, 25 Aug 2022 01:40:26 +0000 Received: from mail-eopbgr80079.outbound.protection.outlook.com ([40.107.8.79] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oR1qF-0040RT-7b for linux-arm-kernel@lists.infradead.org; Thu, 25 Aug 2022 01:39:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mhxNAC4Zi6Q89IyLvpp0afqRGrsSy2Ku/RyANF07w7HoYL6SmRdqWCMAO9RNwPb40C4Yc2cikeqGGQpMb0qjX3oDW5bKdXYKbc4pWoULJuSnDpswErEXL8P82Cu76I9ot8KoxJLxoj4CLXccbXv+2idbPjsliicJxBkyw9XkJiPQjV5D2AVM6ekpnlGapwm62c0MqW29w+HfKLk3NLrhTjroR3l0N/YruFG3cfCJRzG+UCMZQb21jH2liz3EtVz4/79rk61L3sgjkscco7ZI1KX8hZXjAbfpfQzHtFHXJZLj00gCqhTXPpXDoseBrdoKAKD6bK9WBavqYWOXneS4xA== 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=j+vQZc1Xp+mfCzOKt+qDyO7pbDQ8PP2rP3BBVH+/EOY=; b=AUdtCgqaf/OyuP1o5ekADAfhnD0JkeokFVm0nGDek0oiW/xeJJh/aXyJ7FIfutVtMooQz8AetUky+g6LERH7dBVCAOmhfvvuqoCgksj5pLS88gLswADjPYmCu+2T94SQC6SRhLeioKYaI2AjhdjTIOZ7vyRACbkLyzoOAmwS+VwQR60wDZPtNENkHNpGkdlJWSNQbl+iJ1V/ln/5f2ydB1fCpZHqebeF66hNaeQiOMtMHrv813X604UNe0681Fo1uyW0MiHgOpjUwTJMINHgs25PbadctVCEay/1idYjRe7RFgJYAsB9uS3WKGW2mUq1o+YJBUwCEy6hsT2DNdzSpA== 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=j+vQZc1Xp+mfCzOKt+qDyO7pbDQ8PP2rP3BBVH+/EOY=; b=mKtF7gWp0ZvgG6QN84YRcDMrx6/wRGsy+wlqs1OQElX5YBMg6UmOjq1Bt9qXPVwO2qIkpGFwTMbn5gvM99/6YPFf20w6WtOPySkq/sP2odZIVNuV9rCzKT6OGvbkAM+oc7+n+qZzcYz/K9RzjhN2xVl4kIMvUVgQhWoPRdkoIvk= 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 AM0PR04MB6162.eurprd04.prod.outlook.com (2603:10a6:208:147::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.15; Thu, 25 Aug 2022 01:39:27 +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.5504.027; Thu, 25 Aug 2022 01:39:27 +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 v5 4/4] media: amphion: encoder add support for contiguous planes Date: Thu, 25 Aug 2022 09:38:32 +0800 Message-Id: X-Mailer: git-send-email 2.37.1 In-Reply-To: References: X-ClientProxiedBy: SI2PR02CA0020.apcprd02.prod.outlook.com (2603:1096:4:195::7) 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: 7eb29b32-7670-460a-8b7b-08da863aa5db X-MS-TrafficTypeDiagnostic: AM0PR04MB6162:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +XnoDQO8xUInRIpvD0MGWMYhIVO/4PXXWUXU9R7Y4z3KC9AykSWNwc1/X2jj3NVrp6cghCFL71zkKlxfVmIp1yryqTggApRv7GfbeohOmoAD0vCW/gtBX6lQH7/5cFrsF3AzaZQYLwupwzFC8TsJ13qLSMA29JHXLXzCYn8c6bq1Va1PoRPeKSqK6lSXBrxgQhARfUV0fAIVhF0HgJzovUY8g8nNpQmQZKkDacD6VSZ1UM2ch5xIzGcP6HZqH+T2tnyvZqt0mlu1AMJ/4sCbmV0NuR0O+fHXEewAb+sy8fzIfBBduH3VjpSZhloKNfASUhZqBwD/2BTmPHrx11/I5trqVegeBXj/qUzHA/IRgooQY5aua5gHxb8XrrYj6HimkF/6jz/+DAB09dHP6eBJIE1X1ASHWDDxA4NIoWXYt2CUsUqskWvArLGh969b53xc0Css39z07psEfnGffqbzgreNDrfb9P8s2Wt2Vp0EA9eBqNSkGBEvNpEc3vFsSN6QO4+fFCgfdjwC7ZAtIUdGMHmkIA+LIsMjNtwi5x/sJcQ2nC9rPIyg19n9gUCFy10ghKb7T5u1H7grEWUQrjS3aNG+GCyZzofzTLrk6oHEXh4Z8C+LJqKGzkcz6A2Lq4xr56Gm2v9IlrOjvzC0elLeG0arl2z/fzMlE1kPqEHF04HVgGni9tKH5fjXXRq7DFlNuIla2Ivsmm/a4rKfuOGBVpGHjIWcv/MqodvOn5ejegHHxDmsfS/E6P2jcT2kbIjYTrnPKelPWht6vuOJhAN9Fg== 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)(346002)(136003)(376002)(396003)(39860400002)(366004)(6512007)(66946007)(38350700002)(38100700002)(6486002)(86362001)(6666004)(26005)(478600001)(6506007)(2616005)(52116002)(41300700001)(186003)(7416002)(8676002)(4744005)(2906002)(4326008)(66476007)(66556008)(36756003)(44832011)(5660300002)(316002)(8936002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: DuHCLr/pV6wBLuvLJR70G81Gsoz/xgvppwGz6yitPxkaXQyJCdSVTGgpcoA6INr1DY8PDKrVAIVqOHUqaaxpKtJw2kQNWFbehgaKseaF8iUujG7MXr4Vlrjr4Us2qqcIrXY31/megSgqRMn6Qwywxb3oU7RSxlgU66Q0OqIBuM6aXUeB8x3pqOR7vZYNEKiJX2HHhOXRC3fcQ3TA8ZzMXexXfOtNzY3Gw9tn9r73H2K/I2tbeqo8HTYTBlrOs3EYo9c01vVobEOzYxVRPQfmsA9EIUGjg5aQfQ4Vua0NM8Z0oDThLgjGz4debMVqaMRomuBtPXnGEbx3g086jZ1Wvgyvqsd0c62MUnOQYCHZCCf4IDetPYQUtL4cfU0TcQ7+1RKG1XY5dTIy7WUFtzo2rvrdwxDR2gYUdZh0CLSrOElgPuBhKsg0to3fMjCZ4M7QMVapzcQf4NRpovG2p1jjy4WN+f2/pvWUl2YRCk/NcV0IkRLSDcuzK7cTG58Xj//44PNhy2sKNWM7MoF6Hp/qss9RHOXC6CsYUCCu+B0/MihkmzQg+sYlySLID0nSHa2vCAasje0CwUnjSS+h12sKUOQavvlsDF02LcE9kgxpUDQhunVe085+T7AQSNrcEj/7gOaR4iGwxdGlG6AqXjsexWxCFunh5Wsuzl51/j+ClZUOfFqS2WpN+/HQG9wWd60ZrSsIQLDaz7v57rAh7sDDGs/OtmwFNGhKBDV+2lzB94hlo07tNlW62NCjZQed13f4Xs7x60R93w7npvgme72+HAJGV/uuyf7pGBGIENgvYYBp2sOutS9ajpwdssWjd905LJYZUP9vmPHBzjt0hUeXlLVpYmk9jY1E/bxI/3kd9NkOMR9XYTKIm2O4O0HEAX9QOLvXuJgbA3eFDiYYu+e7qc0CnM34jNXIITvAR8raOuGzHwMs2SqT3AheZI+17zuylG8JXtvBprCjUN+PLM3bwOVtF0A54DUJqXKNaufia14R7+pAivE3bVFxQPnwlcO5PkIikEMsdqDL7vGN8+74fmkV8PeNrr0GLV24sMmyhwFrZ82WNPyRohTc7ucTTu0TAkICov+29XmJrQsqnLWESCvz/e8BFdi/v5zhoop1Lhbihr+r9ZKKRHumfl0cp8kI76YwXuFruQ6OlfwkhSQ0/TxI9u6lQQDkoP10TJQ6F1aVNHBe6WM9wlPjwIc6+wLYdFp5Tai6HwKiU9WmuFdhYx4Ube79MMyHQdzMIjqxXgI4inS9dZOG1eDGLRC4q43PkQFjJrOBB79KhV3xh1nYd6UoQhWIwmHiIjxnRKoXGtL4DQeO18vUiLZ813oBDblWsFoJu6m2ONDoNzA8iQ7k4m5yhLAfEZgxeIQQ3SOEZdg8CtOrBOI5sNORSuroCMgTZMmqDivRTOFS26Oj1MMoW5k45uTsV1LUx+rP3C3tEndJtSPt7vTD6a9mtymxAFl402KaCPDmGIRbqgcv8m+Y8wgKQ3+hvPsiuilqfQv0b943221d3d1u94JOZzlKDsqv6sFhQsxXY/Kbo4XzIIG/R2ype3dCkuwmovOE8McXLzsgOEJzhOdLnumNometdTKn X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7eb29b32-7670-460a-8b7b-08da863aa5db X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2022 01:39:27.8168 (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: ATtiL7uHCWhrhLroXJfYtAPXsJUAcgN+xoCaVozpIt95D1Bn8ezLBUc4/m9b+y1XXWSnU/G+2tKKBWT8QlZFFQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6162 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220824_183931_327590_660DAFC4 X-CRM114-Status: UNSURE ( 9.97 ) 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 encoder add support for contiguous formats NV12 Signed-off-by: Ming Qian Reviewed-by: Tommaso Merciai --- 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,