Added defaulting back to PCM when stream stops if was in native DSD mode. Guarded by DEFAULT_TO_PCM and disabled by default.

This commit is contained in:
Ross Owen
2014-01-20 18:17:58 +00:00
parent de3c5b1559
commit 94b98e031b

View File

@@ -253,6 +253,18 @@ void Endpoint0( chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl,
{
case 0:
/* Stream stop */
#if defined(NATIVE_DSD) && defined(DEFAULT_TO_PCM)
/* Default to PCM mode */
if(g_dsdMode)
{
outuint(c_audioControl, SET_DSD_MODE);
outuint(c_audioControl, DSD_MODE_OFF);
/* Handshake */
chkct(c_audioControl, XS1_CT_END);
g_dsdMode = 0;
}
#endif
break;
case 1:
/* Stream active + 0 chans */