VirtualBox

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


Ignore:
Timestamp:
Mar 17, 2021 5:50:10 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
143315
Message:

DevHDA: DMA schduling fix. bugref:9890

File:
1 edited

Legend:

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

    r88164 r88166  
    19341934        {
    19351935            idxSched += 1;
    1936             if (   idxSched > pStreamShared->State.cSchedule
     1936            if (   idxSched >= pStreamShared->State.cSchedule
    19371937                || idxSched >= RT_ELEMENTS(pStreamShared->State.aSchedule) /*paranoia^2*/)
    19381938            {
     
    19401940                AssertStmt(idxSched < RT_ELEMENTS(pStreamShared->State.aSchedule), idxSched = 0);
    19411941            }
     1942            pStreamShared->State.idxSchedule = idxSched;
    19421943            idxLoop = 0;
    19431944        }
    19441945        pStreamShared->State.idxScheduleLoop = (uint16_t)idxLoop;
    19451946
    1946         /* Do the arcual timer arming. */
     1947        /* Do the actual timer re-arming. */
    19471948        uint64_t const tsNow = PDMDevHlpTimerGet(pDevIns, pStreamShared->hTimer); /* (For virtual sync this remains the same for the whole callout IIRC) */
    19481949        uint64_t const tsTransferNext = tsNow + pStreamShared->State.aSchedule[idxSched].cPeriodTicks;
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