Message ID | 20250117061938.3923516-3-ming.qian@oss.nxp.com (mailing list archive) |
---|---|
State | New |
Headers | show
Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2055.outbound.protection.outlook.com [40.107.21.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EBA331F7917; Fri, 17 Jan 2025 06:20:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.55 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737094836; cv=fail; b=CHs14SZOx/OGwJRyL6uZKiSe7QB6+a17Vd2Ot/QukGKJ1NOBmTKWH7AB278fywQiVvPCcQo9dtoU28SY0EkniaoumLpan+ijjmoKU03g0HWKrCvSxSWDGu8klr1OscjVoLdXapzn5n4t4e+RChxMSDXishT3jwfSGgfLyBGzlPE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737094836; c=relaxed/simple; bh=4nC5XC7apss+mVEZFrkc3s5062uZWZZUVeFUr9CVFyE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=o+ZEtOzVow/n7yti01WD8h77jPmowvvm+nPTVTDDgCnWRU/r1Zt0RpFc39PMaTI7UCAFloI9S62YgYIqfnW/kwLE39ABSBS0CGgKEXxNDiQkrJfD1GoFuVshL9nxzopssMnmKgFBoKa6Kbv4J3lDNcnfT2VeWl/MV8bmem8Y2rI= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=MNcbsd9T; arc=fail smtp.client-ip=40.107.21.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="MNcbsd9T" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=YJBcBiMIynikvVru+3xS33eSyuDPwlyK2A/iWAOeCs/hu2H31FvUCccHEnn7XlBQl+AlQlz2fJPUasSwdwgmRMeC4Rd0WGj6RgVvsr7Zi1JLCAHgFZCH524qu0Od4BJnmhfUkzL+Ihjv6QzGE/enRoR6oMarOAALdW9xIyspDerWHDEUme6zeY0Y4jcaS3BtzELxOS2ZCZRc/ZXFr0Rkf3X9r65V0KrvFSNB7lc5wOSsLpggeppmJPs6e/ev2TDVlnNPXI3vgpkiLrkvEELNhlDxNAH3BZa0FuuuMfHgOtXxAZCPtjdFLQIii1QA5g7aBtN2UYJ4hsA63Kuac5yWFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=pqT49cWEOwL37ri1ItN64lrYXwMnh/FwPmQ5/BC2/GY=; b=Qh/Zzd29aJGsbfiqcS/2A5tCyiqwJPR9CXyv5ZOLkyqnRyAa83p1/+brfPw7mBSZ8qFavK8wRGnvGvcQaDIIevddVjNcVDwSB4H0twit1KH0YKQB9RL+mIQFHsEfAH6ZGH2w1MC9Vkc+dDHjk4cOgxcSWCrCNOIqdCbr8SGHeNoUO3vovq3OTEn5jiPfamhuJ1w5Mi8kNS7wd6pAWXWptspnyUIhTFStPS8UndjF5Y45Lh6+lEK+Yc20t/ANkjZx8na+R12qMvlTV4ivOPabLbmENhiMMdBQt8by0NKwrUrHr5zvBAmPkgjmf5umY4J2IHdbgnJ5gwr8vS6OvjHzSg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pqT49cWEOwL37ri1ItN64lrYXwMnh/FwPmQ5/BC2/GY=; b=MNcbsd9TAAzOLzVOY5MADFeohW6+7IkYO3SrqOQxSeRjPn9JoyZy3fJM05O2qP+86EcIQ7JlaV3Io8ERdhJkMmPP500jdZND8mkj9ug3w+i0fF97lkhBv55SCbM9Xp8S6AxEaMaL5UkEQu60F4Gz1JY42KF+QuyWkM1dUohTC1/1LMzAPsMPLZ7JHpFc+2RMiUhW/rNlOIakiXTN/vZ8yJGr2KoTpGnQKe/wBVVezQcjKFya0XdHbSAcH9kWV4vXheQ+k7HaWGovnftOFeBbMc9oYN175evJNKC4b5csBCRz1expZHghnSQdccMvpkuB3oJT0yCElFYdWH+OW0ndFQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB8254.eurprd04.prod.outlook.com (2603:10a6:102:1cd::24) by AS8PR04MB8053.eurprd04.prod.outlook.com (2603:10a6:20b:2ad::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.16; Fri, 17 Jan 2025 06:20:32 +0000 Received: from PAXPR04MB8254.eurprd04.prod.outlook.com ([fe80::2755:55ac:5d6f:4f87]) by PAXPR04MB8254.eurprd04.prod.outlook.com ([fe80::2755:55ac:5d6f:4f87%6]) with mapi id 15.20.8356.014; Fri, 17 Jan 2025 06:20:32 +0000 From: Ming Qian <ming.qian@oss.nxp.com> To: mchehab@kernel.org, hverkuil-cisco@xs4all.nl Cc: nicolas@ndufresne.ca, 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, ming.qian@oss.nxp.com, imx@lists.linux.dev, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 3/4] media: amphion: Clear last_buffer_dequeued flag for DEC_CMD_START Date: Fri, 17 Jan 2025 15:19:37 +0900 Message-ID: <20250117061938.3923516-3-ming.qian@oss.nxp.com> X-Mailer: git-send-email 2.43.0-rc1 In-Reply-To: <20250117061938.3923516-1-ming.qian@oss.nxp.com> References: <20250117061938.3923516-1-ming.qian@oss.nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR01CA0034.apcprd01.prod.exchangelabs.com (2603:1096:4:192::9) To PAXPR04MB8254.eurprd04.prod.outlook.com (2603:10a6:102:1cd::24) Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: <linux-media.vger.kernel.org> List-Subscribe: <mailto:linux-media+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-media+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8254:EE_|AS8PR04MB8053:EE_ X-MS-Office365-Filtering-Correlation-Id: 3a9a196f-1d33-4b7a-8a47-08dd36bf0bb2 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|52116014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: yOhTqmcsVQPoRrObXCLgn7PH/HyceGZJS73cRoGBSOSo7NvHA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kRgFIvCBVavkxA1xHWxyegUtKR/8Te/o0/xxWmTyI5dwgWkEeprLlp2b97VV2tPqEynoAnMtm8HwJS/SpQICVZU3QLpXkenF3O6qKfX0HczMn5vwMGY3+JdrwAAh3hlupn3o5cWbwcUuFcq2RdzD+VQtOUDCmhng+C0PF5PT+BosoSG8Y7+BPpEJriV6htrHROKObUUVQQHPq1EODLlkK4UurbiRZEyRAE1CFHd9Wa7kUJO6DqOIOCE2MExp2ocdeNJzupPZeoAM6JMYmtLwavPfXDyL+CQcxu7CKELqApTUGNZO0MjukHjAAeXSkN7RmPUbOJa01Q1rTRyN4PPLRdOe X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8254.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(7416014)(52116014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: BNBTg7yf9Zo3pAX4xWTxqf7E1usftj9Yn+/ots0elOTXooxaphrXobjhBXmQ9iBSw5ZGabe2jUwOWst+ehASbl4iIZo8Ijf7p2sENDM3yngQmUi0b/A7/WuHnwk5jqwcIFIM9WPy7hnUMw4S5bLxFs1SDAnHhsovnhOMHQ1jiDv2lbGhj014/yLqCyEM3BiW9kcHeAXQNz2DLX7Hz2YnTbhcpdMKDBguNl0IIk934i6ahmZNnTMTK8RNcWsXqeox6VIy/BNSqvKhJBSLUsdfYt8Sqa+npDYNLNVf3MDZyZ59SdNkIbToYv341koR0TSORyFnQNjhEY8wGGPBaBrMscLbF5jaRJsCMaC/VCFHSBBRLd5poWl9dO5o6ma4PqFksZV5e7K+yKSkTVad1VKbGTyQNwoHQwy5SOM2AAbwEakhIAi95tQfpQZcLkqTdvGImQnsXqebP4jw+QPcJsEsOjysKwMflAjR7zdPuLqAMo/5y6vKm7hz90SSWiDS+s9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GxG40RxFrWuG X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3a9a196f-1d33-4b7a-8a47-08dd36bf0bb2 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8254.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jan 2025 06:20:32.2315 (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: 2E+HVraMRQuycwGOP2cGs0zDJsnilgBoYeKm45YOYOp4bXM9a6V9P7/f42Xk0SSkEiTjhAhge3N8QkBWVU4ITA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8053 |
Series |
[v2,1/4] media: v4l: dev-decoder: Add source change V4L2_EVENT_SRC_CH_COLORSPACE
|
expand
|
diff --git a/drivers/media/platform/amphion/vdec.c b/drivers/media/platform/amphion/vdec.c index b752afc6276f..3b848ac2cd0c 100644 --- a/drivers/media/platform/amphion/vdec.c +++ b/drivers/media/platform/amphion/vdec.c @@ -728,6 +728,7 @@ static int vdec_decoder_cmd(struct file *file, void *fh, struct v4l2_decoder_cmd switch (cmd->cmd) { case V4L2_DEC_CMD_START: vdec_cmd_start(inst); + vb2_clear_last_buffer_dequeued(v4l2_m2m_get_dst_vq(inst->fh.m2m_ctx)); break; case V4L2_DEC_CMD_STOP: vdec_cmd_stop(inst);