aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2016-10-23 20:44:10 -0400
committerMark Brown <broonie@kernel.org>2016-10-24 11:11:42 -0400
commit1236fa1e3c29922d201da0926aa8d62427f74814 (patch)
tree4b803e5a55f2e08bbec567783eb3848c5a7e5c28
parent1001354ca34179f3db924eb66672442a173147dc (diff)
ASoC: soc.h: use bit field for playback/capture_only
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>
-rw-r--r--include/sound/soc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 4f1c784e44f6..3d569307f1e2 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -1025,13 +1025,13 @@ struct snd_soc_dai_link {
1025 const struct snd_soc_ops *ops; 1025 const struct snd_soc_ops *ops;
1026 const struct snd_soc_compr_ops *compr_ops; 1026 const struct snd_soc_compr_ops *compr_ops;
1027 1027
1028 /* For unidirectional dai links */
1029 bool playback_only;
1030 bool capture_only;
1031
1032 /* Mark this pcm with non atomic ops */ 1028 /* Mark this pcm with non atomic ops */
1033 bool nonatomic; 1029 bool nonatomic;
1034 1030
1031 /* For unidirectional dai links */
1032 unsigned int playback_only:1;
1033 unsigned int capture_only:1;
1034
1035 /* Keep DAI active over suspend */ 1035 /* Keep DAI active over suspend */
1036 unsigned int ignore_suspend:1; 1036 unsigned int ignore_suspend:1;
1037 1037