forked from PAWPAW-Mirror/lib_xua
Opts for fitting beclear
This commit is contained in:
@@ -305,6 +305,7 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in,
|
||||
{
|
||||
unsigned cmd = inuint(c_aud_ctl);
|
||||
|
||||
#if MAX_FREQ != MIN_FREQ
|
||||
if(cmd == SET_SAMPLE_FREQ)
|
||||
{
|
||||
unsigned receivedSampleFreq = inuint(c_aud_ctl);
|
||||
@@ -344,7 +345,10 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in,
|
||||
* handshake elsewhere */
|
||||
SET_SHARED_GLOBAL(g_freqChange_sampFreq, receivedSampleFreq);
|
||||
}
|
||||
else if(cmd == SET_STREAM_FORMAT_IN)
|
||||
else
|
||||
#endif
|
||||
#if (AUDIO_CLASS == 2)
|
||||
if(cmd == SET_STREAM_FORMAT_IN)
|
||||
{
|
||||
unsigned formatChange_DataFormat = inuint(c_aud_ctl);
|
||||
unsigned formatChange_NumChans = inuint(c_aud_ctl);
|
||||
@@ -356,8 +360,10 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in,
|
||||
SET_SHARED_GLOBAL(g_formatChange_DataFormat, formatChange_DataFormat);
|
||||
SET_SHARED_GLOBAL(g_formatChange_SampRes, formatChange_SampRes);
|
||||
}
|
||||
/* FIXME when FB EP is enabled there is no inital XUD_SetReady */
|
||||
else if (cmd == SET_STREAM_FORMAT_OUT)
|
||||
{
|
||||
|
||||
XUD_BusSpeed_t busSpeed;
|
||||
unsigned formatChange_DataFormat = inuint(c_aud_ctl);
|
||||
unsigned formatChange_NumChans = inuint(c_aud_ctl);
|
||||
@@ -385,6 +391,7 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in,
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
/* Pass on sample freq change to decouple() via global flag (saves a chanend) */
|
||||
/* Note: freqChange flags now used to communicate other commands also */
|
||||
SET_SHARED_GLOBAL0(g_freqChange, cmd); /* Set command */
|
||||
|
||||
Reference in New Issue
Block a user