forked from PAWPAW-Mirror/lib_xua
xpd: Cleaned up whitespace
This commit is contained in:
@@ -794,8 +794,8 @@ void audio(chanend c_mix_out, chanend ?c_dig_rx, chanend ?c_config, chanend ?c)
|
|||||||
chan c_spdif_out;
|
chan c_spdif_out;
|
||||||
#endif
|
#endif
|
||||||
unsigned curSamFreq = DEFAULT_FREQ;
|
unsigned curSamFreq = DEFAULT_FREQ;
|
||||||
unsigned curSamRes_DAC = STREAM_FORMAT_OUTPUT_1_RESOLUTION_BITS; /* Default to something reasonable */
|
unsigned curSamRes_DAC = STREAM_FORMAT_OUTPUT_1_RESOLUTION_BITS; /* Default to something reasonable */
|
||||||
unsigned curSamRes_ADC = STREAM_FORMAT_INPUT_1_RESOLUTION_BITS; /* Default to something reasonable - note, currently this never changes*/
|
unsigned curSamRes_ADC = STREAM_FORMAT_INPUT_1_RESOLUTION_BITS; /* Default to something reasonable - note, currently this never changes*/
|
||||||
unsigned command;
|
unsigned command;
|
||||||
unsigned mClk;
|
unsigned mClk;
|
||||||
unsigned divide;
|
unsigned divide;
|
||||||
@@ -999,7 +999,7 @@ void audio(chanend c_mix_out, chanend ?c_dig_rx, chanend ?c_config, chanend ?c)
|
|||||||
* Native = 2
|
* Native = 2
|
||||||
*/
|
*/
|
||||||
dsdMode = inuint(c_mix_out);
|
dsdMode = inuint(c_mix_out);
|
||||||
curSamRes_DAC = inuint(c_mix_out);
|
curSamRes_DAC = inuint(c_mix_out);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Currently no more audio will happen after this point */
|
/* Currently no more audio will happen after this point */
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
void AudioHwInit(chanend ?c_codec);
|
void AudioHwInit(chanend ?c_codec);
|
||||||
|
|
||||||
/* Configure audio hardware (clocking, CODECs etc) for a specific mClk/Sample frquency - run on every sample frequency change */
|
/* 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, unsigned dsdMode,
|
void AudioHwConfig(unsigned samFreq, unsigned mClk, chanend ?c_codec, unsigned dsdMode,
|
||||||
unsigned sampRes_DAC, unsigned sampRes_ADC);
|
unsigned sampRes_DAC, unsigned sampRes_ADC);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -255,7 +255,7 @@ void Endpoint0(chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl,
|
|||||||
if((sp.wValue > 0) && (g_curStreamAlt_Out != sp.wValue))
|
if((sp.wValue > 0) && (g_curStreamAlt_Out != sp.wValue))
|
||||||
{
|
{
|
||||||
g_curStreamAlt_Out = sp.wValue;
|
g_curStreamAlt_Out = sp.wValue;
|
||||||
|
|
||||||
/* Send format of data onto buffering */
|
/* Send format of data onto buffering */
|
||||||
outuint(c_audioControl, SET_STREAM_FORMAT_OUT);
|
outuint(c_audioControl, SET_STREAM_FORMAT_OUT);
|
||||||
outuint(c_audioControl, g_dataFormat_Out[sp.wValue-1]); /* Data format (PCM/DSD) */
|
outuint(c_audioControl, g_dataFormat_Out[sp.wValue-1]); /* Data format (PCM/DSD) */
|
||||||
@@ -288,7 +288,7 @@ void Endpoint0(chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl,
|
|||||||
if((sp.wValue > 0) && (g_curStreamAlt_In != sp.wValue))
|
if((sp.wValue > 0) && (g_curStreamAlt_In != sp.wValue))
|
||||||
{
|
{
|
||||||
g_curStreamAlt_In = sp.wValue;
|
g_curStreamAlt_In = sp.wValue;
|
||||||
|
|
||||||
/* Send format of data onto buffering */
|
/* Send format of data onto buffering */
|
||||||
outuint(c_audioControl, SET_STREAM_FORMAT_IN);
|
outuint(c_audioControl, SET_STREAM_FORMAT_IN);
|
||||||
outuint(c_audioControl, g_dataFormat_In[sp.wValue-1]); /* Data format (PCM/DSD) */
|
outuint(c_audioControl, g_dataFormat_In[sp.wValue-1]); /* Data format (PCM/DSD) */
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ unsigned int divide)
|
|||||||
#ifndef CODEC_MASTER
|
#ifndef CODEC_MASTER
|
||||||
/* Note this call to stop_clock() will pause forever if the port clocking the clock-block is not low.
|
/* Note this call to stop_clock() will pause forever if the port clocking the clock-block is not low.
|
||||||
* deliver() should return with this being the case */
|
* deliver() should return with this being the case */
|
||||||
|
|
||||||
stop_clock(clk_audio_bclk);
|
stop_clock(clk_audio_bclk);
|
||||||
|
|
||||||
if(!isnull(p_lrclk))
|
if(!isnull(p_lrclk))
|
||||||
|
|||||||
Reference in New Issue
Block a user