aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2015-04-27 06:20:28 -0400
committerTakashi Iwai <tiwai@suse.de>2015-04-27 06:24:34 -0400
commitd16efa0626bfd11157d4a622a24aaae98435f26d (patch)
treec9ebc113930247353fa6a5352f4f5390d6553143 /include/sound
parenta0dca822e923e605dbdc2f6ed4fcd96b74df9258 (diff)
ALSA: Close holes in struct snd_pcm_hw_rule
On a 64-bit system there are two 32-bit holes due to the alignment of 64-bit fields. Reordering things slightly gets rid of those holes, reducing the size of the struct by 17% percent of its original size. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/pcm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sound/pcm.h b/include/sound/pcm.h
index 0cb7f3f5df7b..d632809d9425 100644
--- a/include/sound/pcm.h
+++ b/include/sound/pcm.h
@@ -224,9 +224,10 @@ typedef int (*snd_pcm_hw_rule_func_t)(struct snd_pcm_hw_params *params,
224 224
225struct snd_pcm_hw_rule { 225struct snd_pcm_hw_rule {
226 unsigned int cond; 226 unsigned int cond;
227 snd_pcm_hw_rule_func_t func;
228 int var; 227 int var;
229 int deps[4]; 228 int deps[4];
229
230 snd_pcm_hw_rule_func_t func;
230 void *private; 231 void *private;
231}; 232};
232 233