forked from PAWPAW-Mirror/lib_xua
Fix non PDM mic builds
Guard initial PDM mic channel access.
This commit is contained in:
@@ -521,6 +521,7 @@ unsigned static deliver(chanend c_out, chanend ?c_spd_out,
|
|||||||
#endif /* (AUD_TO_USB_RATIO > 1) */
|
#endif /* (AUD_TO_USB_RATIO > 1) */
|
||||||
|
|
||||||
|
|
||||||
|
#if (NUM_PDM_MICS > 0)
|
||||||
/* Get initial samples from PDM->PCM converter to avoid stalling the decimators */
|
/* Get initial samples from PDM->PCM converter to avoid stalling the decimators */
|
||||||
c_pdm_pcm <: 1;
|
c_pdm_pcm <: 1;
|
||||||
master
|
master
|
||||||
@@ -531,6 +532,7 @@ unsigned static deliver(chanend c_out, chanend ?c_spd_out,
|
|||||||
c_pdm_pcm :> samplesIn[readBuffNo][i];
|
c_pdm_pcm :> samplesIn[readBuffNo][i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif // (NUM_PDM_MICS > 0)
|
||||||
|
|
||||||
UserBufferManagementInit(i_audMan);
|
UserBufferManagementInit(i_audMan);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user