diff options
-rw-r--r-- | apps/plugins/test_boost.c | 1 | ||||
-rw-r--r-- | firmware/target/arm/s5l8700/ipodnano2g/audio-nano2g.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/apps/plugins/test_boost.c b/apps/plugins/test_boost.c index b4beb5161a..bb9d943edf 100644 --- a/apps/plugins/test_boost.c +++ b/apps/plugins/test_boost.c | |||
@@ -40,6 +40,7 @@ enum plugin_status plugin_start(const void* parameter) | |||
40 | int j,x; | 40 | int j,x; |
41 | for (j=1; j<100000; j++) | 41 | for (j=1; j<100000; j++) |
42 | x = j*11; | 42 | x = j*11; |
43 | (void)x; | ||
43 | rb->screens[0]->clear_display(); | 44 | rb->screens[0]->clear_display(); |
44 | rb->screens[0]->putsf(0, 0, "%s: %d",boost?"boost":"normal",count); | 45 | rb->screens[0]->putsf(0, 0, "%s: %d",boost?"boost":"normal",count); |
45 | if (TIME_AFTER(*rb->current_tick, last_tick+HZ)) | 46 | if (TIME_AFTER(*rb->current_tick, last_tick+HZ)) |
diff --git a/firmware/target/arm/s5l8700/ipodnano2g/audio-nano2g.c b/firmware/target/arm/s5l8700/ipodnano2g/audio-nano2g.c index 402a60661e..876e046e11 100644 --- a/firmware/target/arm/s5l8700/ipodnano2g/audio-nano2g.c +++ b/firmware/target/arm/s5l8700/ipodnano2g/audio-nano2g.c | |||
@@ -33,8 +33,10 @@ void audio_set_output_source(int source) | |||
33 | void audio_input_mux(int source, unsigned flags) | 33 | void audio_input_mux(int source, unsigned flags) |
34 | { | 34 | { |
35 | (void)flags; | 35 | (void)flags; |
36 | #ifdef HAVE_RECORDING | ||
36 | /* Prevent pops from unneeded switching */ | 37 | /* Prevent pops from unneeded switching */ |
37 | static int last_source = AUDIO_SRC_PLAYBACK; | 38 | static int last_source = AUDIO_SRC_PLAYBACK; |
39 | #endif | ||
38 | 40 | ||
39 | switch (source) | 41 | switch (source) |
40 | { | 42 | { |
@@ -60,6 +62,8 @@ void audio_input_mux(int source, unsigned flags) | |||
60 | #endif | 62 | #endif |
61 | } /* end switch */ | 63 | } /* end switch */ |
62 | 64 | ||
65 | #ifdef HAVE_RECORDING | ||
63 | last_source = source; | 66 | last_source = source; |
67 | #endif | ||
64 | } /* audio_input_mux */ | 68 | } /* audio_input_mux */ |
65 | #endif /* INPUT_SRC_CAPS != 0 */ | 69 | #endif /* INPUT_SRC_CAPS != 0 */ |