summaryrefslogtreecommitdiff
path: root/apps/plugins/mpegplayer
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2009-07-17 00:09:14 +0000
committerRafaël Carré <rafael.carre@gmail.com>2009-07-17 00:09:14 +0000
commit8eba69f91ba361b49cec5b546496f6251a638c47 (patch)
tree3dc49543ddb1bb7a44a5b1dd2e2beea2ee3a500d /apps/plugins/mpegplayer
parent20f8666b89f2ec7290d195732d5dc33d20cf3580 (diff)
downloadrockbox-8eba69f91ba361b49cec5b546496f6251a638c47.tar.gz
rockbox-8eba69f91ba361b49cec5b546496f6251a638c47.zip
Storage API : remove undeeded target-specific functions
storage_sleep, storage_spin, storage_spindown are only defined if #defiend (HAVE_DISK_STORAGE), not for MMC/ATA/SD remove already unneeded nand_disk_is_active, nand_soft_reset git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21912 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mpegplayer')
-rw-r--r--apps/plugins/mpegplayer/disk_buf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugins/mpegplayer/disk_buf.c b/apps/plugins/mpegplayer/disk_buf.c
index defd8ef81d..4328606a1e 100644
--- a/apps/plugins/mpegplayer/disk_buf.c
+++ b/apps/plugins/mpegplayer/disk_buf.c
@@ -172,7 +172,9 @@ static inline void disk_buf_buffer(void)
172 if (!stream_get_window(&sw)) 172 if (!stream_get_window(&sw))
173 { 173 {
174 disk_buf.state = TSTATE_DATA; 174 disk_buf.state = TSTATE_DATA;
175#ifdef HAVE_DISK_STORAGE
175 rb->storage_sleep(); 176 rb->storage_sleep();
177#endif
176 break; 178 break;
177 } 179 }
178 180
@@ -187,7 +189,9 @@ static inline void disk_buf_buffer(void)
187 /* Free space is less than one page */ 189 /* Free space is less than one page */
188 disk_buf.state = TSTATE_DATA; 190 disk_buf.state = TSTATE_DATA;
189 disk_buf.low_wm = DISK_BUF_LOW_WATERMARK; 191 disk_buf.low_wm = DISK_BUF_LOW_WATERMARK;
192#ifdef HAVE_DISK_STORAGE
190 rb->storage_sleep(); 193 rb->storage_sleep();
194#endif
191 break; 195 break;
192 } 196 }
193 197
@@ -209,7 +213,9 @@ static inline void disk_buf_buffer(void)
209 { 213 {
210 /* Error or end of stream */ 214 /* Error or end of stream */
211 disk_buf.state = TSTATE_EOS; 215 disk_buf.state = TSTATE_EOS;
216#ifdef HAVE_DISK_STORAGE
212 rb->storage_sleep(); 217 rb->storage_sleep();
218#endif
213 break; 219 break;
214 } 220 }
215 221