From dfeac27a9d48491bedb8a1620ca7f571b9ca3725 Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Wed, 1 Jul 2015 12:27:50 +0100 Subject: [PATCH] Only set DSD clock low if in DSD mode.. caused issues with DFU with DSD (when XUD_TILE!=0) --- module_usb_audio/audio.xc | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/module_usb_audio/audio.xc b/module_usb_audio/audio.xc index febc56bd..3c2e0fa4 100755 --- a/module_usb_audio/audio.xc +++ b/module_usb_audio/audio.xc @@ -233,12 +233,18 @@ static inline unsigned DoSampleTransfer(chanend c_out, int readBuffNo, unsigned { unsigned command = inct(c_out); #ifndef CODEC_MASTER - // Set clocks low - p_lrclk <: 0; - p_bclk <: 0; + if(dsdMode == DSD_MODE_OFF) + { + // Set clocks low + p_lrclk <: 0; + p_bclk <: 0; + } + else + { #if(DSD_CHANS_DAC != 0) /* DSD Clock might not be shared with lrclk or bclk... */ - p_dsd_clk <: 0; + p_dsd_clk <: 0; + } #endif #endif #if (DSD_CHANS_DAC > 0)