From 543027564cc72ba3effa8d7b00f380b6dafd8494 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sun, 26 Jan 2014 19:14:47 +0100 Subject: hwcodec/talk.c: Give the thumbnail buffer regardless of the talk buffer policy. When the policy is not set, it'll by default not give the clip buffer away. Callers of core_alloc_maximum() suffer from this. However, the thumbnail buffer can be easily freed when needed because nothing needs to be reloaded from disk when it is reallocated (thumbnail clips are loaded on demand, when in the file browser). Do this to give core_alloc_maximum() callers a better chance to succeed with the default talk buffer policy. Change-Id: I8c0da29c520612ca903f6c930bd7c74ae97eca3b --- apps/mpeg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/mpeg.c') diff --git a/apps/mpeg.c b/apps/mpeg.c index 08e8e4cf51..bfe3d6d54f 100644 --- a/apps/mpeg.c +++ b/apps/mpeg.c @@ -2989,7 +2989,6 @@ void audio_init(void) { mpeg_errno = 0; - talk_init(); audio_reset_buffer(); #ifndef SIMULATOR @@ -3009,6 +3008,8 @@ void audio_init(void) or_b(0x08, &PADRH); #endif /* CONFIG_CODEC == MAS3587F */ + talk_init(); + #ifdef DEBUG #ifndef SIMULATOR dbg_timer_start(); -- cgit v1.2.3