History

ALSA: compress: Cancel the optimization of compiler and fix the size of struct for all platform.

Cancel the optimization of compiler for struct snd_compr_avail which size will be 0x1c in 32bit kernel while 0x20 in 64bit kernel under the optimizer. That will make compaction between 32bit and 64bit. So add packed to fix the size of struct snd_compr_avail to 0x1c for all platform.

Wang, Xiaoming committed 12 years ago

Commit 2bd0ae41 parent 6538de01 file · +1 −1Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/sound/compress_offload.h+1−1
@@ -80,7 +80,7 @@ struct snd_compr_tstamp { · 79 unmodified lines
80struct snd_compr_avail {80struct snd_compr_avail {
81 __u64 avail;81 __u64 avail;
82 struct snd_compr_tstamp tstamp;82 struct snd_compr_tstamp tstamp;
83};83} __attribute__((packed));
84 84
85enum snd_compr_direction {85enum snd_compr_direction {
86 SND_COMPRESS_PLAYBACK = 0,86 SND_COMPRESS_PLAYBACK = 0,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t