diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2016-10-24 01:24:36 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-10-24 11:11:42 -0400 |
commit | a7df0d3b455cb235926f53e02895d94fccba1e14 (patch) | |
tree | e57040681ded81b8029626269d910bc6fd8974e7 | |
parent | 1236fa1e3c29922d201da0926aa8d62427f74814 (diff) |
ASoC: bunch up bit field for snd_soc_pcm_runtime
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.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index 3d569307f1e2..d11f1a801ce7 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
@@ -1203,14 +1203,11 @@ struct snd_soc_pcm_runtime { | |||
1203 | enum snd_soc_pcm_subclass pcm_subclass; | 1203 | enum snd_soc_pcm_subclass pcm_subclass; |
1204 | struct snd_pcm_ops ops; | 1204 | struct snd_pcm_ops ops; |
1205 | 1205 | ||
1206 | unsigned int dev_registered:1; | ||
1207 | |||
1208 | /* Dynamic PCM BE runtime data */ | 1206 | /* Dynamic PCM BE runtime data */ |
1209 | struct snd_soc_dpcm_runtime dpcm[2]; | 1207 | struct snd_soc_dpcm_runtime dpcm[2]; |
1210 | int fe_compr; | 1208 | int fe_compr; |
1211 | 1209 | ||
1212 | long pmdown_time; | 1210 | long pmdown_time; |
1213 | unsigned char pop_wait:1; | ||
1214 | 1211 | ||
1215 | /* runtime devices */ | 1212 | /* runtime devices */ |
1216 | struct snd_pcm *pcm; | 1213 | struct snd_pcm *pcm; |
@@ -1232,6 +1229,10 @@ struct snd_soc_pcm_runtime { | |||
1232 | 1229 | ||
1233 | unsigned int num; /* 0-based and monotonic increasing */ | 1230 | unsigned int num; /* 0-based and monotonic increasing */ |
1234 | struct list_head list; /* rtd list of the soc card */ | 1231 | struct list_head list; /* rtd list of the soc card */ |
1232 | |||
1233 | /* bit field */ | ||
1234 | unsigned int dev_registered:1; | ||
1235 | unsigned int pop_wait:1; | ||
1235 | }; | 1236 | }; |
1236 | 1237 | ||
1237 | /* mixer control */ | 1238 | /* mixer control */ |