From 2f8a0081c64534da23fc0fa9cc685eb7454fd9c9 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Sat, 1 Nov 2008 16:14:28 +0000 Subject: Apply FS#9500. This adds a storage_*() abstraction to replace ata_*(). To do that, it also introduces sd_*, nand_*, and mmc_*. This should be a good first step to allow multi-driver targets, like the Elio (ATA/SD), or the D2 (NAND/SD). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18960 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/recording.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/recorder/recording.c') diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index d29db390c7..5a2aa096db 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c @@ -65,7 +65,7 @@ #include "errno.h" #include "talk.h" #include "sound.h" -#include "ata.h" +#include "storage.h" #include "splash.h" #include "screen_access.h" #include "action.h" @@ -298,7 +298,7 @@ static bool read_peak_levels(int *peak_l, int *peak_r, int *balance) peak_valid_mem[peak_time % 3] = *peak_l; if (((peak_valid_mem[0] == peak_valid_mem[1]) && (peak_valid_mem[1] == peak_valid_mem[2])) && - ((*peak_l < 32767) || ata_disk_is_active())) + ((*peak_l < 32767) || storage_disk_is_active())) return false; if (*peak_r > *peak_l) @@ -1034,7 +1034,7 @@ bool recording_screen(bool no_source) rec_status = RCSTAT_IN_RECSCREEN; #if (CONFIG_LED == LED_REAL) && !defined(SIMULATOR) - ata_set_led_enabled(false); + storage_set_led_enabled(false); #endif #if CONFIG_CODEC == SWCODEC @@ -1905,7 +1905,7 @@ rec_abort: reload_directory(); #if (CONFIG_LED == LED_REAL) && !defined(SIMULATOR) - ata_set_led_enabled(true); + storage_set_led_enabled(true); #endif #if CONFIG_TUNER -- cgit v1.2.3