summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2013-06-29 22:19:59 -0400
committerMichael Sevakis <jethead71@rockbox.org>2013-06-29 22:29:23 -0400
commit9b990bdab1eda4d242346a0614b9410993ab275a (patch)
treee30c13506d08e0e9efa21c95ff76b2a02a3bb988
parent89b05af4967806fb75411a8ccb122f299f79cf52 (diff)
downloadrockbox-9b990bd.tar.gz
rockbox-9b990bd.tar.bz2
rockbox-9b990bd.zip
SWCODEC Audio: Add some INIT_ATTR's to get a few bytes back.
Change-Id: Ie7b04ecf3b3535e0ed45a6e0e8d81af89e38378e
-rw-r--r--apps/audio_thread.c2
-rw-r--r--apps/buffering.c2
-rw-r--r--apps/codec_thread.c2
-rw-r--r--apps/playback.c4
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");