Initial work to move DSP location

This commit is contained in:
Ross Owen
2016-05-17 11:06:19 +01:00
parent 563763bceb
commit 702e7a7e1f
4 changed files with 72 additions and 48 deletions

View File

@@ -1,9 +1,24 @@
#ifndef __audio_h__
#define __audio_h__
#include "devicedefines.h"
//#include "devicedefines.h"
#include "dfu_interface.h"
#include "xua_dsp.h"
//#include "xua_dsp.h"
typedef interface audManage_if
{
[[guarded]]
void transfer_buffers(int * unsafe in_aud_buf, int * unsafe in_usb_buf,
int * unsafe out_usb_buf, int * unsafe out_aud_buf);
[[guarded]]
void transfer_samples(int in_mic_buf[], int in_spk_buf[], int out_mic_buf[], int out_spk_buf[]);
} audManage_if;
/** The audio driver thread.
*
@@ -31,9 +46,9 @@ void audio(chanend c_in,
#if (NUM_PDM_MICS > 0)
, chanend c_pdm_in
#endif
#ifdef RUN_DSP_TASK
, client dsp_if i_dsp
#endif
//#ifdef RUN_DSP_TASK
, client audManage_if i_audMan
//#endif
);
void SpdifTxWrapper(chanend c_spdif_tx);