aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOswald Buddenhagen <[email protected]>2023-04-06 15:25:21 +0200
committerTakashi Iwai <[email protected]>2023-04-06 16:41:52 +0200
commit102882b5c62f6bfe403178bb36adef3ba542d148 (patch)
tree4c21433cb85e95318833a63de48e3606cebb3fce
parentd3330cb8e36a50184a1a7d36019937c1f62f2a04 (diff)
ALSA: document that struct __snd_pcm_mmap_control64 is messed up
I'm not the first one to run into this, see e.g. https://lore.kernel.org/all/[email protected]/ Signed-off-by: Oswald Buddenhagen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
-rw-r--r--include/uapi/sound/asound.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/uapi/sound/asound.h b/include/uapi/sound/asound.h
index de6810e94abe..7eecc99ddef7 100644
--- a/include/uapi/sound/asound.h
+++ b/include/uapi/sound/asound.h
@@ -570,7 +570,8 @@ struct __snd_pcm_mmap_status64 {
struct __snd_pcm_mmap_control64 {
__pad_before_uframe __pad1;
snd_pcm_uframes_t appl_ptr; /* RW: appl ptr (0...boundary-1) */
- __pad_before_uframe __pad2;
+ __pad_before_uframe __pad2; // This should be __pad_after_uframe, but binary
+ // backwards compatibility constraints prevent a fix.
__pad_before_uframe __pad3;
snd_pcm_uframes_t avail_min; /* RW: min available frames for wakeup */