summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/pcm_record.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/pcm_record.c b/firmware/pcm_record.c
index 8805e73157..8d34b345c8 100644
--- a/firmware/pcm_record.c
+++ b/firmware/pcm_record.c
@@ -820,8 +820,8 @@ static void pcmrec_init(void)
is_paused = false;
is_error = false;
- rec_buffer = (unsigned char*)(((unsigned long)audiobuf) & ~3);
- buffer_size = (long)audiobufend - (long)audiobuf - 16;
+ rec_buffer = (unsigned char*)(((unsigned long)audiobuf + talk_get_bufsize()) & ~3);
+ buffer_size = (long)audiobufend - (long)audiobuf - talk_get_bufsize() - 16;
logf("buf size: %d kb", buffer_size/1024);