1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Jens Arnold 2004-10-11 22:53:49 +00:00
parent c8d4a6f244
commit 1acc38f9d9
2 changed files with 8 additions and 2 deletions

View file

@ -67,4 +67,7 @@
/* Define this for LCD backlight available */ /* Define this for LCD backlight available */
#define HAVE_BACKLIGHT #define HAVE_BACKLIGHT
/* Define this for S/PDIF output available */
#define HAVE_SPDIF_OUT
#endif /* SIMULATOR */ #endif /* SIMULATOR */

View file

@ -552,8 +552,11 @@ static void init_playback(void)
mas_codec_writereg(6, 0x0000); mas_codec_writereg(6, 0x0000);
mas_codec_writereg(7, 0x4000); mas_codec_writereg(7, 0x4000);
/* Disable SDO and SDI, low impedance S/PDIF outputs */ #ifdef HAVE_SPDIF_OUT
val = 0x09; 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); mas_writemem(MAS_BANK_D0, MAS_D0_INTERFACE_CONTROL, &val, 1);
/* Set Demand mode and validate all settings */ /* Set Demand mode and validate all settings */