VirtualBox

Changeset 82325 in vbox for trunk/src/VBox/Devices/Audio


Ignore:
Timestamp:
Dec 2, 2019 2:57:29 PM (5 years ago)
Author:
vboxsync
Message:

DevIchAc97: ichac97TimerSet isn't used from ring-0, so make it ring-3 only (would've been obvious if declared 'static' earlier as it should've been). bugref:9218

File:
1 edited

Legend:

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

    r82324 r82325  
    651651static void               ichac97R3BDLEDumpAll(PAC97STATE pThis, uint64_t u64BDLBase, uint16_t cBDLE);
    652652# endif
     653static bool               ichac97R3TimerSet(PPDMDEVINS pDevIns, PAC97STATE pThis, PAC97STREAM pStream, uint64_t tsExpire, bool fForce);
    653654#endif /* IN_RING3 */
    654 static bool               ichac97TimerSet(PPDMDEVINS pDevIns, PAC97STATE pThis, PAC97STREAM pStream, uint64_t tsExpire, bool fForce);
    655655
    656656static void ichac97WarmReset(PAC97STATE pThis)
     
    26072607        ichac97R3StreamTransferUpdate(pDevIns, pThis, pStream, pStream->Regs.picb << 1); /** @todo r=andy Assumes 16-bit samples. */
    26082608
    2609         ichac97TimerSet(pDevIns, pThis, pStream,
     2609        ichac97R3TimerSet(pDevIns, pThis, pStream,
    26102610                          PDMDevHlpTimerGet(pDevIns, RT_SAFE_SUBSCRIPT8(pThis->ahTimers, pStream->u8SD))
    26112611                        + pStream->State.cTransferTicks,
     
    26162616}
    26172617
    2618 #endif /* IN_RING3 */
    26192618
    26202619/**
     
    26372636 *          Forcing a new expiration time will override the above mechanism.
    26382637 */
    2639 static bool ichac97TimerSet(PPDMDEVINS pDevIns, PAC97STATE pThis, PAC97STREAM pStream, uint64_t tsExpire, bool fForce)
     2638static bool ichac97R3TimerSet(PPDMDEVINS pDevIns, PAC97STATE pThis, PAC97STREAM pStream, uint64_t tsExpire, bool fForce)
    26402639{
    26412640    AssertPtrReturn(pThis, false);
     
    26612660}
    26622661
    2663 #ifdef IN_RING3
    26642662
    26652663/**
     
    31493147                            /* Arm the timer for this stream. */
    31503148                            /** @todo r=bird: This function returns bool, not VBox status! */
    3151                             int rc2 = ichac97TimerSet(pDevIns, pThis, pStream,
     3149                            int rc2 = ichac97R3TimerSet(pDevIns, pThis, pStream,
    31523150                                                        PDMDevHlpTimerGet(pDevIns, RT_SAFE_SUBSCRIPT8(pThis->ahTimers,
    31533151                                                                                                      pStream->u8SD))
     
    36473645            /* Re-arm the timer for this stream. */
    36483646            /** @todo r=bird: This function returns bool, not VBox status! */
    3649             rc2 = ichac97TimerSet(pDevIns, pThis, pStream,
     3647            rc2 = ichac97R3TimerSet(pDevIns, pThis, pStream,
    36503648                                    PDMDevHlpTimerGet(pDevIns, RT_SAFE_SUBSCRIPT8(pThis->ahTimers, pStream->u8SD))
    36513649                                  + pStream->State.cTransferTicks,
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