From 0f949e93e33ed9205c44af0edb0e0a15784967d2 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Mon, 6 Nov 2006 22:40:40 +0000 Subject: [PATCH] Archos recorders, Ondio FM: Set (unused) MAS SDO and S/PDIF out while recording the same way as for playback (SDO disabled, S/PDIF enabled on recorder V1 only). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11456 a1c6a512-1295-4272-9138-f99709370657 --- firmware/mpeg.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/firmware/mpeg.c b/firmware/mpeg.c index 7d16a8c87c..c9f48f2d97 100644 --- a/firmware/mpeg.c +++ b/firmware/mpeg.c @@ -2204,6 +2204,13 @@ static void init_recording(void) shadow_soft_mute = 0; mas_writemem(MAS_BANK_D0, MAS_D0_SOFT_MUTE, &shadow_soft_mute, 1); +#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, monitoring OFF and validate all settings */ shadow_io_control_main = 0x125; mas_writemem(MAS_BANK_D0, MAS_D0_IO_CONTROL_MAIN, &shadow_io_control_main, 1);