- Timestamp:
- Dec 29, 2016 9:33:08 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchAc97.cpp
r65020 r65021 482 482 static void ichac97TimerMaybeStart(PAC97STATE pThis); 483 483 static void ichac97TimerMaybeStop(PAC97STATE pThis); 484 static void ichac97TimerMain(PAC97STATE pThis); 484 485 static DECLCALLBACK(void) ichac97Timer(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser); 485 486 #endif … … 2042 2043 2043 2044 /* Start transfers. */ 2044 ichac97 DoTransfers(pThis);2045 ichac97TimerMain(pThis); 2045 2046 } 2046 2047 … … 2068 2069 2069 2070 /** 2070 * Main routine to perform the actual audio data transfers from the AC'97 streams2071 * to the backend(s) and vice versa.2072 * 2071 * Main routine for the device timer. 2072 * 2073 * @returns IPRT status code. 2073 2074 * @param pThis AC'97 state. 2074 2075 */ 2075 static void ichac97DoTransfers(PAC97STATE pThis) 2076 { 2077 AssertPtrReturnVoid(pThis); 2078 2076 static void ichac97TimerMain(PAC97STATE pThis) 2077 { 2079 2078 STAM_PROFILE_START(&pThis->StatTimer, a); 2080 2079 … … 2087 2086 bool fKickTimer = false; 2088 2087 2089 ichac97StreamUpdate(pThis, &pThis->StreamLineIn); 2090 ichac97StreamUpdate(pThis, &pThis->StreamMicIn); 2091 ichac97StreamUpdate(pThis, &pThis->StreamOut); 2088 ichac97DoTransfers(pThis); 2092 2089 2093 2090 /* Do we need to kick the timer again? */ … … 2112 2109 STAM_PROFILE_STOP(&pThis->StatTimer, a); 2113 2110 } 2114 #endif /* !VBOX_WITH_AUDIO_AC97_CALLBACKS */2115 2111 2116 2112 /** … … 2129 2125 AssertPtr(pThis); 2130 2126 2131 ichac97DoTransfers(pThis); 2127 ichac97TimerMain(pThis); 2128 } 2129 #endif /* !VBOX_WITH_AUDIO_AC97_CALLBACKS */ 2130 2131 /** 2132 * Main routine to perform the actual audio data transfers from the AC'97 streams 2133 * to the backend(s) and vice versa. 2134 * 2135 * @param pThis AC'97 state. 2136 */ 2137 static void ichac97DoTransfers(PAC97STATE pThis) 2138 { 2139 AssertPtrReturnVoid(pThis); 2140 2141 ichac97StreamUpdate(pThis, &pThis->StreamLineIn); 2142 ichac97StreamUpdate(pThis, &pThis->StreamMicIn); 2143 ichac97StreamUpdate(pThis, &pThis->StreamOut); 2132 2144 } 2133 2145
Note:
See TracChangeset
for help on using the changeset viewer.