projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0dca82
)
ALSA: Close holes in struct snd_pcm_hw_rule
author
Lars-Peter Clausen
<lars@metafoo.de>
Mon, 27 Apr 2015 10:20:28 +0000
(12:20 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Mon, 27 Apr 2015 10:24:34 +0000
(12:24 +0200)
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>
include/sound/pcm.h
patch
|
blob
|
blame
|
history
diff --git
a/include/sound/pcm.h
b/include/sound/pcm.h
index 0cb7f3f5df7b9fca12f7233503f55f6b181470a7..d632809d9425d281743bee2029925c8ce5b43b0f 100644
(file)
--- 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,
struct snd_pcm_hw_rule {
unsigned int cond;
- snd_pcm_hw_rule_func_t func;
int var;
int deps[4];
+
+ snd_pcm_hw_rule_func_t func;
void *private;
};