ASoC: soc.h: use bit field for playback/capture_only
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 24 Oct 2016 00:44:10 +0000 (00:44 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 24 Oct 2016 15:11:42 +0000 (16:11 +0100)
Current snd_soc_dai_link is already using many bit fields.
Let's use it for playback_only/capture_only too.
We can reduce struct size in certain environment.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h

index 4f1c784e44f634016153b3ff4f0a1b7d3b652b95..3d569307f1e28b576a9a33be5a25a6070a26bce1 100644 (file)
@@ -1025,13 +1025,13 @@ struct snd_soc_dai_link {
        const struct snd_soc_ops *ops;
        const struct snd_soc_compr_ops *compr_ops;
 
-       /* For unidirectional dai links */
-       bool playback_only;
-       bool capture_only;
-
        /* Mark this pcm with non atomic ops */
        bool nonatomic;
 
+       /* For unidirectional dai links */
+       unsigned int playback_only:1;
+       unsigned int capture_only:1;
+
        /* Keep DAI active over suspend */
        unsigned int ignore_suspend:1;