VirtualBox

Changeset 65021 in vbox for trunk


Ignore:
Timestamp:
Dec 29, 2016 9:33:08 AM (8 years ago)
Author:
vboxsync
Message:

Audio/DevIchAc97.cpp: Split out the device timer's main code into ichac97TimerMain().

File:
1 edited

Legend:

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

    r65020 r65021  
    482482static void               ichac97TimerMaybeStart(PAC97STATE pThis);
    483483static void               ichac97TimerMaybeStop(PAC97STATE pThis);
     484static void               ichac97TimerMain(PAC97STATE pThis);
    484485static DECLCALLBACK(void) ichac97Timer(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser);
    485486#endif
     
    20422043
    20432044    /* Start transfers. */
    2044     ichac97DoTransfers(pThis);
     2045    ichac97TimerMain(pThis);
    20452046}
    20462047
     
    20682069
    20692070/**
    2070  * Main routine to perform the actual audio data transfers from the AC'97 streams
    2071  * to the backend(s) and vice versa.
    2072  *
     2071 * Main routine for the device timer.
     2072 *
     2073 * @returns IPRT status code.
    20732074 * @param   pThis               AC'97 state.
    20742075 */
    2075 static void ichac97DoTransfers(PAC97STATE pThis)
    2076 {
    2077     AssertPtrReturnVoid(pThis);
    2078 
     2076static void ichac97TimerMain(PAC97STATE pThis)
     2077{
    20792078    STAM_PROFILE_START(&pThis->StatTimer, a);
    20802079
     
    20872086    bool fKickTimer = false;
    20882087
    2089     ichac97StreamUpdate(pThis, &pThis->StreamLineIn);
    2090     ichac97StreamUpdate(pThis, &pThis->StreamMicIn);
    2091     ichac97StreamUpdate(pThis, &pThis->StreamOut);
     2088    ichac97DoTransfers(pThis);
    20922089
    20932090    /* Do we need to kick the timer again? */
     
    21122109    STAM_PROFILE_STOP(&pThis->StatTimer, a);
    21132110}
    2114 #endif /* !VBOX_WITH_AUDIO_AC97_CALLBACKS */
    21152111
    21162112/**
     
    21292125    AssertPtr(pThis);
    21302126
    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 */
     2137static void ichac97DoTransfers(PAC97STATE pThis)
     2138{
     2139    AssertPtrReturnVoid(pThis);
     2140
     2141    ichac97StreamUpdate(pThis, &pThis->StreamLineIn);
     2142    ichac97StreamUpdate(pThis, &pThis->StreamMicIn);
     2143    ichac97StreamUpdate(pThis, &pThis->StreamOut);
    21322144}
    21332145
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