VirtualBox

Changeset 70436 in vbox


Ignore:
Timestamp:
Jan 2, 2018 4:56:54 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
120041
Message:

Audio/HDA: Only re-arm the timer in hdaWriteRegSDSTS() if there were pending transfer interrupts left -- it could happen that we land in here if a guest writes to SDnSTS unconditionally.

File:
1 edited

Legend:

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

    r70435 r70436  
    15601560        pStream->State.tsTransferNext      = tsNow + cTicksToNext;
    15611561
     1562        /* Only re-arm the timer if there were pending transfer interrupts left
     1563         *  -- it could happen that we land in here if a guest writes to SDnSTS
     1564         * unconditionally. */
    15621565        if (pStream->State.cTransferPendingInterrupts)
     1566        {
    15631567            pStream->State.cTransferPendingInterrupts--;
    15641568
    1565         /* Re-arm the timer. */
    1566         hdaTimerSet(pThis, tsNow + cTicksToNext, false /* fForce */);
     1569            /* Re-arm the timer. */
     1570            hdaTimerSet(pThis, tsNow + cTicksToNext, false /* fForce */);
     1571        }
    15671572    }
    15681573
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