From patchwork Thu Sep 5 05:14:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13791747 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 4DAE5CD4F20 for ; Thu, 5 Sep 2024 05:15:20 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 91ADCB71; Thu, 5 Sep 2024 07:15:07 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 91ADCB71 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1725513317; bh=uZA0ftQRMJdJ6WvIhkMzbtP/STTMDzLPtHjivliHdJI=; h=From:Subject:To:Cc:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=kcXDm6NYEP64s0zt8WWOtU5ULPcV9q8D28qPZ/nxKzpCgsFbnHOBhMhiWh35LhxPH 1qwJLFE3cEbuCuEAkWbIBwnIKmK5iL8FYZIezC6poohxpdiwAHh1K9ZiHEsRU1Isu/ XRS1wqriceaTBUIIAXq5SvPjC65jRjYoD2jKRprY= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 0A665F805AD; Thu, 5 Sep 2024 07:14:47 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 44EF4F805AE; Thu, 5 Sep 2024 07:14:47 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3BE4BF8016C; Thu, 5 Sep 2024 07:14:41 +0200 (CEST) Received: from TY3P286CU002.outbound.protection.outlook.com (mail-japaneastazlp170100001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c405::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 83F34F80116 for ; Thu, 5 Sep 2024 07:14:36 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 83F34F80116 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=Qpo2WOZ4 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=XA6fg+jkyG2lk4SImruzXSTtgzOu5tv6WRP7BnyTG4l28ctoJIwsHMyn89AzSu5K83Sl9SsJA1SubCSb2iSveFcmc78EBD99LWZ5hK+E9I9NNE7k0cXTwi8i+gMtwsXCEyuS5TUHCsn4C1BP16lFTjLaZ4TPc+dkAhARh0cJUrr5f2+HD+1fiOX/PE2zljQX4KlpcoCMj76Vxo2Wu/iqWGUGWe9gIhqSXQJg0xhGPQXIUwqaul49MC9z2zM2DI2srf9zu9RxmLNuAMmiJvicOHVXF5xXedQuimtB3YKtaEYhTWwJIegVNJ2XLh0zJkzVQvcLHCrEi+SWLDy+zyeQ8Q== 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=tl5cz9/6UBIBlw2/mxcNPlOtI/yikIFTW1Uuz2Ki3g4=; b=hKGlS8iWbYKX95M3xKUfWo8EejNfBS+2th3eQrx6Y9RGsCsyb9C63VgUv8we8hL2A02tT4sAqbuDdqX8ucMc3DKXi8zlqNinScgotc/8WWAQqTvtn70+bG7URk20hEZySytKdpfHbFh1a2h7qVOlWzyTAwlUKQ5bXELUHTC0pw4QG/u+6ndNp4U0pWCVR+v2Sr71cZpBTpOW8SRMARZh7K1ObpyofpNy7Ru8HHYBNVPxnXf3wa+1AOYbJeIc9NKk5WKvtWN1zLlxq+EydX+/fhY+WHQcgOdAbK5K+gm/NzcqTTASEuMxGZDFqPwWuA8DKGgw19gZ4ob3IbVQ+2mU+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tl5cz9/6UBIBlw2/mxcNPlOtI/yikIFTW1Uuz2Ki3g4=; b=Qpo2WOZ4+LOFLpBaS09E9JG7LUwwEvm7sMwiD8P4DkCdIdmCXbXgQ9jmg7r7Mmu4EGson7HPzGCpy1SCpBledUHhBIFHXszzIHNZkXfLHehhFbkwQoILeMNEYiy9CCiwZ7D3msozbZLYU2ErLUsw++YtNCO2LYSosDR98i1yJDA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by TYRPR01MB13391.jpnprd01.prod.outlook.com (2603:1096:405:1cb::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.25; Thu, 5 Sep 2024 05:14:30 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%5]) with mapi id 15.20.7918.024; Thu, 5 Sep 2024 05:14:29 +0000 Message-ID: <87o752k7gq.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH] ASoC: makes rtd->initialized bit field User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Mark Brown Cc: Linux-ALSA , Amadeusz =?iso-8859-2?q?S=B3aw?= =?iso-8859-2?q?i=F1ski?= , Cezary Rojewski Date: Thu, 5 Sep 2024 05:14:29 +0000 X-ClientProxiedBy: TYCP286CA0029.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:263::19) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYRPR01MB13391:EE_ X-MS-Office365-Filtering-Correlation-Id: f12bf14c-db82-4b5b-5d14-08dccd699ec2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|1800799024|376014|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?iso-8859-2?q?7CADR8hMFZXVwNgi+yHxvgS/+2?= =?iso-8859-2?q?qwvlHFC5fhG1T/j8effxvCMVZs4gvBwHRUdThx9CpDgsvNULzJ7u1ajIfaCC?= =?iso-8859-2?q?yf3D/Be6jedRe6hLKE+adNQp+rUPdnh5FyJGzCPGqzvtnr1y/02yskYg8k+w?= =?iso-8859-2?q?CW0mCRyRKmNACaaKI1ZdwbZaNbACncaSZgH9DH57TIXI1nT2xGDLqRcv4oGK?= =?iso-8859-2?q?FX41jy6mRWOXQAcYlhQ1cBB9Z0Z5/5jjDW9yz7TL44mCeUTcQeyQwh8mVJx6?= =?iso-8859-2?q?nj45dQwQUSWlEnGZdaz7rf3pSKB16GEwIt1yGh4s0Sd9fzfePXzuIjnUYilN?= =?iso-8859-2?q?iOInhidQJAMt7dw45ymWkqV6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rH1dhS7/OdzLDaLZ6i+BT?= =?iso-8859-2?q?fFQgpe6OGWLGExMc+cs7QvxxF9UwNij42yOUAjiuJgA8GLranl/8ICAJhxxN?= =?iso-8859-2?q?x/q8n17k9nHFdJnyEaNDMdkvh2r2q7oFNwwUuNtteXMp7ISJ6a6xtS/uRE5R?= =?iso-8859-2?q?VnBsAUxS6dKDojUFFNrxfzPLZW52nAvDWtS4Y7KJaxxinLQJoBiTd6IHoaHi?= =?iso-8859-2?q?cjBv/3lfHrKgTcs4GiUEIFSQ=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYCPR01MB10914.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(1800799024)(376014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?iso-8859-2?q?oAtiaUHndZuMzNvul4mHaGs?= =?iso-8859-2?q?hq9oxpkzlJ+x6JRKPcSitc+M30QvZu49/RPYRP7DuhC6XZLTLVNEpx7ZDlWW?= =?iso-8859-2?q?upGyxG/YfW2txfE/KmKW1cc5iTc+fnUhusuG1zctiiXRprS719t5UlAYP5NX?= =?iso-8859-2?q?qbIyihxmLEVicAZZpJico0172434M6SYlLY8W8Fv0eMVWiB5WB8T50S8Nkes?= =?iso-8859-2?q?v0i+DYRjfibaCSrI+ULP5V2ydZoRcTbuQQIFpeNOHD8bv1rlUdy4Uh4RIgcx?= =?iso-8859-2?q?dZHQUU3uwLbMxgGtimDFdbM2l0gtVOXQm4bUnyNtIS9jMLFzgS9fGIASUhvo?= =?iso-8859-2?q?SiXZDpgvkE8Xu+EWrvTumBEJr26Qs1LbGYMiqgTHDDQzailEMVd0YTq9NB0l?= =?iso-8859-2?q?Kvc7zLYy5EqfKDc126v1bNzfrgJ+0OBVLysWQmAydPlsWfmNQpI5939+opoN?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vUhvb5c+Fe+3BPZRlWzqFBy4/63kPYtzJDkkV8NDCbDPOS?= =?iso-8859-2?q?GVnYggTY35bCeFhN2JnY7ONHKRID8hYcqCq3gywGTMktZsDONvUdK/m+yEGB?= =?iso-8859-2?q?EhBNulA+i/kxX5hFsxLBuFpmhgB/0yCST+8bIBGmy6LnTFQTDfoXrGrSMUcY?= =?iso-8859-2?q?8zVxUJfDBQc7ogAIIGS6oIvhO3g6L/cjxejRG/g4X8bilnKnEWlYG7BfADBS?= =?iso-8859-2?q?xPHPGe/7OdHcXwyL47jYBicgD3/2N6hRYk2gMLI/JAD8UPW7oQhwbr5LJWR+?= =?iso-8859-2?q?dWbsSkz+xee4jherMGUd5825i7nba7NdyhLharJgOxtGCuRPABleLlFM/9w4?= =?iso-8859-2?q?=3D?= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: f12bf14c-db82-4b5b-5d14-08dccd699ec2 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Sep 2024 05:14:29.9718 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ktZbjxLw69X+cEVmQ3v3CRw7SwfCK1Tr9FHx0gDD6jJwsIaBpY/p5e3Nw5NXbFkfN+GhgqQAS544eXPH/KZUGNncyymkkzhn3g5m/VL++W4MydYWjxBXlei+iqC81ADN X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYRPR01MB13391 Message-ID-Hash: CQATD5DN3XVZFY7N5H36GK3WK6FMCPMK X-Message-ID-Hash: CQATD5DN3XVZFY7N5H36GK3WK6FMCPMK X-MailFrom: kuninori.morimoto.gx@renesas.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: rtd->initialized is used to know whether soc_init_pcm_runtime() was correctly fined, and used to call snd_soc_link_exit(). We don't need to have it as bool, let's make it bit-field same as other flags. Signed-off-by: Kuninori Morimoto Cc: Amadeusz Sławiński Cc: Cezary Rojewski --- include/sound/soc.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/sound/soc.h b/include/sound/soc.h index 81ef380b2e06..e6e359c1a2ac 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -1207,8 +1207,7 @@ struct snd_soc_pcm_runtime { /* bit field */ unsigned int pop_wait:1; unsigned int fe_compr:1; /* for Dynamic PCM */ - - bool initialized; + unsigned int initialized:1; /* CPU/Codec/Platform */ int num_components;