forked from PAWPAW-Mirror/lib_xua
Partially undid removal of SR change code when MIN_FREQ=MAX_FREQ. DFU currently uses the SR change code to operate.
This commit is contained in:
@@ -718,7 +718,6 @@ void decouple(chanend c_mix_out
|
|||||||
/* Check for freq change or other update */
|
/* Check for freq change or other update */
|
||||||
|
|
||||||
GET_SHARED_GLOBAL(tmp, g_freqChange_flag);
|
GET_SHARED_GLOBAL(tmp, g_freqChange_flag);
|
||||||
#if (MIN_FREQ != MAX_FREQ)
|
|
||||||
if (tmp == SET_SAMPLE_FREQ)
|
if (tmp == SET_SAMPLE_FREQ)
|
||||||
{
|
{
|
||||||
SET_SHARED_GLOBAL(g_freqChange_flag, 0);
|
SET_SHARED_GLOBAL(g_freqChange_flag, 0);
|
||||||
@@ -765,7 +764,6 @@ void decouple(chanend c_mix_out
|
|||||||
speedRem = 0;
|
speedRem = 0;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
#if (AUDIO_CLASS == 2)
|
#if (AUDIO_CLASS == 2)
|
||||||
#if (MIN_FREQ != MAX_FREQ)
|
#if (MIN_FREQ != MAX_FREQ)
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -312,11 +312,11 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in,
|
|||||||
{
|
{
|
||||||
unsigned cmd = inuint(c_aud_ctl);
|
unsigned cmd = inuint(c_aud_ctl);
|
||||||
|
|
||||||
#if (MAX_FREQ != MIN_FREQ)
|
|
||||||
if(cmd == SET_SAMPLE_FREQ)
|
if(cmd == SET_SAMPLE_FREQ)
|
||||||
{
|
{
|
||||||
unsigned receivedSampleFreq = inuint(c_aud_ctl);
|
unsigned receivedSampleFreq = inuint(c_aud_ctl);
|
||||||
|
|
||||||
|
#if (MAX_FREQ != MIN_FREQ)
|
||||||
/* Don't update things for DFU command.. */
|
/* Don't update things for DFU command.. */
|
||||||
if(receivedSampleFreq != AUDIO_STOP_FOR_DFU)
|
if(receivedSampleFreq != AUDIO_STOP_FOR_DFU)
|
||||||
{
|
{
|
||||||
@@ -347,13 +347,13 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in,
|
|||||||
masterClockFreq = MCLK_441;
|
masterClockFreq = MCLK_441;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
/* Ideally we want to wait for handshake (and pass back up) here. But we cannot keep this
|
/* Ideally we want to wait for handshake (and pass back up) here. But we cannot keep this
|
||||||
* core locked, it must stay responsive to packets (MIDI etc) and SOFs. So, set a flag and check for
|
* core locked, it must stay responsive to packets (MIDI etc) and SOFs. So, set a flag and check for
|
||||||
* handshake elsewhere */
|
* handshake elsewhere */
|
||||||
SET_SHARED_GLOBAL(g_freqChange_sampFreq, receivedSampleFreq);
|
SET_SHARED_GLOBAL(g_freqChange_sampFreq, receivedSampleFreq);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
|
||||||
#if (AUDIO_CLASS == 2)
|
#if (AUDIO_CLASS == 2)
|
||||||
if(cmd == SET_STREAM_FORMAT_IN)
|
if(cmd == SET_STREAM_FORMAT_IN)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user