From ca657877e9563154ee802e530218c4b53a6eb48c Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Fri, 30 Oct 2015 11:50:59 +0000 Subject: [PATCH] Tidy up mic integration into deliver() --- module_usb_audio/audio.xc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/module_usb_audio/audio.xc b/module_usb_audio/audio.xc index 36ae61df..60828ffb 100755 --- a/module_usb_audio/audio.xc +++ b/module_usb_audio/audio.xc @@ -698,12 +698,10 @@ unsigned static deliver(chanend c_out, chanend ?c_spd_out, outuint(c_spd_out, sample); /* Forward sample to S/PDIF Tx thread */ #endif -#ifdef PDM_PCM_IN - /* Request samples from PDM->PCM comverter */ - //c_pdm_pcm <: 1; - +#if (NUM_PDM_MICS > 0) + /* Get samples from PDM->PCM comverter */ #pragma loop unroll - for(int i = 0; i < 8 /*NUM_PDM_MICS*/; i++) + for(int i = 0; i < NUM_PDM_MICS; i++) { c_pdm_pcm :> samplesIn_0[i]; }