forked from PAWPAW-Mirror/lib_xua
xpd: Cleaned up whitespace
This commit is contained in:
@@ -1581,7 +1581,7 @@ USB_Config_Descriptor_Audio2_t cfgDesc_Audio2=
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(SPDIF_RX) || defined(ADAT_RX)
|
#if defined(SPDIF_RX) || defined(ADAT_RX)
|
||||||
/* Standard AS Interrupt Endpoint Descriptor (4.8.2.1): */
|
/* Standard AS Interrupt Endpoint Descriptor (4.8.2.1): */
|
||||||
.Audio_Int_Endpoint =
|
.Audio_Int_Endpoint =
|
||||||
{
|
{
|
||||||
.bLength = sizeof(USB_Descriptor_Endpoint_t),
|
.bLength = sizeof(USB_Descriptor_Endpoint_t),
|
||||||
|
|||||||
@@ -352,9 +352,9 @@ void usb_audio_core(chanend c_mix_out
|
|||||||
|
|
||||||
void usb_audio_io(chanend c_aud_in, chanend ?c_adc,
|
void usb_audio_io(chanend c_aud_in, chanend ?c_adc,
|
||||||
#ifdef MIXER
|
#ifdef MIXER
|
||||||
chanend c_mix_ctl,
|
chanend c_mix_ctl,
|
||||||
#endif
|
#endif
|
||||||
chanend ?c_aud_cfg,
|
chanend ?c_aud_cfg,
|
||||||
streaming chanend ?c_spdif_rx,
|
streaming chanend ?c_spdif_rx,
|
||||||
chanend ?c_clk_ctl,
|
chanend ?c_clk_ctl,
|
||||||
chanend ?c_clk_int
|
chanend ?c_clk_int
|
||||||
@@ -390,7 +390,7 @@ chanend ?c_clk_int
|
|||||||
thread_speed();
|
thread_speed();
|
||||||
|
|
||||||
clockGen(c_spdif_rx, null, p_pll_clk, c_dig_rx, c_clk_ctl, c_clk_int);
|
clockGen(c_spdif_rx, null, p_pll_clk, c_dig_rx, c_clk_ctl, c_clk_int);
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
//:
|
//:
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ unsigned g_freqChange = 0;
|
|||||||
#if defined (SPDIF_RX) || defined (ADAT_RX)
|
#if defined (SPDIF_RX) || defined (ADAT_RX)
|
||||||
/* When digital Rx enabled we enable an interrupt EP to inform host about changes in clock validity */
|
/* When digital Rx enabled we enable an interrupt EP to inform host about changes in clock validity */
|
||||||
/* Interrupt EP report data */
|
/* Interrupt EP report data */
|
||||||
unsigned char g_intData[8] =
|
unsigned char g_intData[8] =
|
||||||
{
|
{
|
||||||
0, // Class-specific, caused by interface
|
0, // Class-specific, caused by interface
|
||||||
1, // attribute: CUR
|
1, // attribute: CUR
|
||||||
@@ -106,8 +106,8 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in, chanend c_aud
|
|||||||
chanend c_iap,
|
chanend c_iap,
|
||||||
#endif
|
#endif
|
||||||
#if defined(SPDIF_RX) || defined(ADAT_RX)
|
#if defined(SPDIF_RX) || defined(ADAT_RX)
|
||||||
chanend ?c_ep_int,
|
chanend ?c_ep_int,
|
||||||
chanend ?c_clk_int,
|
chanend ?c_clk_int,
|
||||||
#endif
|
#endif
|
||||||
chanend c_sof,
|
chanend c_sof,
|
||||||
chanend c_aud_ctl,
|
chanend c_aud_ctl,
|
||||||
@@ -187,7 +187,7 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in, chanend c_aud
|
|||||||
int iap_expected_data_length = 0;
|
int iap_expected_data_length = 0;
|
||||||
int iap_draining_chan = 0;
|
int iap_draining_chan = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Store EP's to globals so that decouple() can access them */
|
/* Store EP's to globals so that decouple() can access them */
|
||||||
asm("stw %0, dp[aud_from_host_usb_ep]"::"r"(ep_aud_out));
|
asm("stw %0, dp[aud_from_host_usb_ep]"::"r"(ep_aud_out));
|
||||||
asm("stw %0, dp[aud_to_host_usb_ep]"::"r"(ep_aud_in));
|
asm("stw %0, dp[aud_to_host_usb_ep]"::"r"(ep_aud_in));
|
||||||
@@ -233,7 +233,7 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in, chanend c_aud
|
|||||||
case inuint_byref(c_clk_int, u_tmp):
|
case inuint_byref(c_clk_int, u_tmp):
|
||||||
chkct(c_clk_int, XS1_CT_END);
|
chkct(c_clk_int, XS1_CT_END);
|
||||||
|
|
||||||
/* Check if we have interrupt pending.
|
/* Check if we have interrupt pending.
|
||||||
* Note, this his means we can loose interrupts... */
|
* Note, this his means we can loose interrupts... */
|
||||||
if(!g_intFlag)
|
if(!g_intFlag)
|
||||||
{
|
{
|
||||||
@@ -245,7 +245,7 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in, chanend c_aud
|
|||||||
XUD_SetReady_In(ep_int, g_intData, 6);
|
XUD_SetReady_In(ep_int, g_intData, 6);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* Interrupt EP data sent, clear flag */
|
/* Interrupt EP data sent, clear flag */
|
||||||
case XUD_SetData_Select(c_ep_int, ep_int, result):
|
case XUD_SetData_Select(c_ep_int, ep_int, result):
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user