diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2004-10-11 22:53:49 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2004-10-11 22:53:49 +0000 |
| commit | 1acc38f9d9186ba32f54cdf5d124586d0d2b628c (patch) | |
| tree | 3142e6dbeebe93f86c573c0c8cc2f7079e760249 | |
| parent | c8d4a6f244e9e7c0eab4cf0d2cf0a956a6c85120 (diff) | |
| download | rockbox-1acc38f9d9186ba32f54cdf5d124586d0d2b628c.zip rockbox-1acc38f9d9186ba32f54cdf5d124586d0d2b628c.tar.gz rockbox-1acc38f9d9186ba32f54cdf5d124586d0d2b628c.tar.bz2 rockbox-1acc38f9d9186ba32f54cdf5d124586d0d2b628c.tar.xz | |
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
| -rw-r--r-- | firmware/export/config-recorder.h | 3 | ||||
| -rw-r--r-- | firmware/mp3_playback.c | 7 |
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 */ |