diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2008-11-01 16:14:28 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2008-11-01 16:14:28 +0000 |
commit | 2f8a0081c64534da23fc0fa9cc685eb7454fd9c9 (patch) | |
tree | 84dbdbd5326cb48f43d2ebd5a4c86e992c1d5288 /apps/recorder/recording.c | |
parent | 646cac0bde7b11fa7bcb670d1d76eec78e360485 (diff) | |
download | rockbox-2f8a0081c64534da23fc0fa9cc685eb7454fd9c9.tar.gz rockbox-2f8a0081c64534da23fc0fa9cc685eb7454fd9c9.zip |
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
Diffstat (limited to 'apps/recorder/recording.c')
-rw-r--r-- | apps/recorder/recording.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 @@ | |||
65 | #include "errno.h" | 65 | #include "errno.h" |
66 | #include "talk.h" | 66 | #include "talk.h" |
67 | #include "sound.h" | 67 | #include "sound.h" |
68 | #include "ata.h" | 68 | #include "storage.h" |
69 | #include "splash.h" | 69 | #include "splash.h" |
70 | #include "screen_access.h" | 70 | #include "screen_access.h" |
71 | #include "action.h" | 71 | #include "action.h" |
@@ -298,7 +298,7 @@ static bool read_peak_levels(int *peak_l, int *peak_r, int *balance) | |||
298 | peak_valid_mem[peak_time % 3] = *peak_l; | 298 | peak_valid_mem[peak_time % 3] = *peak_l; |
299 | if (((peak_valid_mem[0] == peak_valid_mem[1]) && | 299 | if (((peak_valid_mem[0] == peak_valid_mem[1]) && |
300 | (peak_valid_mem[1] == peak_valid_mem[2])) && | 300 | (peak_valid_mem[1] == peak_valid_mem[2])) && |
301 | ((*peak_l < 32767) || ata_disk_is_active())) | 301 | ((*peak_l < 32767) || storage_disk_is_active())) |
302 | return false; | 302 | return false; |
303 | 303 | ||
304 | if (*peak_r > *peak_l) | 304 | if (*peak_r > *peak_l) |
@@ -1034,7 +1034,7 @@ bool recording_screen(bool no_source) | |||
1034 | rec_status = RCSTAT_IN_RECSCREEN; | 1034 | rec_status = RCSTAT_IN_RECSCREEN; |
1035 | 1035 | ||
1036 | #if (CONFIG_LED == LED_REAL) && !defined(SIMULATOR) | 1036 | #if (CONFIG_LED == LED_REAL) && !defined(SIMULATOR) |
1037 | ata_set_led_enabled(false); | 1037 | storage_set_led_enabled(false); |
1038 | #endif | 1038 | #endif |
1039 | 1039 | ||
1040 | #if CONFIG_CODEC == SWCODEC | 1040 | #if CONFIG_CODEC == SWCODEC |
@@ -1905,7 +1905,7 @@ rec_abort: | |||
1905 | reload_directory(); | 1905 | reload_directory(); |
1906 | 1906 | ||
1907 | #if (CONFIG_LED == LED_REAL) && !defined(SIMULATOR) | 1907 | #if (CONFIG_LED == LED_REAL) && !defined(SIMULATOR) |
1908 | ata_set_led_enabled(true); | 1908 | storage_set_led_enabled(true); |
1909 | #endif | 1909 | #endif |
1910 | 1910 | ||
1911 | #if CONFIG_TUNER | 1911 | #if CONFIG_TUNER |