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
This commit is contained in:
Jens Arnold 2006-11-06 22:40:40 +00:00
parent 128c3ee686
commit 0f949e93e3

View file

@ -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);