diff options
Diffstat (limited to 'Mpu401.cpp')
-rw-r--r-- | Mpu401.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -301,7 +301,10 @@ static uint8_t mpuReadStatus(PPDMDEVINS pDevIns) 0 - Data is available for reading 1 - No data is available for reading */ - uint8_t status = 0; + /* All other bits are undefined, but software such as + * NT's sndblst.sys expects them to be read as 1. */ + + uint8_t status = 0xFFU & ~(RT_BIT(6) | RT_BIT(7)); Log7Func(("tx buf=%zu/%zu rx buf=%zu/%zu\n", RTCircBufUsed(pThis->pTxBuf), RTCircBufFree(pThis->pTxBuf), |