From 9b990bdab1eda4d242346a0614b9410993ab275a Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sat, 29 Jun 2013 22:19:59 -0400 Subject: [PATCH] SWCODEC Audio: Add some INIT_ATTR's to get a few bytes back. Change-Id: Ie7b04ecf3b3535e0ed45a6e0e8d81af89e38378e --- apps/audio_thread.c | 2 +- apps/buffering.c | 2 +- apps/codec_thread.c | 2 +- apps/playback.c | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/audio_thread.c b/apps/audio_thread.c index bbf73470d2..4750d0cc43 100644 --- a/apps/audio_thread.c +++ b/apps/audio_thread.c @@ -139,7 +139,7 @@ void audio_error_clear(void) /** -- Startup -- **/ /* Initialize the audio system - called from init() in main.c */ -void audio_init(void) +void INIT_ATTR audio_init(void) { /* Can never do this twice */ if (audio_is_initialized) diff --git a/apps/buffering.c b/apps/buffering.c index c4a96e8341..326228cbfa 100644 --- a/apps/buffering.c +++ b/apps/buffering.c @@ -1720,7 +1720,7 @@ static void NORETURN_ATTR buffering_thread(void) } } -void buffering_init(void) +void INIT_ATTR buffering_init(void) { mutex_init(&llist_mutex); diff --git a/apps/codec_thread.c b/apps/codec_thread.c index 1a0b0b255c..d4b1c64573 100644 --- a/apps/codec_thread.c +++ b/apps/codec_thread.c @@ -627,7 +627,7 @@ static void NORETURN_ATTR codec_thread(void) /** --- Miscellaneous external interfaces -- **/ /* Initialize playback's codec interface */ -void codec_thread_init(void) +void INIT_ATTR codec_thread_init(void) { /* Init API */ ci.dsp = dsp_get_config(CODEC_IDX_AUDIO); diff --git a/apps/playback.c b/apps/playback.c index 87922bfb82..24c268ffc4 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -494,7 +494,7 @@ static void track_info_wipe(struct track_info * info) /** --- Track list --- **/ /* Initialize the track list */ -static void track_list_init(void) +static void INIT_ATTR track_list_init(void) { int i; for (i = 0; i < TRACK_LIST_LEN; i++) @@ -3747,7 +3747,7 @@ unsigned int playback_status(void) } /** -- Startup -- **/ -void playback_init(void) +void INIT_ATTR playback_init(void) { logf("playback: initializing");