Message ID | 20220412105156.17091-1-ming.qian@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 7E988C433EF for <linux-arm-kernel@archiver.kernel.org>; Tue, 12 Apr 2022 11:27:35 +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: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:In-Reply-To:References: List-Owner; bh=19zqqtwDW6QffDOUvYljdbRPdLpE37hrP7FTEFS0LBE=; b=jJiblhwoqRvRWH iJbq9LXKQFsd3r/S1gTXEjgUndz3RRukEXJFFVo0Ho+ygxmaOMif3ORtgWJ2daXgh2l1dcLv3xhFH Bvl6nqS/Qq9d9l+PhldhvmaACEO/l5fUaeUIKOCbTDwY2Wfq+E7wAMSoIDvZ4RLqHaU3tMBhsPXVE OKKUCOiIrBFGPgfbI/VjAVx5T8Wbci9QknHNU5XEf5HifQyQZz6gdJvzzjJ3KyZSWXc5hmPgIUtWN t1PYQl3TiD+qjeIWdFsqw26hZxypK4X9DfRm2Gem3XiLDC+R0TryDq00XlPWpM9MAFbnFvJSATLs0 fnkhfyTcV5gAKI56ZBVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1neEel-00Dfaa-MW; Tue, 12 Apr 2022 11:26:01 +0000 Received: from mail-db3eur04on061f.outbound.protection.outlook.com ([2a01:111:f400:fe0c::61f] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1neEMC-00DXwd-76 for linux-arm-kernel@lists.infradead.org; Tue, 12 Apr 2022 11:06:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W9Kgv90U5bKOeRVhhq57tPG27mxTZss5FVespC84E1kjrrnvjlrSXgzjdpAFtWavvkBtlWmF+8uFfKGSKh58822a8f6rTOpt/Xkt9bYbKQMS8MQ8kmXavH/LUA8HYa7b75V5wuO1n16Mf13ZO5iX1xvq2VdvYUlvz/G21Cb+N9Dm6BAc6kh/HNFZrzD15h7A+0Bc5lCiPNLWW2q180saGFaXjQMhm969lgVs5n6KlaPBRGQgAMmv1YbL2AQZCR0hyb1yoDJ1vEjIWYfgHETtHGsoUnrcPUu/ujbfRWkhNJNqg9hGa3MtDYFoWnbI0AyB74z+BgbyABkOSqzKbQe1bw== 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=Q9i9vK3j5n7CRaydbIQFvde0+sm/bQ1s4MbCbF6P36c=; b=F33Na0KOmQ9CyvrB5e8Z1e2cE5mr2+D4nW+zhlMVHrNTyDR/bizbBfbXzwHSxdbhza9EXMwZohmaExqosXJ4YnziMKHFuGgb1zDMQ4ubMIZBlk2E5QDn+P6/5wjEnPqKd3wyFuk1U4XTmvQd5yv+XmyYVEtmVsuJbnRT6rN9bRu/tCuEBWCGTkg4WQFerpdibsQOmUUr0Mt7dT6LeJ6CfmVf39m3oIX5IzFfW0cOiyaorr/fLORT2jdgQZ4vlFjxHs6OemSAKjvoQYmP7tNPYgxS35vd09GYN3z2sP95ir9rSxr1slKWJdRtZq4pcjnDvXGE/WHTWd1kGgkKdfJ/xw== 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=Q9i9vK3j5n7CRaydbIQFvde0+sm/bQ1s4MbCbF6P36c=; b=HrEoF2lDyj0PDNkGfv/foCGimcgiJadTvrj5Dvw9AyO3C35c6GtN8KCnbYo/ermPwogaKTzt8mfJp6r9+SlfgsRrPeM5amo4G4j6BcyQ4l1cIt7zH1c9mG6ar5zDXgszH6WF4wfn1BhbhOQ7pEe/G/LeOFo0JCoaKlsR7EwaEl8= 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 HE1PR0401MB2394.eurprd04.prod.outlook.com (2603:10a6:3:25::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.18; Tue, 12 Apr 2022 10:52:15 +0000 Received: from AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::d8b5:5914:5189:ffa5]) by AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::d8b5:5914:5189:ffa5%6]) with mapi id 15.20.5144.029; Tue, 12 Apr 2022 10:52:15 +0000 From: Ming Qian <ming.qian@nxp.com> To: mchehab@kernel.org, shawnguo@kernel.org Cc: hverkuil-cisco@xs4all.nl, robh+dt@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, aisheng.dong@nxp.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] media: amphion: fix decoder's interlaced filed Date: Tue, 12 Apr 2022 18:51:56 +0800 Message-Id: <20220412105156.17091-1-ming.qian@nxp.com> X-Mailer: git-send-email 2.35.1 X-ClientProxiedBy: SG2PR06CA0200.apcprd06.prod.outlook.com (2603:1096:4:1::32) 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: 4e1b6e2e-6096-4a9e-c9ff-08da1c72817d X-MS-TrafficTypeDiagnostic: HE1PR0401MB2394:EE_ X-Microsoft-Antispam-PRVS: <HE1PR0401MB23940FB62C1352B14B16FC0BE7ED9@HE1PR0401MB2394.eurprd04.prod.outlook.com> X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BxOACPzHWIwH/ExE/3vb56RC4uRRnIdZ81XONikaPEuzuTs5zsQUqt18E4U3wihk2Y6yJJPc7o5crI2pLznhelsN8aYI+kwijytJa/X7NGxl9nhkJGDue0VWOMBpha0UEayjAqi+2pkgOcjkemcylnx5tMnyxsA1cI6t0FXWAH2UYbSf0D6j44+LQo1GEGpVyFATes+kVmQO3QgbBinUrAVrBcsMt5O/TAt17T/8b56APNIKtobyUS7jxN9vzqNS/Y7PYWhv63+fw0NRwPSIIYgIiGFKszK6BUWNRFl469RoAqZNNLSoYwWV24hEREtdVFccvFKBtu6mtQL+CLurm/PhB+KVaGOcLKhzg5M3W5T2E2mxYxO3TJ1dQjUQ0Q+lVJk4pC9Lyhk09F6JVFTy/UvGqBvnKNVvFzkrwPYzclcSqjaiHp2+vKFYXlwRtC59LV3b9eFZgTiTxV8iVwzcWqw+TZYmfqDwvRdYWtY3PPQX7NrJiHrGv45EsCocuPCmh4ZuVeKqaSuJTIB98UyNuIHCKguaHCNOujFdHxOhJFhKQ8WI8wfVpqz3lZg614mC8O01e0KYLXgDQiIFszewyHL4+dEcDdpnnaYbpncKJ2q9ENCqgx6uwRl9dQXCYc9OuglinlBTtJeBf/QtFkRdAgp47PmfDV9IPuvqJjNiinHkOHVZ9WOntuK7qA5C23MATzEZWmDL/Y8aR8KcTSLOWg== 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:(13230001)(4636009)(366004)(1076003)(2616005)(6666004)(6512007)(6506007)(52116002)(186003)(26005)(2906002)(83380400001)(44832011)(7416002)(8936002)(5660300002)(508600001)(6486002)(4326008)(316002)(66946007)(8676002)(66476007)(66556008)(38350700002)(38100700002)(36756003)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: UvgDqPQPLa94ZU/HvkamXBX5/a6y2vEtJGeb1urXCk+gxQsUjjJ9ULGD+Dhd6vTdCu0kxy78fplapytncdHtZgYB+DkpzfAtAqe/8T4bsMUuhuGjL9v0ihX09aAJhhRxOiBVzTd0e3Q3EQQrk6us232//OAcd7V57XfTKmi1wuL1/9PZuNgNn6llavZE+184wBHEt9YhDs0nWQMh5p8j0wt1YVIm87pcd9QgiYDwt8KiDNae0IfmwIG8EB3IjuRnEAerWN7wQ0Et/6E4mFCse2LVuyFW5OtC2llEdbrwBU9mW2Ptm++IQ4CH+aXVV1iw56ss3ePRRawm5dPDHMNXllAsLTqDn7cSt6P0ye+i8oYLjPtWcQhv0KWbrAcDsSaculBUIxJjTEaG2UWE3cG6T1MHPtElptW5TwF+cUmpoAXUxrKmFE05tLeeL45Mg0efRab9Jhq0RBqYuy3TE6xTbaJAm58s8vC4kwfBURcte0JZo6BqSLF+xWfn/5OAVkX/a434JyUQwlSSGPUU0hu5aHBzwa9M3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zcE2UDzbq/zXnYWiPXeD1wbugnHBnx2rwSI2hrlLI9wyxayQ/3RsOmcuDwvLl74WN5Qg8V3X/+h4J9N0etRFZj+SHetLHQvBQTc2quOFiSfiqoBtDtJFqLLQ== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4e1b6e2e-6096-4a9e-c9ff-08da1c72817d X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2022 10:52:15.3512 (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: cgafVrFUfAsj53J8udtM8A+Vry8Wqn6G8FGtM/NnuPga00GtayDTHlQkOBS6mDfkVs9guTm6YxTH2e1aA6A5Bw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0401MB2394 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220412_040648_300382_DD1EA6DF X-CRM114-Status: GOOD ( 11.67 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
media: amphion: fix decoder's interlaced filed
|
expand
|
diff --git a/drivers/media/platform/amphion/vdec.c b/drivers/media/platform/amphion/vdec.c index 09628dd0c855..0a1976852b0d 100644 --- a/drivers/media/platform/amphion/vdec.c +++ b/drivers/media/platform/amphion/vdec.c @@ -804,7 +804,7 @@ static void vdec_init_fmt(struct vpu_inst *inst) if (vdec->codec_info.progressive) inst->cap_format.field = V4L2_FIELD_NONE; else - inst->cap_format.field = V4L2_FIELD_SEQ_BT; + inst->cap_format.field = V4L2_FIELD_SEQ_TB; if (vdec->codec_info.color_primaries == V4L2_COLORSPACE_DEFAULT) vdec->codec_info.color_primaries = V4L2_COLORSPACE_REC709; if (vdec->codec_info.transfer_chars == V4L2_XFER_FUNC_DEFAULT)
For interlaced frame, the amphion vpu will store the two fileds sequential into one buffer, top-bottom order so the filed should be set to V4L2_FIELD_SEQ_TB. fix the previous bug that setting it to V4L2_FIELD_SEQ_BT wrongly. Signed-off-by: Ming Qian <ming.qian@nxp.com> --- drivers/media/platform/amphion/vdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)