summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2008-11-04 19:57:36 +0000
committerFrank Gevaerts <frank@gevaerts.be>2008-11-04 19:57:36 +0000
commit059fff29ec662ffa0b2c2e5ebc91d574007b81a8 (patch)
treebda825cb629e1114cad8afef3eb73cddd03fb42d /apps
parent5a00367a08a54893712566d9f075684fae964d23 (diff)
downloadrockbox-059fff29ec662ffa0b2c2e5ebc91d574007b81a8.zip
rockbox-059fff29ec662ffa0b2c2e5ebc91d574007b81a8.tar.gz
rockbox-059fff29ec662ffa0b2c2e5ebc91d574007b81a8.tar.bz2
rockbox-059fff29ec662ffa0b2c2e5ebc91d574007b81a8.tar.xz
Since *set_led_enabled() is actually an ata-specific feature, move it back to ata_* only
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19006 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/recorder/recording.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c
index 5a2aa09..b2c81cd 100644
--- a/apps/recorder/recording.c
+++ b/apps/recorder/recording.c
@@ -66,6 +66,10 @@
#include "talk.h"
#include "sound.h"
#include "storage.h"
+#if (CONFIG_STORAGE & STORAGE_ATA) && (CONFIG_LED == LED_REAL) \
+ && !defined(SIMULATOR)
+#include "ata.h"
+#endif
#include "splash.h"
#include "screen_access.h"
#include "action.h"
@@ -1033,8 +1037,9 @@ bool recording_screen(bool no_source)
struct audio_recording_options rec_options;
rec_status = RCSTAT_IN_RECSCREEN;
-#if (CONFIG_LED == LED_REAL) && !defined(SIMULATOR)
- storage_set_led_enabled(false);
+#if (CONFIG_STORAGE & STORAGE_ATA) && (CONFIG_LED == LED_REAL) \
+ && !defined(SIMULATOR)
+ ata_set_led_enabled(false);
#endif
#if CONFIG_CODEC == SWCODEC
@@ -1904,8 +1909,9 @@ rec_abort:
if (rec_status & (RCSTAT_CREATED_DIRECTORY | RCSTAT_HAVE_RECORDED))
reload_directory();
-#if (CONFIG_LED == LED_REAL) && !defined(SIMULATOR)
- storage_set_led_enabled(true);
+#if (CONFIG_STORAGE & STORAGE_ATA) && (CONFIG_LED == LED_REAL) \
+ && !defined(SIMULATOR)
+ ata_set_led_enabled(true);
#endif
#if CONFIG_TUNER