Linux Sound subsystem development
 help / color / mirror / Atom feed
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
To: Mark Brown <broonie@kernel.org>
Cc: linux-sound@vger.kernel.org
Subject: [PATCH 02/14] ASoC: soc-component: replace bool member to bit field
Date: Tue, 29 Sep 2026 05:29:44 +0000	[thread overview]
Message-ID: <87mrt0eibc.wl-kuninori.morimoto.gx@renesas.com> (raw)
In-Reply-To: <87pkxweibu.wl-kuninori.morimoto.gx@renesas.com>

soc-component has meny bit fields (A), no need to have bool member (B).
Let's makes it as bit field, too

	struct snd_soc_component_driver {
		...
 ^	        unsigned int module_get_upon_open:1;
(A)	        unsigned int idle_bias_on:1;
 |	        unsigned int suspend_bias_off:1;
 |		...
 v		unsigned int legacy_dai_naming:1;
		...
(B)		bool use_dai_pcm_id;
		...
	}

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 include/sound/soc-component.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/sound/soc-component.h b/include/sound/soc-component.h
index 2da196de6b89c..734dc44773e96 100644
--- a/include/sound/soc-component.h
+++ b/include/sound/soc-component.h
@@ -196,11 +196,13 @@ struct snd_soc_component_driver {
 	unsigned int endianness:1;
 	unsigned int legacy_dai_naming:1;
 
+	/* use DAI link PCM ID as PCM device number */
+	unsigned int use_dai_pcm_id:1;
+
 	/* this component uses topology and ignore machine driver FEs */
 	const char *ignore_machine;
 	const char *topology_name_prefix;
 
-	bool use_dai_pcm_id;	/* use DAI link PCM ID as PCM device number */
 	int be_pcm_base;	/* base device ID for all BE PCMs */
 
 	const char *debugfs_prefix;
-- 
2.53.0


  parent reply	other threads:[~2026-09-29  5:29 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-29  5:29 [PATCH 00/14] ASoC: soc-component: move snd_soc_component_xxx() to soc-component.c Kuninori Morimoto
2026-09-29  5:29 ` [PATCH 01/14] ASoC: soc-component: tidyup be_hw_params_fixup() define position Kuninori Morimoto
2026-09-29  5:29 ` Kuninori Morimoto [this message]
2026-09-29  5:29 ` [PATCH 03/14] ASoC: soc-component: move snd_soc_add_component_controls() Kuninori Morimoto
2026-09-29  5:29 ` [PATCH 04/14] ASoC: soc-component: move snd_soc_component_fixup_controls() Kuninori Morimoto
2026-09-29  5:29 ` [PATCH 05/14] ASoC: soc-component: move soc_component_to_node() to soc-component.c Kuninori Morimoto
2026-09-29  5:29 ` [PATCH 06/14] ASoC: soc-component: move snd_soc_is_matching_component() " Kuninori Morimoto
2026-09-29  5:30 ` [PATCH 07/14] ASoC: soc-component: move soc_{probe/remove}_component() " Kuninori Morimoto
2026-09-29  8:24   ` Alvin Šipraga
2026-09-29 23:36     ` Kuninori Morimoto
2026-09-29  5:30 ` [PATCH 08/14] ASoC: soc-component: move snd_soc_component_to_dapm() " Kuninori Morimoto
2026-09-29  5:30 ` [PATCH 09/14] ASoC: soc-component: move snd_soc_component_cache_sync() " Kuninori Morimoto
2026-09-29  5:30 ` [PATCH 10/14] ASoC: soc-component: move snd_soc_component_active() " Kuninori Morimoto
2026-09-29  5:30 ` [PATCH 11/14] ASoC: soc-component: move component_list " Kuninori Morimoto
2026-09-29  5:30 ` [PATCH 12/14] ASoC: soc-component: move snd_soc_lookup_component() " Kuninori Morimoto
2026-09-29  5:30 ` [PATCH 13/14] ASoC: soc-component: move __snd_soc_of_put_component() " Kuninori Morimoto
2026-09-29  5:30 ` [PATCH 14/14] ASoC: soc-component: rename snd_soc_component_async_complete() Kuninori Morimoto
2026-09-29  8:25 ` [PATCH 00/14] ASoC: soc-component: move snd_soc_component_xxx() to soc-component.c Alvin Šipraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mrt0eibc.wl-kuninori.morimoto.gx@renesas.com \
    --to=kuninori.morimoto.gx@renesas.com \
    --cc=broonie@kernel.org \
    --cc=linux-sound@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox