VirtualBox

Changeset 87977 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 5, 2021 4:20:05 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
143085
Message:

DevHDA: Set timer frequency hint. bugref:9890

File:
1 edited

Legend:

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

    r87975 r87977  
    695695                                     rc = VERR_INVALID_PARAMETER);
    696696        if (RT_SUCCESS(rc))
     697        {
    697698            rc = RTCircBufCreate(&pStreamR3->State.pCircBuf, cbCircBuf);
     699            if (RT_SUCCESS(rc))
     700            {
     701                /*
     702                 * Forward the timer frequency hint to TM as well for better accuracy on
     703                 * systems w/o preemption timers (also good for 'info timers').
     704                 */
     705                PDMDevHlpTimerSetFrequencyHint(pDevIns, pStreamShared->hTimer, uTransferHz);
     706            }
     707        }
    698708    }
    699709
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