summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/export/config-recorder.h3
-rw-r--r--firmware/mp3_playback.c7
2 files changed, 8 insertions, 2 deletions
diff --git a/firmware/export/config-recorder.h b/firmware/export/config-recorder.h
index 9aacb49..eefe5e3 100644
--- a/firmware/export/config-recorder.h
+++ b/firmware/export/config-recorder.h
@@ -67,4 +67,7 @@
/* Define this for LCD backlight available */
#define HAVE_BACKLIGHT
+/* Define this for S/PDIF output available */
+#define HAVE_SPDIF_OUT
+
#endif /* SIMULATOR */
diff --git a/firmware/mp3_playback.c b/firmware/mp3_playback.c
index c68661b..dd36578 100644
--- a/firmware/mp3_playback.c
+++ b/firmware/mp3_playback.c
@@ -552,8 +552,11 @@ static void init_playback(void)
mas_codec_writereg(6, 0x0000);
mas_codec_writereg(7, 0x4000);
- /* Disable SDO and SDI, low impedance S/PDIF outputs */
- val = 0x09;
+#ifdef HAVE_SPDIF_OUT
+ val = 0x09; /* Disable SDO and SDI, low impedance S/PDIF outputs */
+#else
+ val = 0x2d; /* Disable SDO and SDI, disable S/PDIF output */
+#endif
mas_writemem(MAS_BANK_D0, MAS_D0_INTERFACE_CONTROL, &val, 1);
/* Set Demand mode and validate all settings */