Initial changes for PDM outline

This commit is contained in:
Ross Owen
2015-09-15 15:02:04 +01:00
parent 728f3700f6
commit 392aed44a0
2 changed files with 33 additions and 1 deletions

View File

@@ -433,6 +433,10 @@ unsigned static deliver(chanend c_out, chanend ?c_spd_out,
#if(defined(SPDIF_RX) || defined(ADAT_RX)) #if(defined(SPDIF_RX) || defined(ADAT_RX))
chanend c_dig_rx, chanend c_dig_rx,
#endif #endif
#ifdef PDM_PCM_IN
streaming chanend c_pdm_pcm,
#endif
chanend ?c_adc) chanend ?c_adc)
{ {
@@ -924,6 +928,9 @@ chanend ?c_config, chanend ?c
#if XUD_TILE != 0 #if XUD_TILE != 0
, server interface i_dfu dfuInterface , server interface i_dfu dfuInterface
#endif #endif
#ifdef PDM_PCM_IN
, streaming chanend c_pdm_in
#endif
) )
{ {
#if defined (SPDIF_TX) && (SPDIF_TX_TILE == AUDIO_IO_TILE) #if defined (SPDIF_TX) && (SPDIF_TX_TILE == AUDIO_IO_TILE)
@@ -1190,6 +1197,9 @@ chanend ?c_config, chanend ?c
divide, curSamFreq, divide, curSamFreq,
#if defined (ADAT_RX) || defined (SPDIF_RX) #if defined (ADAT_RX) || defined (SPDIF_RX)
c_dig_rx, c_dig_rx,
#endif
#ifdef PDM_PCM_IN
c_pdm_in,
#endif #endif
c); c);

View File

@@ -43,6 +43,8 @@
#include "clocking.h" #include "clocking.h"
void genclock();
[[distributable]] [[distributable]]
void DFUHandler(server interface i_dfu i, chanend ?c_user_cmd); void DFUHandler(server interface i_dfu i, chanend ?c_user_cmd);
@@ -262,6 +264,14 @@ void xscope_user_init()
} }
#endif #endif
#ifdef PDM_PCM_IN
void dummy_pdm_code(streaming chanend c)
{
while(1)
c <: 0xff00ff00;
}
#endif
/* Core USB Audio functions - must be called on the Tile connected to the USB Phy */ /* Core USB Audio functions - must be called on the Tile connected to the USB Phy */
void usb_audio_core(chanend c_mix_out void usb_audio_core(chanend c_mix_out
#ifdef MIDI #ifdef MIDI
@@ -416,6 +426,10 @@ void usb_audio_io(chanend c_aud_in, chanend ?c_adc,
#define c_dig_rx null #define c_dig_rx null
#endif #endif
#ifdef PDM_PCM_IN
streaming chan c_pdm_pcm
#endif
par par
{ {
#ifdef MIXER #ifdef MIXER
@@ -443,6 +457,9 @@ void usb_audio_io(chanend c_aud_in, chanend ?c_adc,
c_aud_cfg, c_adc c_aud_cfg, c_adc
#if XUD_TILE != 0 #if XUD_TILE != 0
, dfuInterface , dfuInterface
#endif
#ifdef PDM_PCM_IN
, c_pdm_pcm
#endif #endif
); );
} }
@@ -455,6 +472,11 @@ void usb_audio_io(chanend c_aud_in, chanend ?c_adc,
} }
#endif #endif
#ifdef PDM_PCM_IN
dummy_pdm_code(c_pdm_pcm);
#endif
//: //:
} }
} }