Message ID | 20230414015543.6580-1-ming.qian@nxp.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp68854vqo; Thu, 13 Apr 2023 19:00:33 -0700 (PDT) X-Google-Smtp-Source: AKy350YkXQEPF+L98JCBI3JOtJTiBDQgwVVI8L4t9qUMbbEFS+Fvx2uBvl39YFzwwUE4g7xDNytz X-Received: by 2002:a05:6a21:339a:b0:e3:f25b:613f with SMTP id yy26-20020a056a21339a00b000e3f25b613fmr9986621pzb.14.1681437633556; Thu, 13 Apr 2023 19:00:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1681437633; cv=pass; d=google.com; s=arc-20160816; b=ceoiSOGJ7wBAuqFSu5YINeZxK9uNMGkTHD0fYn7qUXE6jO2nIzH9RUi2Ux0RZzDLoP laIWoR38ofgI6s2NK26JTG3aAMRAlLSTX10Rueb8kHt8nqxL9PJTL4Rld5sWDw1kGPmn P2Guqu248K9wnVE+MzI0FFJPNTQbqakQnQGRDGAPMdOjVL4vd0JSvwr3EZJ23C2zNsh2 +F0MfTcxAWlhYObDy1ewGhX0huqlqWFIcVgCcRdDI9Tr2NujqiFRdrbnZWkq/CAW91xz /DEC+exnTn2PvO3+lGVMTX74B3FZHzsuE+90FN3Rndp9yYqraW7UcCp0QPfc8wuaF8gt kU6g== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Zk4IZ76MKU4M3xvdoZJ5jc+nIK0/ySTzVEZsnaSj4Eo=; b=kp1Gfach2iiGAbqYyh/Lapkpy4fiXC+ZWe+kyI8VVG4kNAzacauzI/kogpsgNOOaVW L6iO1orPEyt7NzUR3vXyqtBMXP8MhnJK8ngvRw3HSmR5uhjAkr/0RoA5EiQDZPvKcc08 kKEnct/gPfppMFw+Lwa2IybXWfTaq31SHOPmtUort6pWChCcfHhsn/4q6UWHPJDh/HzD 9oSjwSl1v9Ftp9rtu9Wxjt6XHYg7a4Ro8/FTi0FlbjaeQ1k13HE8reGxcHdA4akS8e6+ B0VojVg0B7N/yJsmjjTgjLyKC/V7Fot/DReWMWEhv5u4nyv2P8QJeK+8Qux8w6/JDZI0 /XHQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=RxAto07W; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c22-20020a630d16000000b0051970ed57e0si3333440pgl.9.2023.04.13.19.00.19; Thu, 13 Apr 2023 19:00:33 -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=RxAto07W; 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 S229659AbjDNB4N (ORCPT <rfc822;peter110.wang@gmail.com> + 99 others); Thu, 13 Apr 2023 21:56:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbjDNB4L (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 13 Apr 2023 21:56:11 -0400 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2066.outbound.protection.outlook.com [40.107.105.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84E8F2709; Thu, 13 Apr 2023 18:56:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c6cILiX4wXF9K41Hkq59e83/ZEsdfzhIem+tEY5qpIF6pN14+4nu980lLP61xACkT/aVD1OYoxqHTTdc/m1lcKhubfreG6j6VMeXiZ7Xm/fSc3eP7Jt6KVnybHTj4w3iNoKbXMhVjhEgoBoiaJLadGyP3KX+po1zaLyOeunvvoyQua5R59uMN5xRJOt46nGhXmeB3fi0e7zpfYSIb2LelMMjuKbDKiFJQMpke1oOgCbEsat0NIDMXDotbrRGXLymB6j0p9FIUuN4OtwVgcgStnjwSQb/KT0lVorFyz5sZ3b/pDl5+Vfp7EgZQc9XwZhkaylSA9CkdZTHCdbtWDY/Nw== 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=Zk4IZ76MKU4M3xvdoZJ5jc+nIK0/ySTzVEZsnaSj4Eo=; b=LpqyWX4l5AZZLx3baF6vGhdsMDQVAYpPMX3H1ZNlPbpJjwCOmUvzG6/xK99SzLo40xubrNd1Hxlv2Wy8bIZC+wO+MlgSHFvTj9zl9+YikmP9YQbLEpANGx2vWSktzAVGv0eXyLHIa/mi3e4oK98lJcePnsLbWguOhPNJD6uumdCAfzBtO3Wqq+/ErG14jisj5fVRWRDPNnk1KRI/TC8nGmJ9wkbtCvDUVA5q4z3MzKz7YdyWC+E5SWTIlHZSHgeo1D2ECkAxY6PzrMNPwrtF920UxWrvZut6vjRtrTMSJbO2tvJ9E/AZ7ZadWSmf0+18ekwtEi0zwrNoan2cEqr0BA== 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=Zk4IZ76MKU4M3xvdoZJ5jc+nIK0/ySTzVEZsnaSj4Eo=; b=RxAto07WQj8Cq3Kufz2JhgYOLcdsbG7l+MXwnVWpB3wJH+S+wwOZX7mZOoIDdhNCJ7x7xr+heCngGJRfIqJPuf5QOf4+V2gdC9rJLDSpDmAlprGBA9oIF/xd3V9TLRYBLP4xJpBTInOITmt8EZMJgibcMihlfOc3B39RfIxE8Dg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB8PR04MB6346.eurprd04.prod.outlook.com (2603:10a6:10:10c::14) by PA4PR04MB9342.eurprd04.prod.outlook.com (2603:10a6:102:2a6::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.38; Fri, 14 Apr 2023 01:56:08 +0000 Received: from DB8PR04MB6346.eurprd04.prod.outlook.com ([fe80::632b:b1a2:25a1:d364]) by DB8PR04MB6346.eurprd04.prod.outlook.com ([fe80::632b:b1a2:25a1:d364%3]) with mapi id 15.20.6298.030; Fri, 14 Apr 2023 01:56:08 +0000 From: Ming Qian <ming.qian@nxp.com> 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, eagle.zhou@nxp.com, tao.jiang_2@nxp.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] media: amphion: drop repeated codec data for vc1l format Date: Fri, 14 Apr 2023 09:55:42 +0800 Message-Id: <20230414015543.6580-1-ming.qian@nxp.com> X-Mailer: git-send-email 2.38.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2P153CA0017.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::10) To DB8PR04MB6346.eurprd04.prod.outlook.com (2603:10a6:10:10c::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB8PR04MB6346:EE_|PA4PR04MB9342:EE_ X-MS-Office365-Filtering-Correlation-Id: b34842ff-afb8-4866-e5b9-08db3c8b69cc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iR1HoQh9A8SoG0YBN864NZt2FCh1bTP1detjICHUqWw4IVNwC4kZpjM6WkKSZhioe9V8PpnsXkJEuhHClCNOKM5HT3RwWHwcns/uwTrsKVYbPSNGq2rXsSUDyIL2stGLWCmrjWoJ3aeboG7Nmia2eGq+NJ+lyR36Uva6r4Rz1Ps3Fj5Es2y7p8wzCRbfrbYcfL7YUW1ouZ7AeMomfRKfYT/EnFe+VtPiLtSujREkorW0twX9eNIwWROUoNsYML9G/oTlFZjblp/N2b+h15h6r/IpwgWvRu6U+WR3ow4SyQSBDTpj2Y/yuAu21i7PHg013aSdMFVpp6iMe1fZsDGbf1WUKyyebYxuE9IGnHLKqWzIYucKbYDz+sHuGHEl4qZx1zYnQ+ou2XjeLKHhRgQqAbn+3HxFY97SBVDKzEtsBRnwqyNhPSK3WjQkLMbAsVU06HxAokAlWsDX2qWIL6TdeL0IJ/xpebhX2Ezaex1hhQUA1MM6Z10ZqsJmr6gPtxnlX7zwCeAGkqC+GBES5M/GpsfXbf1HXO+LNoGyy94awshZIkZAEeTCi6TGWybYZsSj+spaYiVKhkGuw+CSyqX+5gQ1xU09iBW9nQGuD7nSvSsWoOYbdQPCh/bR5TveiwZohg+AMFUM54Z1vaPaGq5ZYiLtt359jnQ/ivPJKhQ3+sw= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB8PR04MB6346.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(346002)(366004)(396003)(136003)(376002)(39860400002)(451199021)(478600001)(6512007)(52116002)(186003)(26005)(5660300002)(44832011)(6506007)(1076003)(2906002)(316002)(6666004)(4326008)(6486002)(66476007)(66946007)(66556008)(8676002)(8936002)(41300700001)(7416002)(83380400001)(38350700002)(36756003)(2616005)(38100700002)(86362001)(32563001)(357404004);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: rNaL1GAFuNVud+L4Nh24cZk7DgIVa2/S36s1WDnHzFKxQs6qWdUXATpoXrrg962qEq85CpiJvVAgTuAhiYlj8IJJ3IEKO7VbkOoxwx5ZprqBCntBXHhCSD+iQSkDw8VfH2HX1ispBR/NOICazefYdZ0NuiMaDAMxXMEzbYhaAn6AoxGJkoyTP15jYewfRHUVSeRDcT0eHnU4QWwLxvv4mPoS7+QMtICvy0xsJHeTB5h2WJUPXLb9HjbEU6l2+evCaE1qK4F6rFy/CpjwYHXIEVIZFAK/JmGdVYrFihnMteYTRTl6uAQfGiNpyiiSnBk/D/o3zmqrbzFbGmKVKBXYF3+vqp19iu+PmoqyaZReYTiryffH/rQaa6rZRS3EbvyXE3fczqxZ1MQjyICyQ4Z/TZtvrX+XhcdW5RSZjyuAFDUWCFyrlUDeWWct3KQFRKDycoirYbLbXqLqzu8P0azG7CEqS/dYDkHFNnqtU2oW9ukcv9p8g4i9WXqlpIuUNtM+ry32vo0JTOkCxZHD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ginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b34842ff-afb8-4866-e5b9-08db3c8b69cc X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB6346.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Apr 2023 01:56:07.9515 (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: 32VLx44TrDgRQc+JfNysFFIsVL9WcAJLO0uUSxkojMUtL63cjAgScPJBkVy+65U9XJs+wJqqnIQmFP/2l5WoZA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB9342 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763115147721274587?= X-GMAIL-MSGID: =?utf-8?q?1763115147721274587?= |
Series |
media: amphion: drop repeated codec data for vc1l format
|
|
Commit Message
Ming Qian
April 14, 2023, 1:55 a.m. UTC
For format V4L2_PIX_FMT_VC1_ANNEX_L, the codec data is replaced with startcode, and then driver drop it, otherwise it may led to decoding error. It's amphion vpu's limitation Driver has dropped the first codec data, but need to drop the repeated codec data too. Fixes: e670f5d672ef ("media: amphion: only insert the first sequence startcode for vc1l format") Signed-off-by: Ming Qian <ming.qian@nxp.com> Tested-by: xiahong.bao <xiahong.bao@nxp.com> --- drivers/media/platform/amphion/vpu_malone.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/drivers/media/platform/amphion/vpu_malone.c b/drivers/media/platform/amphion/vpu_malone.c index ef44bff9fbaf..e96994437429 100644 --- a/drivers/media/platform/amphion/vpu_malone.c +++ b/drivers/media/platform/amphion/vpu_malone.c @@ -1344,6 +1344,8 @@ static int vpu_malone_insert_scode_vc1_l_seq(struct malone_scode_t *scode) int size = 0; u8 rcv_seqhdr[MALONE_VC1_RCV_SEQ_HEADER_LEN]; + if (vpu_vb_is_codecconfig(to_vb2_v4l2_buffer(scode->vb))) + scode->need_data = 0; if (scode->inst->total_input_count) return 0; scode->need_data = 0;