VirtualBox

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


Ignore:
Timestamp:
Aug 14, 2018 11:40:23 AM (6 years ago)
Author:
vboxsync
Message:

Audio/AC97: Added timestamps (in ns) for last transfers / reads/writes.

File:
1 edited

Legend:

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

    r73647 r73648  
    318318    AC97STREAMSTATEAIO    AIO;
    319319#endif
     320    /** Timestamp (in ns) of last DMA transfer.
     321     *  For output streams this is the last DMA read,
     322     *  for input streams this is the last DMA write. */
     323    uint64_t              tsLastTransferNs;
     324    /** Timestamp (in ns) of last DMA buffer read / write. */
     325    uint64_t              tsLastReadWriteNs;
    320326} AC97STREAMSTATE;
    321327AssertCompileSizeAlignment(AC97STREAMSTATE, 8);
     
    11151121    RTCircBufReleaseWriteBlock(pCircBuf, cbRead);
    11161122
     1123    pDstStream->State.tsLastReadWriteNs = RTTimeNanoTS();
     1124
    11171125    if (pcbWritten)
    11181126        *pcbWritten = cbRead;
     
    11821190            break;
    11831191    }
     1192
     1193    pSrcStream->State.tsLastReadWriteNs = RTTimeNanoTS();
    11841194
    11851195    if (pcbRead)
     
    26832693        }
    26842694    }
     2695
     2696    pStream->State.tsLastTransferNs = RTTimeNanoTS();
    26852697
    26862698    ichac97R3StreamUnlock(pStream);
Note: See TracChangeset for help on using the changeset viewer.

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