提交 1236fa1e 编写于 作者: K Kuninori Morimoto 提交者: Mark Brown

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: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 1001354c
...@@ -1025,13 +1025,13 @@ struct snd_soc_dai_link { ...@@ -1025,13 +1025,13 @@ struct snd_soc_dai_link {
const struct snd_soc_ops *ops; const struct snd_soc_ops *ops;
const struct snd_soc_compr_ops *compr_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 */ /* Mark this pcm with non atomic ops */
bool nonatomic; bool nonatomic;
/* For unidirectional dai links */
unsigned int playback_only:1;
unsigned int capture_only:1;
/* Keep DAI active over suspend */ /* Keep DAI active over suspend */
unsigned int ignore_suspend:1; unsigned int ignore_suspend:1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册