From patchwork Tue Jan 3 07:15:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Qian X-Patchwork-Id: 38301 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4483496wrt; Mon, 2 Jan 2023 23:21:31 -0800 (PST) X-Google-Smtp-Source: AMrXdXuwz+74H+uvmFKr/mLWGJptFjne1mxNAfCrFk+M9S0PuWyWhyVILZ+8auL9Q2b9hqZv7oRD X-Received: by 2002:a17:90a:bb18:b0:226:140a:ba8e with SMTP id u24-20020a17090abb1800b00226140aba8emr22291678pjr.39.1672730491521; Mon, 02 Jan 2023 23:21:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1672730491; cv=pass; d=google.com; s=arc-20160816; b=qBIVRR3sUWkj+uIkVSaFNKbrsyD3/0s2fjwvOiK1LSxTFFkS8qojEp2kfQuX4J4NCg QpB63AojO9UgqiShgcNw3lESHd/PfHLPLz46WypKZ4A9iGZ9KnBxHmGbH08BaXun+7ua uYAsnrPsLmNkrdiPJzG5YrNqR19c3ry4seOR1qwhcsWXZD/NsMQmJIRoB2Tx22RPAvLb xpMMnnjLqj80zPe2dPyGErmeK1C4hUimEdulYhJ0dIvdAEXqe2FzNMSUVRQx0Nd9qMbu 9BpiHq/7T8ashzOdDWIGM/6wcGn2MAm3eA/8eVi+FdNtlp2wiSXxqCLPwV11akmKggXC s4Sg== 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=y4ViUXDu71TtUvRlUjlCbWIl4cwHkkzal6U1X/tvOuY=; b=iY3zpxQk3O1LfuatD6VpbxFrx63YDJVSx/btYSD2P83PKwot/ZJyniGZphEJjCONpw 5WHY5Ez9tHiXWqj+aJAR4Q27js3QNV5eJYRebsm8b7E0HvE88Nj547EU/DwONsmFonnS YDdBEtadRzcnBoWNtfAVUKlRe25OWrkY+ZKjEhTEg1GsKmuNi6J6z20zuMuASWiMI610 iBF+6JCBV2BX0VPUqmowUVi4GpRKCIqNl05CklxfAkPimiZCSyg8gMjMsxEmAUqhXgpy WkIoDZNygJoALRP0f86xxBAInPIfGHgaINI8m0WdvrcgjLN3XSNJgqRehHNJ2LkMDOwC z5Kw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=obF3QVPI; 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 t11-20020a17090a4e4b00b00218b7ae4defsi33420084pjl.134.2023.01.02.23.21.17; Mon, 02 Jan 2023 23:21:31 -0800 (PST) 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=obF3QVPI; 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 S232845AbjACHQ2 (ORCPT + 99 others); Tue, 3 Jan 2023 02:16:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230124AbjACHQ0 (ORCPT ); Tue, 3 Jan 2023 02:16:26 -0500 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2082.outbound.protection.outlook.com [40.107.13.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F043565A0; Mon, 2 Jan 2023 23:16:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TmKK6XUvZU6fAF0TKhWzLtlxBvpx7b0wUeoBpHJAlwQykDX07ibWQcTeVZoh9HWOGIHHfh0OM3Rsd4Cqz+a+EDHZfxRufm7tqP0/JxJ2awJC+EWGzUFdT2kY0d6nger3AQMgFW5STbpRMLMo67CLJ6dtT50dX/aUAZNUp/7HCYbHUOlmt5x9oOU8cd8uIeFXDcHH1OtmDaMVuvTYcVHGAl6BkOrOGcjjkVKLU09EO8YeQiUwk2NN874yY8X1hek7z3yhu4RVpJ8xmRAvU2HuxjBuI1jma/R2RfFzhLKhgaAL4i1mScIO0WIJlBjnqDS7etP4FTjxRxXr/5Ncu/OLXg== 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=y4ViUXDu71TtUvRlUjlCbWIl4cwHkkzal6U1X/tvOuY=; b=fd5ZwmOZp4W21CKjGL3qTw6hkueFZT+Lx9+/Q+o/lXBomMz735/CdN63HPQ0+JQ1c7yYW8jfcRMpx+m3SMBNvTJ4vbSqdMMgZ7ATlSahSGzQYOlTyUcpZZsjggpQlKfHoXlC4KU8mx0otRTx/fJ4Z2GVfbtVUGTSDVHCJbSP13gQent4bsCBcgDvfQMFwchyo+P8zS7tFi9x6C2Gf0g+dXOOaPi0yXNqaa5T6GlqhYCIELBfPpdrXMApwUM7i9oKWwN6D68zNdsYNMCdj/m/K1KXmnHszAWC9PCnhtMD3D6dymsM6PsMW/Zry/Ut1u0TPVEoX1AoOgXhtxIeG8/BzQ== 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=y4ViUXDu71TtUvRlUjlCbWIl4cwHkkzal6U1X/tvOuY=; b=obF3QVPIM32PmXAUsDl3NnM7jV2Ll4yeUPcPTpUykDQTXkfp25htdRN3SHrcyp5B4XcmLa2u+awRFX4uSDDEHYtnd/Q4RBtydz3o3wY1kJbGYc+ZeQezb3qxo+LxcbeIbOr/nx07sKFepkbProW1J+j2btrcEyhd9+SQMYup0Y0= 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 PAXPR04MB9105.eurprd04.prod.outlook.com (2603:10a6:102:225::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Tue, 3 Jan 2023 07:16:21 +0000 Received: from AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::3a82:42b3:f1ed:5c3d]) by AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::3a82:42b3:f1ed:5c3d%7]) with mapi id 15.20.5944.019; Tue, 3 Jan 2023 07:16:21 +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, 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 1/3] media: venus: adapt headers only flag for V4L2_MPEG_VIDEO_HEADER_MODE_SEPARATE Date: Tue, 3 Jan 2023 15:15:49 +0800 Message-Id: <20230103071551.17775-1-ming.qian@nxp.com> X-Mailer: git-send-email 2.38.1 X-ClientProxiedBy: SG2PR01CA0190.apcprd01.prod.exchangelabs.com (2603:1096:4:189::11) To AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB6341:EE_|PAXPR04MB9105:EE_ X-MS-Office365-Filtering-Correlation-Id: b39867a0-c389-4439-29fd-08daed5a6a2d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dOLw4xZwLmQIeYkc/uQfkfqVah7H6SCWJ3B5ss21Am5u05Pvi6kxYuUfbkC9Azd5whZQqja3DzqCqwl3A9A+wHWGzAGuuaViz4nv2YmZEkjjFPt0sKFzycJhRGsirbnsbe6Y+ycQ8FagnYcoFksd7sVypEj9KVo5XGxRfge+XaJMHaTJIWtHTDGydt1dM3WQUkgKnpsRDqFcw5WrP5uZ7s+5hAOTKdLvi7juXn9sqIWcLz2NTx8JrNKk545K86ehm9i+G4RJ5jRhYtkSVBcqswRwLuVL3pXzkHPvGsnoliQI1SAASBncWBAEmiJIfSfqX48j1UK3YKM1B5zEeqpf6ZlDvRN3PLhTPEHOtt0P3uBKmtaGDTjdTAJkXAsToKLhh2EKzR/5/aQBFK1JnoZ+yIBY9t5xxhFJBpGUidu2Q/GiC0JXMF2bUXHjKqZJPnA35vWyFw6WC3jwBT4lX6FStp2beCqbIyijeFUfpFDSaFS13expgC952CPOT388hHEFOdHK2nE6kMHFlR70blUCfLzSKUAYn075gNkDSDxlAG+HupamKto6XmkBr2Ibqb5mJh2ebhseQgMPUoqru1Nqk0g6ZHpiuTZVCzDRDeP5XMH6Me+HklDzBYL6/lNWQhuBxvLZUx9HzJlStkmQAa7rq16duQt2XB5HlEEBREnlPxPzChZPM7rAHamN9cxX70sngotVFk1pzM/B89uoCFr6OHdEWSWo5aCjXEMFujK/7z4= 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:(13230022)(4636009)(366004)(346002)(39860400002)(376002)(136003)(396003)(451199015)(6666004)(6512007)(26005)(52116002)(186003)(1076003)(2616005)(6486002)(6506007)(478600001)(66946007)(8676002)(4326008)(66556008)(8936002)(41300700001)(66476007)(4744005)(7416002)(5660300002)(2906002)(44832011)(38100700002)(38350700002)(86362001)(316002)(36756003)(22166006);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: WtfARzkzQpu/i/rsKUGEEKgTvgLq/kJ6RHHIx8minHrGbZMbWxtvpi/SR2gpwsiv6Ou8a4spvYlH87OeU9oQivB9hkhBwTantM+beH1xb0M0zo8svIN6RMfhOrUBCUCmO5QooeLq0uANPLNP4uym6D9I7+O7xU0rOxpX90973KazFm9xBU6CaHPkK0jQPikJ/JDLdk0R3STYKJ9/DqODn2mkbJAfLJxS/zLQhAkpZepr1e0t8XxmLf3stO/FTcjqvdnP7Mn3Bc6gxjqC6zt5DxVqAoRDEt1Cio5G6B5YkNi1TrdKUgAzVyIWy/DpKPYbLn20KFT+y59BgHDnw2BiyHCOpJtab1Ybb7uEmUNt6GbylEkOH+uh9kbGZGMgf3egrweoRIPPha9GAoLM5+eBiOlvhewUXWE9fbHQMMPdsGxf8ya8Z1HQYAAPuAuvhT7u4VZH7tgA8Kczwu9giXw75yp9jJIpoFWsB50aP7q9AJ8r+yLfMDaCTql0pt0r3MLGEb1vDpbcKoAgbW7xjIDfNADZFnZqzcbzGSe9rzH4qTv+q/evgrL5wTnmefmU9IfAL5eU19lM2LWsVb9cIKpjcNJ89ydtaJWA+l34unMfVRB5p8QzitgMaZ3W9iMgfeu3YwOfUTA5jB5BJlmoV5RRcHKeBpOjH84wh+qougQkvQ5yZXcs8j0zJN7Rh6BzFOSiXZQI5SILFYrIdbfFXkf1T37pYlCrfg5ZR5dVIBzDdTA9Yy4m1jJLwAEs1lvE5eNkCw+12d7z63CApmhrMXZ9Yks8XlxWSwoOWzwUQOv9/3098xncAA1KKSmxcU1mCujc2ADQRGAtC3rObUgs21GvjgashznhEsam2rk6xwpBgMaLb+TIq9V6p8IeFETrdlJ4SCrb84C4YKXBINIkpSEej9fw5PTvTS8T9ygsYRXTRM/dnemq14x+KgQs8px2fwR2pSfJtpmYVCmF0VHlAycsYn5vGNPa+Dwo+p8CCqfbnp4ap3GzqU9QQQzWTrXYHtE2Qly3ZytjeOkScWM7Cow2YjIHAZDIvtC46yui6y6X8zN3hGYUg7rv9H4T++BNAAGuYCJGEYIz1KsrUTGdK2GIbgpzGi5Y/zSwNJKBqTahPmosF2ftBqWWOqQlZAE5MMzlseroC60hqz9iiMBZCRT8gLsSyktjqNOzZPLy66aC/3/LGCMaqL2vAiUOcv94ic/2fbF6u0ZQtHzN0GML7kMKF1SC/Sgf/Vr8PdQCkMKhxFKkACMSDugbOx3BdXvuij22ShOU74qbzzNnZST67zQeu5iVsyfQoQHDuKkVZ+4+uZgx75BTsSQ8B1sqFdHHVqx9ubEHAsPwzp1RgibmWQPItJt5NQYPTXa+Erhanf458pyo42KjN6dsQccvaG/mZ3Kze9dQ7TxOjpUyoHfDuNv0VHKsEd+Sti6AEr8DgaS6kxmBI/V5euvhuZQ97WauIzs5hl/nz7zh1lYYeWUDRiCp1XL3GA5RjFTAohhKNR2xM2qF8q2H7mJX0LutPJlf3DAdJjKBtIqSWfJalC4RRFF+c3pOuoEpnXgpDt35LdpuCRHTsxGovKWseu7vwWo5UUls X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b39867a0-c389-4439-29fd-08daed5a6a2d X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jan 2023 07:16:21.3655 (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: fy92XVw8WjS9fbz4CpZmDcJ8RzRJcFjyJIcuSLwFQJmxPHZ3e69XsizOq+FgxfvpkOOUmpuJuIsEcqS/RLGgzQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9105 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753985047932653646?= X-GMAIL-MSGID: =?utf-8?q?1753985047932653646?= when V4L2_MPEG_VIDEO_HEADER_MODE_SEPARATE is chosen, the first buffer only contains stream header, so apply the flag V4L2_BUF_FLAG_HEADERS_ONLY Signed-off-by: Ming Qian --- drivers/media/platform/qcom/venus/venc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/platform/qcom/venus/venc.c b/drivers/media/platform/qcom/venus/venc.c index cdb12546c4fa..33c8e4329f6e 100644 --- a/drivers/media/platform/qcom/venus/venc.c +++ b/drivers/media/platform/qcom/venus/venc.c @@ -1260,6 +1260,9 @@ static void venc_buf_done(struct venus_inst *inst, unsigned int buf_type, vb->planes[0].data_offset = data_offset; vb->timestamp = timestamp_us * NSEC_PER_USEC; vbuf->sequence = inst->sequence_cap++; + if (inst->controls.enc.header_mode == V4L2_MPEG_VIDEO_HEADER_MODE_SEPARATE && + !vbuf->sequence) + vbuf->flags |= V4L2_BUF_FLAG_HEADERS_ONLY; } else { vbuf->sequence = inst->sequence_out++; } From patchwork Tue Jan 3 07:15:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Qian X-Patchwork-Id: 38302 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4483502wrt; Mon, 2 Jan 2023 23:21:32 -0800 (PST) X-Google-Smtp-Source: AMrXdXvJLkxAKumroc6M8lhlJAPRj/jxHerbTwE2H1SDFQkigEdempsrItetQaUPsh2d1NcryC0x X-Received: by 2002:a17:902:d50a:b0:192:d5cf:ab7e with SMTP id b10-20020a170902d50a00b00192d5cfab7emr4385719plg.32.1672730491649; Mon, 02 Jan 2023 23:21:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1672730491; cv=pass; d=google.com; s=arc-20160816; b=Lmfdm5rW3YvxCofXO8SDjpEo91JLFGR2Z3rtATDRvmkgwDvCrxXEAIjb1NxUp2qlZ8 /hDXw/bPUDRyf+FaYF8GOVNUIfkB6WtKPiCUsT/M3DHYEyg5N13JI98c64PCUOYaMbXc YNCT8Ap4IMDpOIMxK+H8Xyya03dXWH+Cu2hl05abrJ+htG3DUXBELVYp+4AlCcnFAlWp uvXd4Ly+3ngg7FNJQ1mD933a9GiuZAEvKzQ7R3U4a84C02dkgvwMuNkMkciu1NM6uuN3 PwWn2zDVq+rbE1jIain7TLA97XA9XH7UuAux5aTcMeBrJ/xumBm5wkKNMh81RF4i7d/Z yM5w== 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=f+y6iIhrS5JunYvVEruqowZ2fSo4orDjM9N9C7SO2Xk=; b=XOSgcQEa63RTXRTMQfoiPWsnhRjtvLOo28xHM5usYab2HJguRRjvuaowHiLzrYH2Xl RKbUx3MILRK7pREQ0UjBbObiH1yjZSVcMz04oFFIwSpB1Nne3CfOLI5kN6lyYkOIfp3+ 8S0AZzpaHJOacfApR7Qx0UTltHRJ37t0rrRC5h4Tly1waKgtCkp6rceNrt+JfRC6q3KM HTsR/b8XHT6iwxo08CH6jhYy8Suu2O/dxrAA2Dwfh5gDIQ1/ewd54Wu1GilafkDxxSd7 SxKPJvXABAYVcnQkaoFKFp4z2iryEHN+qy0xrb5ExBHY76I/ojpbEsaAFDUe6XUWfOkZ nGjQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=G4yRDlNN; 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 h2-20020a170902f54200b00192721d4f1fsi29850244plf.494.2023.01.02.23.21.17; Mon, 02 Jan 2023 23:21:31 -0800 (PST) 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=G4yRDlNN; 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 S236794AbjACHQa (ORCPT + 99 others); Tue, 3 Jan 2023 02:16:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230124AbjACHQ2 (ORCPT ); Tue, 3 Jan 2023 02:16:28 -0500 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2041.outbound.protection.outlook.com [40.107.20.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6E0365A0; Mon, 2 Jan 2023 23:16:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GP4OmOn/gsuZW1Wt+Enc0Qb4uLXuG/K5djkEbhtGbyX19XQ0HuyAT8cv13rd5ZuP10rRSOBRrVpwUO7AK4sMQMKawjYv26WK9tGQrCHvpqhvPbaabtYOTU/R9jXHo3bcpbhtTc00snhKdC/+VjMriyrGbjhYcQIDhUewBrAH6wfPLmi7SJHc1hH+Pl4KWjTe7dnyDvWjmdFeT//lStFR+15ml+Ojsjvr8Yi13CZCIFKzSUcoVeMYxwYrVLU1/u3PuEnILV6t/VYHii0CuokezZvo9OhSBf6u71uZtzzi1bUrucYKtQa1Qq4FzFQ3pLfbJIbmIldKZXiz+uL20AG7Cw== 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=f+y6iIhrS5JunYvVEruqowZ2fSo4orDjM9N9C7SO2Xk=; b=DNP32R6ijWhpFjj8AYqa/2WNMpL5RsVK2pDXCM9Las82T3tVEDnTZXbFtM4v/8LLdz2X6+k/0jrJklBGR3hFbOlbeWncLPcSrjkhJkr9FENRCKRZqH6pXhJcj6E9f2cz1lTJ91Ayl/B7+RNTmqWC4utUdgiOo1KqwgstLxFIIO+isIy5C5lPqbYKVzHpQZNaVFQo9nGJkzN3FKyjFP27zRD3T88UnJbtf51LupEQnLdiJzNF+QHrNzPCZoGgo7VRswvc6/kEIjnR6SG9nNkOp2EIcqYGR0nO4XI8sF9GbHbkyBHJl6ywfl9GSPOQlKgkKwBeWbJ3cH1JMRoLh17wog== 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=f+y6iIhrS5JunYvVEruqowZ2fSo4orDjM9N9C7SO2Xk=; b=G4yRDlNNI+XxW0LKCV3hOh0KTVe3VbJZlZqgzQCgf0o+bCeEob7zsmpASpTVfNtsUzfcyBGkWAvf/eIW33OvnHnLSfz3knSMyK+Cm/LqiMHRxiJ/56AuGmcZD/aRIbrU0WG/dcALCS7171xWsbe70iy865lpaRNUtA0v90fWL/Q= 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 PAXPR04MB9105.eurprd04.prod.outlook.com (2603:10a6:102:225::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Tue, 3 Jan 2023 07:16:25 +0000 Received: from AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::3a82:42b3:f1ed:5c3d]) by AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::3a82:42b3:f1ed:5c3d%7]) with mapi id 15.20.5944.019; Tue, 3 Jan 2023 07:16:25 +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, 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 2/3] media: s5p-mfc: adapt headers only flag for V4L2_MPEG_VIDEO_HEADER_MODE_SEPARATE Date: Tue, 3 Jan 2023 15:15:50 +0800 Message-Id: <20230103071551.17775-2-ming.qian@nxp.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230103071551.17775-1-ming.qian@nxp.com> References: <20230103071551.17775-1-ming.qian@nxp.com> X-ClientProxiedBy: SG2PR01CA0190.apcprd01.prod.exchangelabs.com (2603:1096:4:189::11) To AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB6341:EE_|PAXPR04MB9105:EE_ X-MS-Office365-Filtering-Correlation-Id: a7fa43df-d856-4ae6-659d-08daed5a6cba X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QEIay3vHATT3UQ+HwwD7mrivmpqzfy8Vt7k+ph1yH0kQq6kIRczdZCkEo2r0qPpgr/roXquoskVc/V1OSwWuRoZU+QtylVo8GhmYKWmb0CgoVMnd4n6wslJXhbRc7tyz2Xl3XS0uEA6Mwi+3dMzDyM4nXLg70CihJdeGNdFY5ibbEWeCVLmMdQgfhXF/pXDbZ+eMitdXSqF+34yFwr9/5e1qQeyClKNjgyRrfsR5WmM5ZdfSfBQpXcnrXkwk2Bxyy75odnf/hHQI6pwWgRPgPDvb3WS9KX8C8LKW9qqG9gb9Bd+yhhXJiVvYEigTZvCd6uOst7nF3ka7WU5ZlKwPA3qdSyFnLEzWwKod/qVdFpJ2cQPXKVS2MOcsVbXc0Q0zyTbO+2/DSbis4emaBks0zgw3meBXmrt7X9sPOSGu9nMTJpl3FApSVVUeUUcSYq6RA8B1hotWlTo5X69IP2gCQxAzC9UmeHW8u/MQvWhIWPtAV/fWkyE9x4nxv51WhbV58SHjdrYhPM/z/X0OUzt/urtTCgx9ptn/iz9y6NF+JMmf4t33K9XdBByPYO7raCGz+8dXR0Rl0xPZgF10xtOMhc1cxRt9hilzK3tENyBI1nPhwWlDPUGL2IPT/vm5IQ0+P4jwLLfvXGjBSGXaz7dQb+TDtngdl5MiKPK57BNB54M/dmlbj/JKMZ8ekz5Vq+bQ/nBYnQxuglioVPcFl1F1NVRdgSI59WrxzMzP9pmzA9o= 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:(13230022)(4636009)(366004)(346002)(39860400002)(376002)(136003)(396003)(451199015)(6666004)(6512007)(26005)(52116002)(186003)(1076003)(2616005)(6486002)(6506007)(478600001)(66946007)(8676002)(4326008)(66556008)(8936002)(41300700001)(66476007)(4744005)(7416002)(5660300002)(2906002)(44832011)(38100700002)(38350700002)(86362001)(316002)(36756003)(22166006);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: hcXiqIMcNSnFHZoP5IrgmKYt4mHH34NQAcZIoEZHePZxSIcQ7kKvAXqtVMQPlTRgy3obh3gnBFmct8ta0RFPvzuGxJBmztZXnlFiErBI6ulueqlYRviYn+DuunUlMmqNNT0+BPgx279UCftF9uC8ztr0x3dZ/0eAzmCS7cTG9Zly++VR1qxzr0HtWMpcrvFnSJo0xIVGtZ7AXKQOzpXUzWB3YXskVXn5BflATHxFxqxD0BtX82kCByTG+B/gMbArJHiFYXFHv8avbRmWLM/1v8CW39kvxVDBjJFcqLIyQB8+LtzCEC3jii8ZmzKunnUccqD8+G/CktxJXHUIMQEAY92Jz+pUAdQpFl/mf5zwz7uK1O9l3DCIC2chNMFv4zadIFxZTB1gk021hqgwm3lB73FQOTRBDkGrfyNYkQCzXkbly4RRIRY5WD8TfbUhmjmiWQ7mo1E4KseXX1u8Hq5SK0mv4GByrfCmXUJzdH0Ttg2i/5SFXvMaYtthzmmn5WOdpDk5w/ZnYteh65K8LPGCDZDo+VKog9BWsK40n4sj5K2lJz5116KvBfhJfyfXR++iG30J9tPb2yDhue4om7J6d7QoCys5FJsZX97quLOQgaf8pXjKu6hXagXfABNYwDg/f/fq1eeN5fhcJzaIQIC1r2suqNZmZ1KRRfYCzFa02goMZW507XBLq3bgcJ0rM0Ir1zYFmbx8XDQlocZX33sqwTIqrwjxKzZGcIUZpINm1CWJz9ltqCSRbuprU7WVdfPzMyHJ5gMT8YlD7UrbX2xuUNA7zUyOkz2zN9RngexCNG/bO3gcBfmk9E2XEM2HwZa7FmraBPekz58eEmgMftBqvl+Qe2yDTZVfzzvRFAbwzRiCEcCXxYigdjxh8xPCrVlM6liGvXhZfEXUAjO/2rBRrdQKEx3//FoGigHCEWKP8BcjyPrBgFy/b7SW+BsXasXuL1G2YbLpAUHkEEtiIUDsdXVijldL2B1OV/JiZQPugLDAAu6jsRKWYtMWfPTrmiGOnRFtS6+7nYko7GUs8rEIkJqFDfGwLiQ/JjfGRnM5A0+SOYaEA2hoBVscGNA9C3ftYcg68lDkvDCBH/HYUeDBQ182VHUWb9BUP1yMnki6qMQt8t1tPh3IdwB9zKGMv7m/VGADwvI66oSzhJilbTo6DFjzg2a0FDW0hZOtMfqFpKC2Bh4jajcntt4j54csogTqXRfEkCc6wvNiRKMWAllp1OZrRrJKAl/GUmh+NanXXWNVJtZxCEFOxcypGaweaUeg1lQDPAq5Ifdjg5AUpa+Njtl9PnGx3HmJ3JBHNzat4ty4Q2ju75O1Nx2KnIDE1zMBHI0aXE8fW2k8enb66BJP1vkLvQriTf/V538g6Mnmb2SlQTAuvcK2IVgOAL2MbObq6UZrZrzNKsTaW0OxieZ0V/fc28a2s06OIWRA3HvLO/4f9goYcWrhl5/Pz+igSTV+ER8F/Ennbu2aOfwVRXKURA755IL/B+NCgWuSCzQBptMLo8LIorTEpCjhpR6nwPgjjU8Sc7ATdTe944pNHI4fFTU3RY/r84CWnME95i3FijajONrdQv8RnQla3Toy8xhc X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a7fa43df-d856-4ae6-659d-08daed5a6cba X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jan 2023 07:16:25.6309 (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: qnU0vHhtUDXCUId2Ey+BxPj7DN7kOsB+FEIn8cpUWDELzq92bqRz14o4/VK+pxblIjnYDetumGxJ0qlofnN17w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9105 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753985047911278787?= X-GMAIL-MSGID: =?utf-8?q?1753985047911278787?= when V4L2_MPEG_VIDEO_HEADER_MODE_SEPARATE is chosen, the first buffer only contains stream header, so apply the flag V4L2_BUF_FLAG_HEADERS_ONLY Signed-off-by: Ming Qian --- drivers/media/platform/samsung/s5p-mfc/s5p_mfc_enc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_enc.c b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_enc.c index f62703cebb77..ca990833753c 100644 --- a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_enc.c +++ b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_enc.c @@ -1161,6 +1161,7 @@ static int enc_post_seq_start(struct s5p_mfc_ctx *ctx) vb2_set_plane_payload(&dst_mb->b->vb2_buf, 0, s5p_mfc_hw_call(dev->mfc_ops, get_enc_strm_size, dev)); + dst_mb->b->flags |= V4L2_BUF_FLAG_HEADERS_ONLY; vb2_buffer_done(&dst_mb->b->vb2_buf, VB2_BUF_STATE_DONE); } From patchwork Tue Jan 3 07:15:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Qian X-Patchwork-Id: 38303 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4483545wrt; Mon, 2 Jan 2023 23:21:39 -0800 (PST) X-Google-Smtp-Source: AMrXdXtGJTbPcBsRjWOrbg8NzM4GMGcXXXq8LRM8LXjwMQWxP+sU2s2nvQmGosoLG/pkZq/6AHzj X-Received: by 2002:a17:90a:f8b:b0:21e:a1d1:509f with SMTP id 11-20020a17090a0f8b00b0021ea1d1509fmr48229288pjz.5.1672730499350; Mon, 02 Jan 2023 23:21:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1672730499; cv=pass; d=google.com; s=arc-20160816; b=jQ/HHSIMBVlGX7yQDmw/kiQnHoGUdVPcUqoVrt2+sSt2c/Z6I0tWawos3aL4/l2aND sZGm/JDaVORECBWILbYiDKr4VdtjAp1nuYxo3FCIkTvoZkSOKUDMhj3pEtXTpKfat/vo WkVz2iAUT55Fu82Cb02VWxQZH6HTxFWvXbYtqQ/yEKwYeAzlB+hNP8Wgied/XFMbYHJc eUP4LAf3LhFRDC1rzPzNF4YQwSyo7C0u+03DUS3bSArX+SggKXNEQTsBrStcl08E7Dmo Zya3x1GOwL798YkFB/XiauiZivnhj8SrBX/V6F+QV0WUXlzus7nE67WErF40L0Acgc4D 0/LQ== 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=AbpI+qaKR5rhVAxXuimNt0NGEg1+MxeOhCO0hO49VpY=; b=Bk83horUjcDKpQLWEHCkuoFulAl4yW2yPuBObGSGn5yeccxFXHQ3rR9lNXkyNk7dUF CcILpxlXB/dytTQteaJOMQuqQVEXJSgnHfnQiHwwX0u9mfB1mlEQ9HBhORoCgRPOY68K l7VkiuMfpbadEHiemf8lQWRvz0iObwpvj0Ql4Ri57Yw3dTdoKZv9/AYdpMBMM2B8nNbe ybimTC2pB5TMa9fCHzitkDMl0ql1RWiSO91xQUEoRY2E2hOtOSYaAB94eMfaqqVibtN5 F6asBj0nh5vgLrGXyOcKKxaMYjhAFHuQreNf4E4+f6SHeY4bSZtZhC1PWEPIL4GH/yzg 1cTg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=MmJLk2mW; 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 t21-20020a17090a5d9500b00213213d63bbsi28480857pji.41.2023.01.02.23.21.27; Mon, 02 Jan 2023 23:21:39 -0800 (PST) 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=MmJLk2mW; 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 S236868AbjACHQh (ORCPT + 99 others); Tue, 3 Jan 2023 02:16:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236810AbjACHQd (ORCPT ); Tue, 3 Jan 2023 02:16:33 -0500 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2085.outbound.protection.outlook.com [40.107.13.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9751E9FEF; Mon, 2 Jan 2023 23:16:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OifeMZJv2Wrarp3sVYt2qoqewd/NNyU4tqZR06yW+Ktnoan/XnebD0+8BkgN0AK4q0FtgFgaru8yJr0+OAcSCbAIqAlqWu3vBTHY8juC3OQcfusmI3CbZ4jpa9ZUdyF1T94LO2r5n6chGlIUic+MG53uEENHZCRd8+K8GyIOJJVrP4JgS0zoNtoNHxr7L+/czKgHRpya/+40pTRpx6Y4M+SIwb24AvP7Uvty09Yfk0529U8JjuCP257cZCPekYDAkeCRV1s6xcEBRsRl/pBYKZFvKt4y/2rwLCWDumrdg68B71yz/SWJGBon0eFfJsGnLDHYitJrs4w+otbVEfzeog== 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=AbpI+qaKR5rhVAxXuimNt0NGEg1+MxeOhCO0hO49VpY=; b=oQzG1ZDQF1/V0kF8LtLdft27cGBv+wxWbRT3yoIEgZh8S2akMPZX7yoxSqEa+tU2N0UuMt8sVjAhKJxf3s948VAgI97iapqYw+aw7uBf53CVeJDO/oul6L0qfX9o6LNvsyRlmZYumA3pe51nuhB0lFKxXhSDgmjiVKIN2bL9zzBaXYs/hOxnjukV/HNjAdkthsJ5ZocHzpnkV4mpeHnY0yjQ8ckU3p5H8TnCglPq60EmJJWZtaC96nwnDpODXMwSa0DyxtEqG+EkDnqCe0nRjPfqUiQjUT7LcYiu6SfcRMuWFaNs58BvUQJMJGCjvEh4uEFqO2z6uLJloJVRbfsolA== 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=AbpI+qaKR5rhVAxXuimNt0NGEg1+MxeOhCO0hO49VpY=; b=MmJLk2mWxBXaSp4yUb9NxlbHrKtymd9ITGnraQNq3p4VQYcX2yPnpBTg5FW3hHQg9u6mMBd0W/OhUOI4TgvkBLqZ75xLu/7Wo2a93IPNVg8l65ns/VC7gPzzklZUUCnwxBzkhBkojD3QRZsVPE7D7JBA8TdCJkRQo3HwOTaazEs= 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 PAXPR04MB9105.eurprd04.prod.outlook.com (2603:10a6:102:225::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Tue, 3 Jan 2023 07:16:30 +0000 Received: from AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::3a82:42b3:f1ed:5c3d]) by AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::3a82:42b3:f1ed:5c3d%7]) with mapi id 15.20.5944.019; Tue, 3 Jan 2023 07:16:29 +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, 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 3/3] media: mediatek: vcodec: adapt headers only flag for V4L2_MPEG_VIDEO_HEADER_MODE_SEPARATE Date: Tue, 3 Jan 2023 15:15:51 +0800 Message-Id: <20230103071551.17775-3-ming.qian@nxp.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230103071551.17775-1-ming.qian@nxp.com> References: <20230103071551.17775-1-ming.qian@nxp.com> X-ClientProxiedBy: SG2PR01CA0190.apcprd01.prod.exchangelabs.com (2603:1096:4:189::11) To AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB6341:EE_|PAXPR04MB9105:EE_ X-MS-Office365-Filtering-Correlation-Id: 4a9df800-3ce5-442f-7a3a-08daed5a6f40 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 11tCR0zJHbzd2vMhtLOrBh68vHBSQ+agHDMzp6hkOhfVLPDtZB+gWM3UG7fpid03KEIqt6Cy+YOIebxUCS1wrA0/q2/OB91bqTCICwbv9OFjLCcLZ1w0IeW9Sm7qLlEMexOhwCp34vE2ESKOjMCO4t8rE+KiMXlPtFscm/mAd2uMXThNHczKO7iM37CmunHkqX180yl4OMnyJy1erupM1s5LwdQ85CqiwewlRqZDzd/ftzLcr4fCadQi15u8z/4kMOOQCRO4agLMZQI1ayU3vxwt91HhVHEPt6gr68I0c7O+/IILa9+boF78w/CPXGxo7mBdoagdVTf1fQi5qEs+xK9V6pV8QHAED++m8SeRhGX6V+2qYSh7SHMFw1fd4wK1T7+BzHYez1FJGWSs1Q6gNAvUXEHfiOTaTeNz+F7isygvrrYULkjo0Awkc97Ktb5ULDAfGm61+2vbJkNHImJWXIJXQorTqR0mcPMnusf+W4PkeVuQdZOFSW069lUx9qNicewIZ6FY97+++3Ch/wnA6amEzlLBI479210nAsyY2S/WyTAruXdnJLqFuR1UVbUSIfo7oEQ/SEYXzWsBnHY8HjzdvofwYq1mLcLE2RksTOklUr0NyWSZoBXOt1NT0VgXpHCheUgtM7f3qV0OaTApXul/tIKnHAyf8IdxLFO1hTfgJt0pGMz1OpXkFxUfJ2U9blif+LYlxR/TwCiQ4Krv597mlOeEfj4oTIrByGK0iKc= 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:(13230022)(4636009)(366004)(346002)(39860400002)(376002)(136003)(396003)(451199015)(6666004)(6512007)(26005)(52116002)(186003)(1076003)(2616005)(6486002)(6506007)(478600001)(66946007)(8676002)(4326008)(66556008)(8936002)(41300700001)(66476007)(4744005)(7416002)(5660300002)(2906002)(44832011)(38100700002)(38350700002)(86362001)(316002)(36756003)(22166006);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: XuUhikoxNnEFUyZLezezmD8IpUw8WkTZy/pD0u1AcuYRYLvTEoNkDNMdllM4+z1NcuElp1SQ0mY6gPRxoGSx/JnvQ2XLXvObdvQgw2Xu6eRS3uhtdCWEx025bpN7nZ0KsQwBtQ9UwMT4Kjk+Ybx2YinZiEYb//TNkwmoCZWQBEhWpGOiicnehK6MgWpKCWMXbHU8xsjhEDRIYg73Qd9vpiK/lSR0HrJmx58O43wikRUeFV8mvnO0mmGwYAv1lHGi9d3cC5paYeakYiDEm6lupNZdSgfPxu873lfWhvmdQ1jgxYqY3zg6A+DCcRpLWiORa3BvskJNMpr8AzV6xvLCEUlIDOh59cSMlCDNgzjzNV/x5ORCwHv1CIw30xLuv6Bv2da4WwgxqzpFrKX1/jRcVjxSxRoJ4G8M9wTlAgINOmfDcYnaEvaVPmcixrKIYOKo7wAwThuIz3jrW0q/Ab7e7n1R9xd3C0ry6X0OWTFiFjq0pEAVA195vlX6DVqd5UyGTePWc3VmKLhjjygBkZ8VU2Y8g8RW3AkztLei+VOPQ6CoyEqL7SE4HNyGBo61D2qfCy3Q91VrrvDcKoQz/Jh/9qPwExr3tLLrCjg74FFDEl2Dsaq8rMICvdS7c0EipmRcIA1u3hMcoE1r3qn7cmv5hiVPKBc26O5X9b8hyiNpmKSn8lTxaz1J/kzbgqKdsN4QfxDPQE94nQJZHqZeRhKQxp96o79sD51sKTM4tS7/QIQoLt3zEgey3DVq2KmoXbFvNX/tkuT++blo07QCq/62/UEC6ZGG5J08+opYoKNj3wLzXsNxhaarQGFKr4n0C8QcTuhyGio/Bd9cR3HV7y5L5FyTgID/Azhd+t5im6f3eXcNwjd7+2ev0cJ1ioqK93UczQBtrWwpDxP6AkYoma7QB0ARhxAvhn3kXPbkabmIhQcfIVLfUHz0Hty8hxpVvqExHyM1kze74OTWE460jjpoUKCQ0NajDja8SqfpAVw72iSvVzeohYbIfNTQ/UPQ7DeoCXk4lIDmPZ5wQEtAbcArFU4pXPDcMvLUXZNa0BEnY62wr8d4wWQQgCBXrsHzPwW75J5w8niOdhsBHvMmkA8RrAFYAMutfkbrlOIbSQ5jnioaBobT6e6TmHz96YUq1VqZOwPSVUiN/Vzudch+xILXMxVA9klhNhvKWnKGJt+EFl+MeQgVJCoKMlZuIV0HgSBjESeiCDXvGaeyTBqKBFuR/1s3b7ATcCoz2ZabK9A2qjEsNVaaWLoIvKzjW6J4fW3W+IDf4a2mjjKzx7WYj+AYFg9fQBlqR5tEJ3Qrk/Vk0OBNUTW3TEYb4jG5nUfSfTzCHzxtukIS4xa/4u3IA/ZPnEQktOM/I0B60EAtbFIJ6j4VH5P8GS+zrfbyL503c6pglfahoM3t9tpYMzMgTCWUv/0zebkK5IGZbUfufJCC7WWpjWDOovZAMzugwFtQkCrwvK7BKKFWRU4cywKabJUOTXZt3ezonVLU2WzwrpQpC+ha00wIpUdLDrryHtXmS4pELihkulTqcdblOvk/5ye/lB95hHf4xNZcO81LL2KI+lTHfwYdWq4SqtEDt5vcaPG8 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4a9df800-3ce5-442f-7a3a-08daed5a6f40 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jan 2023 07:16:29.8963 (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: 0FyAdfU93kMWr4kfJwL8sjHO6yONPSsFo+aMkdL2HMkranUywpdz0j6azkxxdICIy+PJ8bsOgbReTgGipUHU8w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9105 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753985056180488528?= X-GMAIL-MSGID: =?utf-8?q?1753985056180488528?= when V4L2_MPEG_VIDEO_HEADER_MODE_SEPARATE is chosen, the first buffer only contains stream header, so apply the flag V4L2_BUF_FLAG_HEADERS_ONLY Signed-off-by: Ming Qian --- drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c index d65800a3b89d..0563abceb858 100644 --- a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c +++ b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c @@ -1090,6 +1090,7 @@ static int mtk_venc_encode_header(void *priv) ctx->state = MTK_STATE_HEADER; vb2_set_plane_payload(&dst_buf->vb2_buf, 0, enc_result.bs_size); + dst_buf->flags |= V4L2_BUF_FLAG_HEADERS_ONLY; v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_DONE); return 0;