forked from PAWPAW-Mirror/lib_xua
Fixed build issue when NUM_USB_CHAN_IN or NUM_USB_CHAN_OUT set to 0 and MIXER set to 1 (#15096)
This commit is contained in:
@@ -240,6 +240,7 @@ static inline void doI2SClocks(unsigned divide)
|
|||||||
#endif
|
#endif
|
||||||
#else /* ifndef MIXER */
|
#else /* ifndef MIXER */
|
||||||
|
|
||||||
|
#if NUM_USB_CHAN_OUT > 0
|
||||||
if(underflow)
|
if(underflow)
|
||||||
{
|
{
|
||||||
#pragma loop unroll
|
#pragma loop unroll
|
||||||
@@ -260,12 +261,15 @@ static inline void doI2SClocks(unsigned divide)
|
|||||||
samplesOut[i] = tmp;
|
samplesOut[i] = tmp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if NUM_USB_CHAN_IN > 0
|
||||||
#pragma loop unroll
|
#pragma loop unroll
|
||||||
for(int i = 0; i < NUM_USB_CHAN_IN; i++)
|
for(int i = 0; i < NUM_USB_CHAN_IN; i++)
|
||||||
{
|
{
|
||||||
outuint(c_out, samplesIn[i]);
|
outuint(c_out, samplesIn[i]);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -428,7 +432,7 @@ static inline void doI2SClocks(unsigned divide)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#else /* ifndef MIXER */
|
#else /* ifndef MIXER */
|
||||||
|
#if NUM_USB_CHAN_OUT > 0
|
||||||
if(underflow)
|
if(underflow)
|
||||||
{
|
{
|
||||||
for(int i = 0; i < NUM_USB_CHAN_OUT; i++)
|
for(int i = 0; i < NUM_USB_CHAN_OUT; i++)
|
||||||
@@ -448,12 +452,14 @@ static inline void doI2SClocks(unsigned divide)
|
|||||||
samplesOut[i] = tmp;
|
samplesOut[i] = tmp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
#if NUM_USB_CHAN_IN > 0
|
||||||
#pragma loop unroll
|
#pragma loop unroll
|
||||||
for(int i = 0; i < NUM_USB_CHAN_IN; i++)
|
for(int i = 0; i < NUM_USB_CHAN_IN; i++)
|
||||||
{
|
{
|
||||||
outuint(c_out, samplesIn[i]);
|
outuint(c_out, samplesIn[i]);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user