Changeset 89758 in vbox
- Timestamp:
- Jun 16, 2021 11:36:09 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchAc97.cpp
r89756 r89758 404 404 STAMPROFILE StatReset; 405 405 STAMPROFILE StatStop; 406 STAMPROFILE StatReSetUpChanged; 407 STAMPROFILE StatReSetUpSame; 406 408 STAMCOUNTER StatWriteLviRecover; 407 409 STAMCOUNTER StatWriteCr; … … 1961 1963 * 1962 1964 * @returns VBox status code. 1965 * @retval VINF_NO_CHANGE if the streams weren't re-created. 1966 * 1963 1967 * @param pDevIns The device instance. 1964 1968 * @param pThis The shared AC'97 device state (shared). … … 2199 2203 } 2200 2204 else 2205 { 2201 2206 LogFlowFunc(("[SD%RU8] Skipping set-up (unchanged: %s)\n", 2202 2207 pStreamCC->u8SD, PDMAudioStrmCfgToString(&Cfg, szTmp, sizeof(szTmp)))); 2208 rc = VINF_NO_CHANGE; 2209 } 2203 2210 return rc; 2204 2211 } … … 2236 2243 PAC97STREAM pStream, PAC97STREAMR3 pStreamCC, bool fForce) 2237 2244 { 2245 STAM_REL_PROFILE_START_NS(&pStreamCC->State.StatReSetUpChanged, r); 2238 2246 LogFlowFunc(("[SD%RU8]\n", pStream->u8SD)); 2239 2247 Assert(pStream->u8SD == pStreamCC->u8SD); … … 2242 2250 2243 2251 ichac97R3StreamTearDown(pStream); 2244 return ichac97R3StreamSetUp(pDevIns, pThis, pThisCC, pStream, pStreamCC, fForce); 2252 int rc = ichac97R3StreamSetUp(pDevIns, pThis, pThisCC, pStream, pStreamCC, fForce); 2253 if (rc == VINF_NO_CHANGE) 2254 STAM_REL_PROFILE_STOP_NS(&pStreamCC->State.StatReSetUpSame, r); 2255 else 2256 STAM_REL_PROFILE_STOP_NS(&pStreamCC->State.StatReSetUpChanged, r); 2257 return rc; 2245 2258 } 2246 2259 … … 4511 4524 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->aStreams[idxStream].Regs.sr, STAMTYPE_X16, STAMVISIBILITY_ALWAYS, STAMUNIT_NONE, 4512 4525 "Status register (SR).", "Stream%u/reg-SR", idxStream); 4513 PDMDevHlpSTAMRegisterF(pDevIns, &pThisCC->aStreams[idxStream].State.Cfg.Props.uHz, STAMTYPE_U32, STAMVISIBILITY_USED, STAMUNIT_ BYTES,4526 PDMDevHlpSTAMRegisterF(pDevIns, &pThisCC->aStreams[idxStream].State.Cfg.Props.uHz, STAMTYPE_U32, STAMVISIBILITY_USED, STAMUNIT_HZ, 4514 4527 "The stream frequency.", "Stream%u/Hz", idxStream); 4515 4528 PDMDevHlpSTAMRegisterF(pDevIns, &pThisCC->aStreams[idxStream].State.Cfg.Props.cbFrame, STAMTYPE_U8, STAMVISIBILITY_USED, STAMUNIT_BYTES, … … 4542 4555 PDMDevHlpSTAMRegisterF(pDevIns, &pThisCC->aStreams[idxStream].State.StatReset, STAMTYPE_PROFILE, STAMVISIBILITY_USED, STAMUNIT_NS_PER_CALL, 4543 4556 "Resetting the stream.", "Stream%u/Reset", idxStream); 4557 PDMDevHlpSTAMRegisterF(pDevIns, &pThisCC->aStreams[idxStream].State.StatReSetUpChanged, STAMTYPE_PROFILE, STAMVISIBILITY_USED, STAMUNIT_NS_PER_CALL, 4558 "ichac97R3StreamReSetUp when recreating the streams.", "Stream%u/ReSetUp-Change", idxStream); 4559 PDMDevHlpSTAMRegisterF(pDevIns, &pThisCC->aStreams[idxStream].State.StatReSetUpSame, STAMTYPE_PROFILE, STAMVISIBILITY_USED, STAMUNIT_NS_PER_CALL, 4560 "ichac97R3StreamReSetUp when no change.", "Stream%u/ReSetUp-NoChange", idxStream); 4544 4561 PDMDevHlpSTAMRegisterF(pDevIns, &pThisCC->aStreams[idxStream].State.StatWriteCr, STAMTYPE_COUNTER, STAMVISIBILITY_USED, STAMUNIT_OCCURENCES, 4545 4562 "CR register writes.", "Stream%u/WriteCr", idxStream);
Note:
See TracChangeset
for help on using the changeset viewer.