From 89690c13e9944ac8f069d6b5661f198b75d1e3b8 Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Mon, 17 Sep 2012 15:14:20 +0100 Subject: [PATCH] Change to new CODEC_MASTER define --- module_usb_audio/audio.xc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module_usb_audio/audio.xc b/module_usb_audio/audio.xc index 812c3b11..f56161f2 100755 --- a/module_usb_audio/audio.xc +++ b/module_usb_audio/audio.xc @@ -40,7 +40,7 @@ extern buffered in port:32 p_i2s_adc[I2S_WIRES_ADC]; #endif /* I2S LR/Bit clock I/O */ -#ifdef CODEC_SLAVE +#ifndef CODEC_MASTER extern buffered out port:32 p_lrclk; extern buffered out port:32 p_bclk; #else @@ -136,7 +136,7 @@ unsigned deliver(chanend c_out, chanend ?c_spd_out, unsigned divide, chanend ?c_ #endif } -#ifdef CODEC_SLAVE +#ifndef CODEC_MASTER /* Clear I2S port buffers */ clearbuf(p_lrclk); @@ -321,7 +321,7 @@ unsigned deliver(chanend c_out, chanend ?c_spd_out, unsigned divide, chanend ?c_ } #endif -#ifdef CODEC_SLAVE +#ifndef CODEC_MASTER /* Generate clocks LR Clock low - LEFT */ switch (divide) { @@ -414,7 +414,7 @@ unsigned deliver(chanend c_out, chanend ?c_spd_out, unsigned divide, chanend ?c_ } #endif -#ifdef CODEC_SLAVE +#ifndef CODEC_MASTER /* Clock out data (and LR clock) */ switch (divide) {