VirtualBox

Ignore:
Timestamp:
Mar 18, 2021 1:38:31 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
143321
Message:

DevHDA: Rewrote the wall clock code to base it on the virtual sync clock with a start offset and holding it back according to DMA progress. Introduced new saved state version. bugref:9890

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DevHDA.h

    r88164 r88170  
    3131#include "HDAStream.h"
    3232#include "HDAStreamMap.h"
    33 #include "HDAStreamPeriod.h"
    3433
    3534#ifdef DEBUG_andy
     
    119118    /** Current IRQ level. */
    120119    uint8_t                 u8IRQL;
    121 #ifdef VBOX_STRICT
    122     /** Wall clock (WALCLK) stale count.
    123      *  This indicates the number of set wall clock values which did not actually
    124      *  move the counter forward (stale). */
    125     uint8_t                 u8WalClkStaleCnt;
    126 #else
    127     uint8_t                 bPadding1;
    128 #endif
    129     uint8_t                 bPadding2;
    130120    /** The device timer Hz rate. Defaults to HDA_TIMER_HZ_DEFAULT. */
    131121    uint16_t                uTimerHz;
     
    139129     *  The actual buffer size in bytes will depend on the actual stream configuration. */
    140130    uint16_t                cbCircBufOutMs;
    141     uint16_t                au16Padding3[3];
    142     /** Last updated wall clock (WALCLK) counter. */
    143     uint64_t                u64WalClk;
     131    /** The start time of the wall clock (WALCLK), measured on the virtual sync clock. */
     132    uint64_t                tsWalClkStart;
    144133    /** The CORB buffer. */
    145134    uint32_t                au32CorbBuf[HDA_CORB_SIZE];
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