summaryrefslogtreecommitdiffstats
path: root/include/sound/soc.h
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2016-10-24 07:24:36 +0200
committerMark Brown <broonie@kernel.org>2016-10-24 17:11:42 +0200
commita7df0d3b455cb235926f53e02895d94fccba1e14 (patch)
treee57040681ded81b8029626269d910bc6fd8974e7 /include/sound/soc.h
parentASoC: soc.h: use bit field for playback/capture_only (diff)
downloadlinux-a7df0d3b455cb235926f53e02895d94fccba1e14.tar.xz
linux-a7df0d3b455cb235926f53e02895d94fccba1e14.zip
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>
Diffstat (limited to 'include/sound/soc.h')
-rw-r--r--include/sound/soc.h7
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 {
enum snd_soc_pcm_subclass pcm_subclass;
struct snd_pcm_ops ops;
- unsigned int dev_registered:1;
-
/* Dynamic PCM BE runtime data */
struct snd_soc_dpcm_runtime dpcm[2];
int fe_compr;
long pmdown_time;
- unsigned char pop_wait:1;
/* runtime devices */
struct snd_pcm *pcm;
@@ -1232,6 +1229,10 @@ struct snd_soc_pcm_runtime {
unsigned int num; /* 0-based and monotonic increasing */
struct list_head list; /* rtd list of the soc card */
+
+ /* bit field */
+ unsigned int dev_registered:1;
+ unsigned int pop_wait:1;
};
/* mixer control */