VirtualBox

Ignore:
Timestamp:
Aug 9, 2016 2:47:20 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109837
Message:

DrvIchHda.cpp: Disabled a surprising number of unused functions.

File:
1 edited

Legend:

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

    r63016 r63210  
    881881*********************************************************************************************************************************/
    882882#ifndef VBOX_DEVICE_STRUCT_TESTCASE
     883#ifdef IN_RING3
    883884static FNPDMDEVRESET hdaReset;
     885#endif
    884886
    885887/** @name Register read/write stubs.
     
    897899static int hdaRegReadLPIB(PHDASTATE pThis, uint32_t iReg, uint32_t *pu32Value);
    898900static int hdaRegReadWALCLK(PHDASTATE pThis, uint32_t iReg, uint32_t *pu32Value);
    899 static int hdaRegReadSSYNC(PHDASTATE pThis, uint32_t iReg, uint32_t *pu32Value);
    900 static int hdaRegWriteSSYNC(PHDASTATE pThis, uint32_t iReg, uint32_t u32Value);
    901 static int hdaRegWriteINTSTS(PHDASTATE pThis, uint32_t iReg, uint32_t u32Value);
     901//static int hdaRegReadSSYNC(PHDASTATE pThis, uint32_t iReg, uint32_t *pu32Value); - unused
     902//static int hdaRegWriteSSYNC(PHDASTATE pThis, uint32_t iReg, uint32_t u32Value);  - unused
     903//static int hdaRegWriteINTSTS(PHDASTATE pThis, uint32_t iReg, uint32_t u32Value); - implementation not found.
    902904static int hdaRegWriteCORBWP(PHDASTATE pThis, uint32_t iReg, uint32_t u32Value);
    903905static int hdaRegWriteCORBRP(PHDASTATE pThis, uint32_t iReg, uint32_t u32Value);
     
    919921static int       hdaRegWriteSDSTS(PHDASTATE pThis, uint32_t iReg, uint32_t u32Value);
    920922static int       hdaRegWriteSDLVI(PHDASTATE pThis, uint32_t iReg, uint32_t u32Value);
    921 static int       hdaRegWriteSDFIFOW(PHDASTATE pThis, uint32_t iReg, uint32_t u32Value);
    922 static int       hdaRegWriteSDFIFOS(PHDASTATE pThis, uint32_t iReg, uint32_t u32Value);
     923//static int       hdaRegWriteSDFIFOW(PHDASTATE pThis, uint32_t iReg, uint32_t u32Value); - unused
     924//static int       hdaRegWriteSDFIFOS(PHDASTATE pThis, uint32_t iReg, uint32_t u32Value); - unused
    923925static int       hdaRegWriteSDFMT(PHDASTATE pThis, uint32_t iReg, uint32_t u32Value);
    924926static int       hdaRegWriteSDBDPL(PHDASTATE pThis, uint32_t iReg, uint32_t u32Value);
     
    927929
    928930/* Locking + logging. */
     931#ifdef IN_RING3
    929932DECLINLINE(int)  hdaRegWriteSDLock(PHDASTATE pThis, PHDASTREAM pStream, uint32_t iReg, uint32_t u32Value);
    930933DECLINLINE(void) hdaRegWriteSDUnlock(PHDASTREAM pStream);
     934#endif
    931935
    932936/** @name Generic register read/write functions.
     
    946950static void hdaStreamDestroy(PHDASTREAM pStream);
    947951static int hdaStreamSetActive(PHDASTATE pThis, PHDASTREAM pStream, bool fActive);
    948 static int hdaStreamStart(PHDASTREAM pStream);
     952//static int hdaStreamStart(PHDASTREAM pStream); - unused
    949953static int hdaStreamStop(PHDASTREAM pStream);
    950 static int hdaStreamWaitForStateChange(PHDASTREAM pStream, RTMSINTERVAL msTimeout);
     954/*static int hdaStreamWaitForStateChange(PHDASTREAM pStream, RTMSINTERVAL msTimeout); - currently unused */
    951955static int hdaTransfer(PHDASTATE pThis, PHDASTREAM pStream, uint32_t cbToProcess, uint32_t *pcbProcessed);
    952956#endif
     
    970974 * Timer routines.
    971975 */
    972 #ifndef VBOX_WITH_AUDIO_CALLBACKS
     976#if !defined(VBOX_WITH_AUDIO_CALLBACKS) && defined(IN_RING3)
    973977static void hdaTimerMaybeStart(PHDASTATE pThis);
    974978static void hdaTimerMaybeStop(PHDASTATE pThis);
     
    17681772}
    17691773
     1774#if 0 /* unused */
    17701775static bool hdaStreamIsActive(PHDASTATE pThis, PHDASTREAM pStream)
    17711776{
     
    17781783    return fActive;
    17791784}
     1785#endif
    17801786
    17811787static int hdaStreamSetActive(PHDASTATE pThis, PHDASTREAM pStream, bool fActive)
     
    18501856}
    18511857
     1858#if 0 /** @todo hdaStreamStart is unused */
    18521859static int hdaStreamStart(PHDASTREAM pStream)
    18531860{
     
    18601867    return VINF_SUCCESS;
    18611868}
     1869#endif /* unused */
    18621870
    18631871static int hdaStreamStop(PHDASTREAM pStream)
     
    18951903}
    18961904
     1905#if defined(VBOX_WITH_HDA_INTERLEAVING_STREAMS_SUPPORT) || defined(VBOX_WITH_HDA_51_SURROUND)
    18971906static int hdaStreamChannelExtract(PPDMAUDIOSTREAMCHANNEL pChan, const void *pvBuf, size_t cbBuf)
    18981907{
     
    19421951    return VINF_SUCCESS;
    19431952}
    1944 
     1953#endif /* defined(VBOX_WITH_HDA_INTERLEAVING_STREAMS_SUPPORT) || defined(VBOX_WITH_HDA_51_SURROUND) */
     1954
     1955#if 0 /** @todo hdaStreamChannelAdvance is unused */
    19451956static int hdaStreamChannelAdvance(PPDMAUDIOSTREAMCHANNEL pChan, size_t cbAdv)
    19461957{
     
    19521963    return VINF_SUCCESS;
    19531964}
     1965#endif
    19541966
    19551967static int hdaStreamChannelDataInit(PPDMAUDIOSTREAMCHANNELDATA pChanData, uint32_t fFlags)
     
    19831995}
    19841996
     1997#if defined(VBOX_WITH_HDA_INTERLEAVING_STREAMS_SUPPORT) || defined(VBOX_WITH_HDA_51_SURROUND)
     1998
    19851999static int hdaStreamChannelAcquireData(PPDMAUDIOSTREAMCHANNELDATA pChanData, void *pvData, size_t *pcbData)
    19862000{
     
    20032017}
    20042018
     2019#endif /* defined(VBOX_WITH_HDA_INTERLEAVING_STREAMS_SUPPORT) || defined(VBOX_WITH_HDA_51_SURROUND) */
     2020
     2021# if 0 /* currently unused */
    20052022static int hdaStreamWaitForStateChange(PHDASTREAM pStream, RTMSINTERVAL msTimeout)
    20062023{
     
    20102027    return RTSemEventWait(pStream->State.hStateChangedEvent, msTimeout);
    20112028}
     2029# endif /* currently unused */
     2030
    20122031#endif /* IN_RING3 */
    20132032
     
    22032222}
    22042223
     2224#if 0 /** @todo hdaRegReadSSYNC &  hdaRegWriteSSYNC are unused */
     2225
    22052226static int hdaRegReadSSYNC(PHDASTATE pThis, uint32_t iReg, uint32_t *pu32Value)
    22062227{
     
    22182239    return hdaRegWriteU32(pThis, iReg, u32Value);
    22192240}
     2241
     2242#endif /* unused */
    22202243
    22212244static int hdaRegWriteCORBRP(PHDASTATE pThis, uint32_t iReg, uint32_t u32Value)
     
    24892512}
    24902513
     2514#if 0 /** @todo hdaRegWriteSDFIFOW & hdaRegWriteSDFIFOS are unused */
    24912515static int hdaRegWriteSDFIFOW(PHDASTATE pThis, uint32_t iReg, uint32_t u32Value)
    24922516{
     
    25732597    return VINF_SUCCESS;
    25742598}
     2599
     2600#endif /* unused */
    25752601
    25762602#ifdef IN_RING3
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette