Commit e33d0e3a authored by Jaroslav Kysela's avatar Jaroslav Kysela

[ALSA] Fix struct alignment on PPC64

IOCTL32 emulation
Fixed the struct size mismatch (due to alignment) of
snd_ctl_elem_value_t for PPC64.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 1a56610d
......@@ -220,6 +220,9 @@ struct sndrv_ctl_elem_value32 {
unsigned int indirect; /* bit-field causes misalignment */
union {
s32 integer[128]; /* integer and boolean need conversion */
#ifdef CONFIG_PPC64
s64 integer64[64]; /* for alignment */
#endif
unsigned char data[512]; /* others should be compatible */
} value;
unsigned char reserved[128]; /* not used */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment