Removed enum DsdMode as bit of a pain for non-dsd users

This commit is contained in:
Ross Owen
2013-10-24 10:55:49 +01:00
parent 1281963a55
commit 84c267bac8
3 changed files with 4 additions and 6 deletions

View File

@@ -54,7 +54,7 @@ extern in port p_lrclk;
extern in port p_bclk;
#endif
DsdMode dsdMode = DSD_MODE_OFF;
unsigned dsdMode = DSD_MODE_OFF;
/* Master clock input */
extern port p_mclk_in;

View File

@@ -11,6 +11,6 @@
void AudioHwInit(chanend ?c_codec);
/* Configure audio hardware (clocking, CODECs etc) for a specific mClk/Sample frquency - run on every sample frequency change */
void AudioHwConfig(unsigned samFreq, unsigned mClk, chanend ?c_codec, DsdMode dsdMode);
void AudioHwConfig(unsigned samFreq, unsigned mClk, chanend ?c_codec, unsigned dsdMode);
#endif

View File

@@ -293,9 +293,8 @@ void Endpoint0( chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl,
#ifdef NATIVE_DSD
if(g_dsdMode)
{
DsdMode dsdMode = DSD_MODE_OFF;
outuint(c_audioControl, SET_DSD_MODE);
outuint(c_audioControl, dsdMode);
outuint(c_audioControl, DSD_MODE_OFF);
// Handshake
chkct(c_audioControl, XS1_CT_END);
@@ -308,9 +307,8 @@ void Endpoint0( chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl,
if(!g_dsdMode)
{
DsdMode dsdMode = DSD_MODE_NATIVE;
outuint(c_audioControl, SET_DSD_MODE);
outuint(c_audioControl, dsdMode);
outuint(c_audioControl, DSD_MODE_NATIVE);
chkct(c_audioControl, XS1_CT_END);
g_dsdMode = 1;
}