From 1acc38f9d9186ba32f54cdf5d124586d0d2b628c Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Mon, 11 Oct 2004 22:53:49 +0000 Subject: Disabled S/PDIF out for models where S/PDIF output is not physically available. Should reduce possible interference. If you have modded your FM/V2 to have such an output, define HAVE_SPDIF_OUT in the corresponding config-xxx.h file to re-enable it git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5253 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/config-recorder.h | 3 +++ firmware/mp3_playback.c | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'firmware') 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 @@ /* 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 c68661bc35..dd36578c78 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 */ -- cgit v1.2.3