summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-06-06 21:24:20 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-06-06 21:24:20 +0000
commiteae3a6a3c2558cebe27bf73d0208ae12ee7e1537 (patch)
tree0b40d490310de2435f14de65ce8f399c359a7112 /firmware
parente8c94d898ddd164ca644063c12d14f760832d408 (diff)
downloadrockbox-eae3a6a3c2558cebe27bf73d0208ae12ee7e1537.tar.gz
rockbox-eae3a6a3c2558cebe27bf73d0208ae12ee7e1537.zip
Assumption about there being MPEG1-only samplerates available and therefore MPEG1-only bitrates for recording is no longer valid. Fix that.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13579 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/enc_base.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/firmware/export/enc_base.h b/firmware/export/enc_base.h
index e1baa2545a..a9eff523ce 100644
--- a/firmware/export/enc_base.h
+++ b/firmware/export/enc_base.h
@@ -75,15 +75,17 @@ struct aiff_enc_config
#define MPEG2_5_BITR_CAPS MPEG2_BITR_CAPS
#endif
-/* Assume 44100 is always available and therefore MPEG1 */
-
/* HAVE_MPEG* defines mainly apply to the bitrate menu */
-#if (REC_SAMPR_CAPS & MPEG2_SAMPR_CAPS) || defined (HAVE_SPDIF_IN)
+#if (REC_SAMPR_CAPS & MPEG1_SAMPR_CAPS) || defined (HAVE_SPDIF_REC)
+#define HAVE_MPEG1_SAMPR
+#endif
+
+#if (REC_SAMPR_CAPS & MPEG2_SAMPR_CAPS) || defined (HAVE_SPDIF_REC)
#define HAVE_MPEG2_SAMPR
#endif
#if 0
-#if (REC_SAMPR_CAPS & MPEG2_5_SAMPR_CAPS) || defined (HAVE_SPDIF_IN)
+#if (REC_SAMPR_CAPS & MPEG2_5_SAMPR_CAPS) || defined (HAVE_SPDIF_REC)
#define HAVE_MPEG2_5_SAMPR
#endif
#endif /* 0 */