summaryrefslogtreecommitdiff
path: root/apps/playback.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/playback.c')
-rw-r--r--apps/playback.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 4a28a9d008..e8a6efc109 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -1850,13 +1850,13 @@ static void audio_reset_buffer(void)
1850 1850
1851 /* Initially set up file buffer as all space available */ 1851 /* Initially set up file buffer as all space available */
1852 malloc_buf = audiobuf + talk_get_bufsize(); 1852 malloc_buf = audiobuf + talk_get_bufsize();
1853 /* Align the malloc buf to line size. Especially important to cf
1854 targets that do line reads/writes. */
1855 malloc_buf = (unsigned char *)(((uintptr_t)malloc_buf + 15) & ~15);
1856 filebuf = malloc_buf; /* filebuf line align implied */
1857 filebuflen = audiobufend - filebuf;
1858 1853
1859 filebuflen &= ~15; 1854 /* Align the malloc buf to line size.
1855 * Especially important to cf targets that do line reads/writes.
1856 * Also for targets which need aligned DMA storage buffers */
1857 malloc_buf = (unsigned char *)(((uintptr_t)malloc_buf + (CACHEALIGN_SIZE - 1)) & ~(CACHEALIGN_SIZE - 1));
1858 filebuf = malloc_buf; /* filebuf line align implied */
1859 filebuflen = (audiobufend - filebuf) & ~(CACHEALIGN_SIZE - 1);
1860 1860
1861 /* Subtract whatever the pcm buffer says it used plus the guard buffer */ 1861 /* Subtract whatever the pcm buffer says it used plus the guard buffer */
1862 const size_t pcmbuf_size = pcmbuf_init(filebuf + filebuflen) +GUARD_BUFSIZE; 1862 const size_t pcmbuf_size = pcmbuf_init(filebuf + filebuflen) +GUARD_BUFSIZE;