aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordvdli <dvdli@google.com>2020-10-28 22:18:40 +0800
committerdvdli <dvdli@google.com>2020-10-28 22:18:40 +0800
commitfaaa6972a2846b43366887bc0779c6c1be20a16f (patch)
treeffe241ae297b066a73747b22fa5373a80d2f0007 /src
parent07c8dc2123270f88622ec2d543b844367d500362 (diff)
AOSP CL "Export pcm_mmap_avail"
https://android.googlesource.com/platform/external/tinyalsa/+/9074cfc4127cb841f0633b35895141f90da3f0d6 commit 9074cfc4127cb841f0633b35895141f90da3f0d6 author Dylan Reid <dgreid@chromium.org> Export pcm_mmap_avail This is useful for timer based wakeups and for checking how much data has been captured by a hotwording device. Change-Id: I409201a5c9ce73abc807a9dd767beb3a32810f06 Signed-off-by: Dylan Reid <dgreid@chromium.org>
Diffstat (limited to 'src')
-rw-r--r--src/pcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcm.c b/src/pcm.c
index 8da3241..e88c18c 100644
--- a/src/pcm.c
+++ b/src/pcm.c
@@ -1236,7 +1236,7 @@ static inline int pcm_mmap_capture_avail(struct pcm *pcm)
return avail;
}
-static inline int pcm_mmap_avail(struct pcm *pcm)
+int pcm_mmap_avail(struct pcm *pcm)
{
if (pcm->flags & PCM_IN)
return pcm_mmap_capture_avail(pcm);