[alsa-devel] [PATCH] ASoC: bunch up bit field for snd_soc_dai

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Mon Oct 24 07:25:19 CEST 2016


From: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>

We can reduce struct size in certain environment.

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

diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h
index 964b7de..d0ae96b 100644
--- a/include/sound/soc-dai.h
+++ b/include/sound/soc-dai.h
@@ -268,8 +268,9 @@ struct snd_soc_dai {
 	unsigned int symmetric_rates:1;
 	unsigned int symmetric_channels:1;
 	unsigned int symmetric_samplebits:1;
+	unsigned int probed:1;
+
 	unsigned int active;
-	unsigned char probed:1;
 
 	struct snd_soc_dapm_widget *playback_widget;
 	struct snd_soc_dapm_widget *capture_widget;
-- 
1.9.1



More information about the Alsa-devel mailing list