From d7f0cdd4be780869137968f00f1d2a46663a1f33 Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Tue, 27 May 2014 15:31:32 +0100 Subject: [PATCH] Potential fixes to master mode --- module_usb_audio/audio.xc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/module_usb_audio/audio.xc b/module_usb_audio/audio.xc index 36c57a0a..174d04d9 100755 --- a/module_usb_audio/audio.xc +++ b/module_usb_audio/audio.xc @@ -355,7 +355,7 @@ unsigned static deliver(chanend c_out, chanend ?c_spd_out, unsigned divide, unsi p_lrclk when pinseq(0) :> void; p_lrclk when pinseq(1) :> void; p_lrclk when pinseq(0) :> void @ tmp; - tmp+=95; + tmp+=97; #if (I2S_CHANS_DAC != 0) #pragma loop unroll for(int i = 0; i < I2S_WIRES_DAC; i++) @@ -365,11 +365,10 @@ unsigned static deliver(chanend c_out, chanend ?c_spd_out, unsigned divide, unsi #endif #if (I2S_CHANS_ADC != 0) - tmp += 33; #pragma loop unroll for(int i = 0; i < I2S_WIRES_ADC; i++) { - asm("setpt res[%0], %1"::"r"(p_i2s_adc[i]),"r"(tmp)); + asm("setpt res[%0], %1"::"r"(p_i2s_adc[i]),"r"(tmp-1)); } #endif