summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/sdl/include/SDL_config_rockbox.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/sdl/include/SDL_config_rockbox.h b/apps/plugins/sdl/include/SDL_config_rockbox.h
index bee63c4f20..40bd7fe177 100644
--- a/apps/plugins/sdl/include/SDL_config_rockbox.h
+++ b/apps/plugins/sdl/include/SDL_config_rockbox.h
@@ -47,7 +47,11 @@
#ifdef SIMULATOR
#define RB_SAMPR SAMPR_44
#else
+#if HW_SAMPR_CAPS & SAMPR_CAP_22
#define RB_SAMPR SAMPR_22
+#else
+#define RB_SAMPR HW_SAMPR_MIN
+#endif
#endif
/* Enable the stub cdrom driver (src/cdrom/dummy/\*.c) */