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 9aacb490dd..eefe5e371b 100644
--- a/firmware/export/config-recorder.h
+++ b/firmware/export/config-recorder.h
@@ -67,4 +67,7 @@
67/* Define this for LCD backlight available */ 67/* Define this for LCD backlight available */
68#define HAVE_BACKLIGHT 68#define HAVE_BACKLIGHT
69 69
70/* Define this for S/PDIF output available */
71#define HAVE_SPDIF_OUT
72
70#endif /* SIMULATOR */ 73#endif /* SIMULATOR */
diff --git a/firmware/mp3_playback.c b/firmware/mp3_playback.c
index c68661bc35..dd36578c78 100644
--- a/firmware/mp3_playback.c
+++ b/firmware/mp3_playback.c
@@ -552,8 +552,11 @@ static void init_playback(void)
552 mas_codec_writereg(6, 0x0000); 552 mas_codec_writereg(6, 0x0000);
553 mas_codec_writereg(7, 0x4000); 553 mas_codec_writereg(7, 0x4000);
554 554
555 /* Disable SDO and SDI, low impedance S/PDIF outputs */ 555#ifdef HAVE_SPDIF_OUT
556 val = 0x09; 556 val = 0x09; /* Disable SDO and SDI, low impedance S/PDIF outputs */
557#else
558 val = 0x2d; /* Disable SDO and SDI, disable S/PDIF output */
559#endif
557 mas_writemem(MAS_BANK_D0, MAS_D0_INTERFACE_CONTROL, &val, 1); 560 mas_writemem(MAS_BANK_D0, MAS_D0_INTERFACE_CONTROL, &val, 1);
558 561
559 /* Set Demand mode and validate all settings */ 562 /* Set Demand mode and validate all settings */