Changeset 34824 in vbox
- Timestamp:
- Dec 8, 2010 10:31:22 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchIntelHDA.cpp
r34819 r34824 26 26 #include <iprt/mem.h> 27 27 #include <iprt/asm.h> 28 #include <iprt/asm-math.h> 28 29 29 30 #include "../Builtins.h" … … 1002 1003 DECLCALLBACK(int)hdaRegReadWALCLK(INTELHDLinkState* pState, uint32_t offset, uint32_t index, uint32_t *pu32Value) 1003 1004 { 1004 *pu32Value = (uint32_t) ((RTTimeNanoTS() - pState->u64BaseTS) * 24) / 100;1005 *pu32Value = (uint32_t)ASMMultU64ByU32DivByU32(PDMDevHlpTMTimeVirtGetNano(ICH6_HDASTATE_2_DEVINS(pState) - pState->u64BaseTS), 24, 1000); 1005 1006 return VINF_SUCCESS; 1006 1007 } … … 1947 1948 pThis->hda.pu64RirbBuf = (uint64_t *)RTMemAllocZ(pThis->hda.cbRirbBuf); 1948 1949 1949 pThis->hda.u64BaseTS = RTTimeNanoTS();1950 pThis->hda.u64BaseTS = PDMDevHlpTMTimeVirtGetNano(pDevIns); 1950 1951 1951 1952 #if 0
Note:
See TracChangeset
for help on using the changeset viewer.