From 0bfa3e76ce8f2c5465ff568b7f4dcf7b5fbb462f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Wallm=C3=A9nius?= Date: Wed, 1 Aug 2007 08:50:44 +0000 Subject: Disable 'Disk spindown' and 'Anti skip buffer' settings and some related stuff for flash storage targets as they make no sense git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14110 a1c6a512-1295-4272-9138-f99709370657 --- apps/playback.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/playback.c') diff --git a/apps/playback.c b/apps/playback.c index 0533ddc..7b9b664 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -792,6 +792,7 @@ int audio_get_file_pos(void) return 0; } +#ifndef HAVE_FLASH_STORAGE void audio_set_buffer_margin(int setting) { static const int lookup[] = {5, 15, 30, 60, 120, 180, 300, 600}; @@ -799,6 +800,7 @@ void audio_set_buffer_margin(int setting) logf("buffer margin: %ld", buffer_margin); set_filebuf_watermark(buffer_margin); } +#endif /* Take nescessary steps to enable or disable the crossfade setting */ void audio_set_crossfade(int enable) @@ -3839,5 +3841,8 @@ void audio_init(void) #ifdef HAVE_WM8758 eq_hw_enable(global_settings.eq_hw_enabled); #endif +#ifndef HAVE_FLASH_STORAGE audio_set_buffer_margin(global_settings.buffer_margin); +#endif } /* audio_init */ + -- cgit v1.1