Fix trap on XS3A based devices when moving to DSD mode

This commit is contained in:
Ross Owen
2024-05-22 13:12:17 +01:00
parent f401831766
commit c7d0449a1f
2 changed files with 14 additions and 12 deletions

View File

@@ -36,7 +36,10 @@ void ConfigAudioPorts(
#ifdef __XS3A__
/* Increase drive strength of clock ports to 8mA */
asm volatile ("setc res[%0], %1" :: "r" (p_bclk), "r" (0x200006));
asm volatile ("setc res[%0], %1" :: "r" (p_lrclk), "r" (0x200006));
if(!isnull(p_lrclk))
{
asm volatile ("setc res[%0], %1" :: "r" (p_lrclk), "r" (0x200006));
}
#endif
/* Note this call to stop_clock() will pause forever if the port clocking the clock-block is not low.