VirtualBox

Changeset 88951 in vbox for trunk/src/VBox/Devices/Audio


Ignore:
Timestamp:
May 8, 2021 11:52:18 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144286
Message:

DevIchAc97: Used the asynchronous I/O facility of the mixer sink. [build fix + register stats] bugref:9890

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DevIchAc97.cpp

    r88950 r88951  
    14131413    PAC97STATER3 const  pThisCC   = PDMDEVINS_2_DATA_CC(pDevIns, PAC97STATER3);
    14141414    PAC97STREAMR3 const pStreamCC = (PAC97STREAMR3)pvUser;
    1415     uintptr_t const     idxStream = pStreamCC - &pThisCC->aStreams[0];
    1416     Assert(pStreamCC->u8SD == idxStream);
    1417     Assert(pSink == ichac97R3IndexToSink(pThisCC, (uint8_t)idxStream));
     1415    Assert(pStreamCC->u8SD == (uintptr_t)(pStreamCC - &pThisCC->aStreams[0]));
     1416    Assert(pSink == ichac97R3IndexToSink(pThisCC, pStreamCC->u8SD));
     1417    RT_NOREF(pThisCC);
    14181418
    14191419    /*
     
    40294029    PDMDevHlpSTAMRegister(pDevIns, &pThis->StatBytesWritten, STAMTYPE_COUNTER, "BytesWritten", STAMUNIT_BYTES,          "Bytes written to AC97 emulation.");
    40304030# endif
     4031    for (unsigned idxStream = 0; idxStream < RT_ELEMENTS(s_apszNames); idxStream++)
     4032    {
     4033        PDMDevHlpSTAMRegisterF(pDevIns, &pThisCC->aStreams[idxStream].State.offRead, STAMTYPE_U64, STAMVISIBILITY_USED, STAMUNIT_BYTES,
     4034                               "Virtual internal buffer read position.",    "Stream%u/offRead", idxStream);
     4035        PDMDevHlpSTAMRegisterF(pDevIns, &pThisCC->aStreams[idxStream].State.offWrite, STAMTYPE_U64, STAMVISIBILITY_USED, STAMUNIT_BYTES,
     4036                               "Virtual internal buffer write position.",   "Stream%u/offWrite", idxStream);
     4037        PDMDevHlpSTAMRegisterF(pDevIns, &pThisCC->aStreams[idxStream].State.StatDmaBufSize, STAMTYPE_U32, STAMVISIBILITY_USED, STAMUNIT_BYTES,
     4038                               "Size of the internal DMA buffer.",  "Stream%u/DMABufSize", idxStream);
     4039        PDMDevHlpSTAMRegisterF(pDevIns, &pThisCC->aStreams[idxStream].State.StatDmaBufUsed, STAMTYPE_U32, STAMVISIBILITY_USED, STAMUNIT_BYTES,
     4040                               "Number of bytes used in the internal DMA buffer.",  "Stream%u/DMABufUsed", idxStream);
     4041
     4042    }
    40314043
    40324044    LogFlowFuncLeaveRC(VINF_SUCCESS);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette