Changeset 89862 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- Jun 23, 2021 2:28:25 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 145319
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevHdaStream.cpp
r89861 r89862 1077 1077 } 1078 1078 1079 1080 #if defined(IN_RING3) || defined(VBOX_HDA_WITH_ON_REG_ACCESS_DMA) 1079 1081 /** 1080 1082 * Updates an HDA stream's current read or write buffer position (depending on the stream type) by … … 1096 1098 { 1097 1099 uint32_t uNewLpid = HDA_STREAM_REG(pThis, LPIB, pStreamShared->u8SD) + cbToAdd; 1098 # if 1 /** @todo r=bird: this is wrong according to the spec */1100 # if 1 /** @todo r=bird: this is wrong according to the spec */ 1099 1101 uNewLpid %= uCBL; 1100 # else1102 # else 1101 1103 /* The spec says it goes to CBL then wraps arpimd to 1, not back to zero. See 3.3.37. */ 1102 1104 if (uNewLpid > uCBL) 1103 1105 uNewLpid %= uCBL; 1104 # endif1106 # endif 1105 1107 hdaStreamSetPositionAbs(pStreamShared, pDevIns, pThis, uNewLpid); 1106 1108 } 1107 1109 } 1108 1110 } 1111 #endif /* IN_RING3 || VBOX_HDA_WITH_ON_REG_ACCESS_DMA */ 1109 1112 1110 1113 #ifdef IN_RING3
Note:
See TracChangeset
for help on using the changeset viewer.