summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-05-04 16:21:32 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-05-04 16:21:32 +0000
commitfd8dd686f4ebf1681b8c6aa3e9e94d0bb8dd76ad (patch)
tree6928b80090ac5dee54c0bdcf11826afa98fee299 /firmware
parentdfeeeebee0b62146f1ae70ad5e530386858043a7 (diff)
downloadrockbox-fd8dd686f4ebf1681b8c6aa3e9e94d0bb8dd76ad.tar.gz
rockbox-fd8dd686f4ebf1681b8c6aa3e9e94d0bb8dd76ad.zip
Default HW_SAMPR_CAPS should be SAMPR_CAP_44, not 0.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13323 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/pcm_sampr.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/export/pcm_sampr.h b/firmware/export/pcm_sampr.h
index 4f6d5ddf93..27a300d645 100644
--- a/firmware/export/pcm_sampr.h
+++ b/firmware/export/pcm_sampr.h
@@ -21,7 +21,7 @@
#define PCM_SAMPR_H
#ifndef HW_SAMPR_CAPS
-#define HW_SAMPR_CAPS 0 /* if not defined, we define to 0 */
+#define HW_SAMPR_CAPS SAMPR_CAP_44 /* if not defined, default to 44100 */
#endif
/* These must be macros for comparison with SAMPR_CAP_* flags by the
@@ -117,9 +117,13 @@ enum hw_freq_indexes
#define HW_HAVE_48_(...)
#endif
/* 44100 */
+#if (HW_SAMPR_CAPS & SAMPR_CAP_44)
HW_FREQ_44,
#define HW_HAVE_44
#define HW_HAVE_44_(...) __VA_ARGS__
+#else
+#define HW_HAVE_44_(...)
+#endif
/* 32000 */
#if (HW_SAMPR_CAPS & SAMPR_CAP_32)
HW_FREQ_32,