summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/pcm-internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/export/pcm-internal.h b/firmware/export/pcm-internal.h
index 16e2aeae4d..d881963ebd 100644
--- a/firmware/export/pcm-internal.h
+++ b/firmware/export/pcm-internal.h
@@ -22,6 +22,11 @@
22#ifndef PCM_INTERNAL_H 22#ifndef PCM_INTERNAL_H
23#define PCM_INTERNAL_H 23#define PCM_INTERNAL_H
24 24
25/* Cheapo buffer align macro to align to the 16-16 PCM size */
26#define ALIGN_AUDIOBUF(start, size) \
27 ({ (start) = (void *)(((uintptr_t)(start) + 3) & ~3); \
28 (size) &= ~3; })
29
25struct pcm_peaks 30struct pcm_peaks
26{ 31{
27 long period; 32 long period;