Changeset 81182 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- Oct 9, 2019 12:11:53 PM (5 years ago)
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevHDA.cpp
r81181 r81182 1313 1313 LogFunc(("[SD%RU8] Warning: Invalid stream tag %RU8 specified!\n", uSD, uTag)); 1314 1314 1315 int rc = hdaRegWriteU24(pDevIns, pThis, iReg, u32Value);1316 1315 DEVHDA_UNLOCK_BOTH(pDevIns, pThis, uSD); 1317 return rc;1316 return VINF_SUCCESS; /* Always return success to the MMIO handler. */ 1318 1317 } 1319 1318 1320 1319 PHDASTREAM pStream = hdaGetStreamFromSD(pThis, uSD); 1321 AssertPtr(pStream); 1320 if (!pStream) 1321 { 1322 ASSERT_GUEST_LOGREL_MSG_FAILED(("Guest tried writing SDCTL (0x%x) to unhandled stream #%RU8\n", u32Value, uSD)); 1323 1324 DEVHDA_UNLOCK_BOTH(pDevIns, pThis, uSD); 1325 return VINF_SUCCESS; /* Always return success to the MMIO handler. */ 1326 } 1322 1327 1323 1328 if (fInReset) … … 1487 1492 if (!pStream) 1488 1493 { 1489 AssertMsgFailed(("[SD%RU8] Warning: Writing SDSTS on non-attached stream (0x%x)\n", 1490 HDA_SD_NUM_FROM_REG(pThis, STS, iReg), u32Value)); 1491 1492 int rc = hdaRegWriteU16(pDevIns, pThis, iReg, u32Value); 1494 ASSERT_GUEST_LOGREL_MSG_FAILED(("Guest tried writing SDSTS (0x%x) to unhandled stream #%RU8\n", u32Value, uSD)); 1493 1495 DEVHDA_UNLOCK_BOTH(pDevIns, pThis, uSD); 1494 return rc;1496 return VINF_SUCCESS; /* Always return success to the MMIO handler. */ 1495 1497 } 1496 1498 … … 1649 1651 if (!pStream) 1650 1652 { 1651 AssertMsgFailed(("[SD%RU8] Warning: Changing FIFOW on non-attached stream (0x%x)\n", uSD, u32Value));1652 1653 int rc = hdaRegWriteU16(pDevIns, pThis, iReg, u32Value);1654 1653 DEVHDA_UNLOCK(pDevIns, pThis); 1655 return rc;1654 return VINF_SUCCESS; /* Always return success to the MMIO handler. */ 1656 1655 } 1657 1656 … … 1666 1665 break; 1667 1666 default: 1668 ASSERT_GUEST_LOGREL_MSG_FAILED(("Guest tried writ eunsupported FIFOW (0x%x) to stream #%RU8, defaulting to 32 bytes\n",1667 ASSERT_GUEST_LOGREL_MSG_FAILED(("Guest tried writing unsupported FIFOW (0x%x) to stream #%RU8, defaulting to 32 bytes\n", 1669 1668 u32Value, uSD)); 1670 1669 u32FIFOW = HDA_SDFIFOW_32B; … … 1696 1695 if (hdaGetDirFromSD(uSD) != PDMAUDIODIR_OUT) /* FIFOS for output streams only. */ 1697 1696 { 1698 LogRel(("HDA: Warning: Guest tried to write read-only FIFOS to input stream #%RU8, ignoring\n", uSD)); 1699 1697 ASSERT_GUEST_LOGREL_MSG_FAILED(("Guest tried writing read-only FIFOS to input stream #%RU8, ignoring\n", uSD)); 1700 1698 DEVHDA_UNLOCK(pDevIns, pThis); 1701 1699 return VINF_SUCCESS; … … 1716 1714 1717 1715 default: 1718 ASSERT_GUEST_LOGREL_MSG_FAILED(("Guest tried writ eunsupported FIFOS (0x%x) to stream #%RU8, defaulting to 192 bytes\n",1716 ASSERT_GUEST_LOGREL_MSG_FAILED(("Guest tried writing unsupported FIFOS (0x%x) to stream #%RU8, defaulting to 192 bytes\n", 1719 1717 u32Value, uSD)); 1720 1718 u32FIFOS = HDA_SDOFIFO_192B; -
trunk/src/VBox/Devices/Audio/DevHDACommon.cpp
r80692 r81182 22 22 #include <iprt/assert.h> 23 23 #include <iprt/errcore.h> 24 25 #include <VBox/AssertGuest.h> 24 26 25 27 #define LOG_GROUP LOG_GROUP_DEV_HDA … … 259 261 if (uSD >= HDA_MAX_STREAMS) 260 262 { 261 A ssertMsgFailed(("Invalid / non-handled SD%RU8\n", uSD));263 ASSERT_GUEST_LOGREL_MSG_FAILED(("Stream #%RU8 is invalid\n", uSD)); 262 264 return NULL; 263 265 } -
trunk/src/VBox/Devices/Audio/HDACodec.cpp
r76553 r81182 24 24 *********************************************************************************************************************************/ 25 25 #define LOG_GROUP LOG_GROUP_DEV_HDA_CODEC 26 #include <VBox/AssertGuest.h> 26 27 #include <VBox/vmm/pdmdev.h> 27 28 #include <VBox/vmm/pdmaudioifs.h> … … 2368 2369 LogFlowFunc(("[NID0x%02x] Setting to stream ID=%RU8, channel=%RU8\n", 2369 2370 CODEC_NID(cmd), uSD, uChannel)); 2371 2372 ASSERT_GUEST_LOGREL_MSG_RETURN(uSD < HDA_MAX_STREAMS, 2373 ("Setting stream ID #%RU8 is invalid\n", uSD), VERR_INVALID_PARAMETER); 2370 2374 2371 2375 PDMAUDIODIR enmDir;
Note:
See TracChangeset
for help on using the changeset viewer.