Changeset 68021 in vbox
- Timestamp:
- Jul 18, 2017 12:57:19 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 117039
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioMixer.cpp
r67831 r68021 381 381 pSink->pszName, pMixer->pszName), VERR_NOT_FOUND); 382 382 383 LogFlowFunc(("[%s] :pSink=%s, cSinks=%RU8\n",383 LogFlowFunc(("[%s] pSink=%s, cSinks=%RU8\n", 384 384 pMixer->pszName, pSink->pszName, pMixer->cSinks)); 385 385 … … 430 430 memcpy(&pMixer->VolMaster, pVol, sizeof(PDMAUDIOVOLUME)); 431 431 432 LogFlowFunc(("[%s] :lVol=%RU32, rVol=%RU32 => fMuted=%RTbool, lVol=%RU32, rVol=%RU32\n",432 LogFlowFunc(("[%s] lVol=%RU32, rVol=%RU32 => fMuted=%RTbool, lVol=%RU32, rVol=%RU32\n", 433 433 pMixer->pszName, pVol->uLeft, pVol->uRight, 434 434 pMixer->VolMaster.fMuted, pMixer->VolMaster.uLeft, pMixer->VolMaster.uRight)); … … 555 555 } 556 556 557 LogFlowFunc(("[%s] :cStreams=%RU8, rc=%Rrc\n", pSink->pszName, pSink->cStreams, rc));557 LogFlowFunc(("[%s] cStreams=%RU8, rc=%Rrc\n", pSink->pszName, pSink->cStreams, rc)); 558 558 559 559 int rc2 = RTCritSectLeave(&pSink->CritSect); … … 597 597 return rc; 598 598 599 LogFlowFunc(("[%s] :fFlags=0x%x (enmDir=%ld, %RU8 bits, %RU8 channels, %RU32Hz)\n",599 LogFlowFunc(("[%s] fFlags=0x%x (enmDir=%ld, %RU8 bits, %RU8 channels, %RU32Hz)\n", 600 600 pSink->pszName, fFlags, pCfg->enmDir, pCfg->Props.cBits, pCfg->Props.cChannels, pCfg->Props.uHz)); 601 601 … … 734 734 #ifdef LOG_ENABLED 735 735 char *pszStatus = dbgAudioMixerSinkStatusToStr(pSink->fStatus); 736 LogFlowFunc(("[%s] :enmCmd=%d, fStatus=%s, rc=%Rrc\n", pSink->pszName, enmSinkCmd, pszStatus, rc));736 LogFlowFunc(("[%s] enmCmd=%d, fStatus=%s, rc=%Rrc\n", pSink->pszName, enmSinkCmd, pszStatus, rc)); 737 737 RTStrFree(pszStatus); 738 738 #endif … … 1190 1190 pStream->pszName, pSink->pszName), VERR_NOT_FOUND); 1191 1191 1192 LogFlowFunc(("[%s] :(Stream = %s), cStreams=%RU8\n",1192 LogFlowFunc(("[%s] (Stream = %s), cStreams=%RU8\n", 1193 1193 pSink->pszName, pStream->pStream->szName, pSink->cStreams)); 1194 1194 … … 1347 1347 1348 1348 if (pSink->PCMProps.uHz) 1349 LogFlowFunc(("[%s] :Old format: %RU8 bit, %RU8 channels, %RU32Hz\n",1349 LogFlowFunc(("[%s] Old format: %RU8 bit, %RU8 channels, %RU32Hz\n", 1350 1350 pSink->pszName, pSink->PCMProps.cBits, pSink->PCMProps.cChannels, pSink->PCMProps.uHz)); 1351 1351 1352 1352 memcpy(&pSink->PCMProps, pPCMProps, sizeof(PDMAUDIOPCMPROPS)); 1353 1353 1354 LogFlowFunc(("[%s] :New format %RU8 bit, %RU8 channels, %RU32Hz\n",1354 LogFlowFunc(("[%s] New format %RU8 bit, %RU8 channels, %RU32Hz\n", 1355 1355 pSink->pszName, pSink->PCMProps.cBits, pSink->PCMProps.cChannels, pSink->PCMProps.uHz)); 1356 1356 … … 1394 1394 memcpy(&pSink->Volume, pVol, sizeof(PDMAUDIOVOLUME)); 1395 1395 1396 LogFlowFunc(("[%s] :fMuted=%RTbool, lVol=%RU32, rVol=%RU32\n",1396 LogFlowFunc(("[%s] fMuted=%RTbool, lVol=%RU32, rVol=%RU32\n", 1397 1397 pSink->pszName, pSink->Volume.fMuted, pSink->Volume.uLeft, pSink->Volume.uRight)); 1398 1398 -
trunk/src/VBox/Devices/Audio/DevHDA.cpp
r67907 r68021 1022 1022 if (!pStream) 1023 1023 { 1024 LogFunc(("[SD%RU8] :Warning: Changing SDCBL on non-attached stream (0x%x)\n",1024 LogFunc(("[SD%RU8] Warning: Changing SDCBL on non-attached stream (0x%x)\n", 1025 1025 HDA_SD_NUM_FROM_REG(pThis, CTL, iReg), u32Value)); 1026 1026 return hdaRegWriteU32(pThis, iReg, u32Value); … … 1032 1032 AssertRC(rc2); 1033 1033 1034 LogFlowFunc(("[SD%RU8] :CBL=%RU32\n", pStream->u8SD, u32Value));1034 LogFlowFunc(("[SD%RU8] CBL=%RU32\n", pStream->u8SD, u32Value)); 1035 1035 1036 1036 return VINF_SUCCESS; /* Always return success to the MMIO handler. */ … … 1059 1059 uint8_t uSD = HDA_SD_NUM_FROM_REG(pThis, CTL, iReg); 1060 1060 1061 LogFunc(("[SD%RU8] :fRun=%RTbool, fInRun=%RTbool, fReset=%RTbool, fInReset=%RTbool, %R[sdctl]\n",1061 LogFunc(("[SD%RU8] fRun=%RTbool, fInRun=%RTbool, fReset=%RTbool, fInReset=%RTbool, %R[sdctl]\n", 1062 1062 uSD, fRun, fInRun, fReset, fInReset, u32Value)); 1063 1063 … … 1072 1072 if (uTag > HDA_MAX_TAGS) 1073 1073 { 1074 LogFunc(("[SD%RU8] :Warning: Invalid stream tag %RU8 specified!\n", uSD, uTag));1074 LogFunc(("[SD%RU8] Warning: Invalid stream tag %RU8 specified!\n", uSD, uTag)); 1075 1075 return hdaRegWriteU24(pThis, iReg, u32Value); 1076 1076 } … … 1079 1079 AssertPtr(pTag); 1080 1080 1081 LogFunc(("[SD%RU8] :Using stream tag=%RU8\n", uSD, uTag));1081 LogFunc(("[SD%RU8] Using stream tag=%RU8\n", uSD, uTag)); 1082 1082 1083 1083 /* Assign new values. */ … … 1099 1099 HDA_STREAM_REG(pThis, CTL, uSD) &= ~HDA_SDCTL_SRST; 1100 1100 1101 LogFunc(("[SD%RU8] :Reset exit\n", uSD));1101 LogFunc(("[SD%RU8] Reset exit\n", uSD)); 1102 1102 } 1103 1103 else if (fReset) … … 1106 1106 Assert(!fInRun && !fRun); 1107 1107 1108 LogFunc(("[SD%RU8] :Reset enter\n", pStream->u8SD));1108 LogFunc(("[SD%RU8] Reset enter\n", pStream->u8SD)); 1109 1109 1110 1110 hdaStreamLock(pStream); … … 1129 1129 { 1130 1130 Assert(!fReset && !fInReset); 1131 LogFunc(("[SD%RU8] :State changed (fRun=%RTbool)\n", pStream->u8SD, fRun));1131 LogFunc(("[SD%RU8] State changed (fRun=%RTbool)\n", pStream->u8SD, fRun)); 1132 1132 1133 1133 hdaStreamLock(pStream); … … 1195 1195 if (!pStream) 1196 1196 { 1197 AssertMsgFailed(("[SD%RU8] :Warning: Writing SDSTS on non-attached stream (0x%x)\n",1197 AssertMsgFailed(("[SD%RU8] Warning: Writing SDSTS on non-attached stream (0x%x)\n", 1198 1198 HDA_SD_NUM_FROM_REG(pThis, STS, iReg), u32Value)); 1199 1199 return hdaRegWriteU16(pThis, iReg, u32Value); … … 1257 1257 if (!pStream) 1258 1258 { 1259 AssertMsgFailed(("[SD%RU8] :Warning: Changing SDLVI on non-attached stream (0x%x)\n", uSD, u32Value));1259 AssertMsgFailed(("[SD%RU8] Warning: Changing SDLVI on non-attached stream (0x%x)\n", uSD, u32Value)); 1260 1260 return hdaRegWriteU16(pThis, iReg, u32Value); 1261 1261 } … … 1263 1263 /** @todo Validate LVI. */ 1264 1264 pStream->u16LVI = u32Value; 1265 LogFunc(("[SD%RU8] :Updating LVI to %RU16\n", uSD, pStream->u16LVI));1265 LogFunc(("[SD%RU8] Updating LVI to %RU16\n", uSD, pStream->u16LVI)); 1266 1266 1267 1267 # ifdef HDA_USE_DMA_ACCESS_HANDLER … … 1299 1299 if (!pStream) 1300 1300 { 1301 AssertMsgFailed(("[SD%RU8] :Warning: Changing FIFOW on non-attached stream (0x%x)\n", uSD, u32Value));1301 AssertMsgFailed(("[SD%RU8] Warning: Changing FIFOW on non-attached stream (0x%x)\n", uSD, u32Value)); 1302 1302 return hdaRegWriteU16(pThis, iReg, u32Value); 1303 1303 } … … 1323 1323 { 1324 1324 pStream->u16FIFOW = hdaSDFIFOWToBytes(u32FIFOW); 1325 LogFunc(("[SD%RU8] :Updating FIFOW to %RU32 bytes\n", uSD, pStream->u16FIFOW));1325 LogFunc(("[SD%RU8] Updating FIFOW to %RU32 bytes\n", uSD, pStream->u16FIFOW)); 1326 1326 1327 1327 int rc2 = hdaRegWriteU16(pThis, iReg, u32FIFOW); … … 1353 1353 if (!pStream) 1354 1354 { 1355 AssertMsgFailed(("[SD%RU8] :Warning: Changing FIFOS on non-attached stream (0x%x)\n", uSD, u32Value));1355 AssertMsgFailed(("[SD%RU8] Warning: Changing FIFOS on non-attached stream (0x%x)\n", uSD, u32Value)); 1356 1356 return hdaRegWriteU16(pThis, iReg, u32Value); 1357 1357 } … … 1381 1381 { 1382 1382 pStream->u16FIFOS = u32FIFOS + 1; 1383 LogFunc(("[SD%RU8] :Updating FIFOS to %RU32 bytes\n", uSD, pStream->u16FIFOS));1383 LogFunc(("[SD%RU8] Updating FIFOS to %RU32 bytes\n", uSD, pStream->u16FIFOS)); 1384 1384 1385 1385 int rc2 = hdaRegWriteU16(pThis, iReg, u32FIFOS); … … 1637 1637 if (!pStream) 1638 1638 { 1639 LogFunc(("[SD%RU8] :Warning: Changing SDFMT on non-attached stream (0x%x)\n",1639 LogFunc(("[SD%RU8] Warning: Changing SDFMT on non-attached stream (0x%x)\n", 1640 1640 HDA_SD_NUM_FROM_REG(pThis, FMT, iReg), u32Value)); 1641 1641 return hdaRegWriteU16(pThis, iReg, u32Value); … … 1694 1694 # endif 1695 1695 1696 LogFlowFunc(("[SD%RU8] :BDLBase=0x%x\n", pStream->u8SD, pStream->u64BDLBase));1696 LogFlowFunc(("[SD%RU8] BDLBase=0x%x\n", pStream->u8SD, pStream->u64BDLBase)); 1697 1697 1698 1698 return VINF_SUCCESS; /* Always return success to the MMIO handler. */ -
trunk/src/VBox/Devices/Audio/DevIchAc97.cpp
r67930 r68021 695 695 #endif 696 696 697 LogFunc(("[SD%RU8] :cStreamsActive=%RU8, rc=%Rrc\n", pStream->u8SD, pThis->cStreamsActive, rc));697 LogFunc(("[SD%RU8] cStreamsActive=%RU8, rc=%Rrc\n", pStream->u8SD, pThis->cStreamsActive, rc)); 698 698 return rc; 699 699 } … … 996 996 RTThreadUserSignal(hThreadSelf); 997 997 998 LogFunc(("[SD%RU8] :Started\n", pStream->u8SD));998 LogFunc(("[SD%RU8] Started\n", pStream->u8SD)); 999 999 1000 1000 for (;;) 1001 1001 { 1002 Log2Func(("[SD%RU8] :Waiting ...\n", pStream->u8SD));1002 Log2Func(("[SD%RU8] Waiting ...\n", pStream->u8SD)); 1003 1003 1004 1004 int rc2 = RTSemEventWait(pAIO->Event, RT_INDEFINITE_WAIT); … … 1057 1057 } 1058 1058 1059 LogFunc(("[SD%RU8] :Ended\n", pStream->u8SD));1059 LogFunc(("[SD%RU8] Ended\n", pStream->u8SD)); 1060 1060 1061 1061 ASMAtomicXchgBool(&pAIO->fStarted, false); … … 1102 1102 rc = VINF_SUCCESS; 1103 1103 1104 LogFunc(("[SD%RU8] :Returning %Rrc\n", pStream->u8SD, rc));1104 LogFunc(("[SD%RU8] Returning %Rrc\n", pStream->u8SD, rc)); 1105 1105 return rc; 1106 1106 } … … 1142 1142 } 1143 1143 1144 LogFunc(("[SD%RU8] :Returning %Rrc\n", pStream->u8SD, rc));1144 LogFunc(("[SD%RU8] Returning %Rrc\n", pStream->u8SD, rc)); 1145 1145 return rc; 1146 1146 } … … 2330 2330 } 2331 2331 2332 LogFlowFunc(("[SD%RU8] :cbChunk=%RU32, cbLeft=%RU32, cbTotal=%RU32, rc=%Rrc\n",2332 LogFlowFunc(("[SD%RU8] cbChunk=%RU32, cbLeft=%RU32, cbTotal=%RU32, rc=%Rrc\n", 2333 2333 pStream->u8SD, cbChunk, cbLeft, cbProcessedTotal, rc)); 2334 2334
Note:
See TracChangeset
for help on using the changeset viewer.