Changeset 63210 in vbox for trunk/src/VBox/Devices/Audio/DevIchHda.cpp
- Timestamp:
- Aug 9, 2016 2:47:20 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 109837
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchHda.cpp
r63016 r63210 881 881 *********************************************************************************************************************************/ 882 882 #ifndef VBOX_DEVICE_STRUCT_TESTCASE 883 #ifdef IN_RING3 883 884 static FNPDMDEVRESET hdaReset; 885 #endif 884 886 885 887 /** @name Register read/write stubs. … … 897 899 static int hdaRegReadLPIB(PHDASTATE pThis, uint32_t iReg, uint32_t *pu32Value); 898 900 static 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. 902 904 static int hdaRegWriteCORBWP(PHDASTATE pThis, uint32_t iReg, uint32_t u32Value); 903 905 static int hdaRegWriteCORBRP(PHDASTATE pThis, uint32_t iReg, uint32_t u32Value); … … 919 921 static int hdaRegWriteSDSTS(PHDASTATE pThis, uint32_t iReg, uint32_t u32Value); 920 922 static 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 923 925 static int hdaRegWriteSDFMT(PHDASTATE pThis, uint32_t iReg, uint32_t u32Value); 924 926 static int hdaRegWriteSDBDPL(PHDASTATE pThis, uint32_t iReg, uint32_t u32Value); … … 927 929 928 930 /* Locking + logging. */ 931 #ifdef IN_RING3 929 932 DECLINLINE(int) hdaRegWriteSDLock(PHDASTATE pThis, PHDASTREAM pStream, uint32_t iReg, uint32_t u32Value); 930 933 DECLINLINE(void) hdaRegWriteSDUnlock(PHDASTREAM pStream); 934 #endif 931 935 932 936 /** @name Generic register read/write functions. … … 946 950 static void hdaStreamDestroy(PHDASTREAM pStream); 947 951 static int hdaStreamSetActive(PHDASTATE pThis, PHDASTREAM pStream, bool fActive); 948 static int hdaStreamStart(PHDASTREAM pStream); 952 //static int hdaStreamStart(PHDASTREAM pStream); - unused 949 953 static int hdaStreamStop(PHDASTREAM pStream); 950 static int hdaStreamWaitForStateChange(PHDASTREAM pStream, RTMSINTERVAL msTimeout); 954 /*static int hdaStreamWaitForStateChange(PHDASTREAM pStream, RTMSINTERVAL msTimeout); - currently unused */ 951 955 static int hdaTransfer(PHDASTATE pThis, PHDASTREAM pStream, uint32_t cbToProcess, uint32_t *pcbProcessed); 952 956 #endif … … 970 974 * Timer routines. 971 975 */ 972 #if ndef VBOX_WITH_AUDIO_CALLBACKS976 #if !defined(VBOX_WITH_AUDIO_CALLBACKS) && defined(IN_RING3) 973 977 static void hdaTimerMaybeStart(PHDASTATE pThis); 974 978 static void hdaTimerMaybeStop(PHDASTATE pThis); … … 1768 1772 } 1769 1773 1774 #if 0 /* unused */ 1770 1775 static bool hdaStreamIsActive(PHDASTATE pThis, PHDASTREAM pStream) 1771 1776 { … … 1778 1783 return fActive; 1779 1784 } 1785 #endif 1780 1786 1781 1787 static int hdaStreamSetActive(PHDASTATE pThis, PHDASTREAM pStream, bool fActive) … … 1850 1856 } 1851 1857 1858 #if 0 /** @todo hdaStreamStart is unused */ 1852 1859 static int hdaStreamStart(PHDASTREAM pStream) 1853 1860 { … … 1860 1867 return VINF_SUCCESS; 1861 1868 } 1869 #endif /* unused */ 1862 1870 1863 1871 static int hdaStreamStop(PHDASTREAM pStream) … … 1895 1903 } 1896 1904 1905 #if defined(VBOX_WITH_HDA_INTERLEAVING_STREAMS_SUPPORT) || defined(VBOX_WITH_HDA_51_SURROUND) 1897 1906 static int hdaStreamChannelExtract(PPDMAUDIOSTREAMCHANNEL pChan, const void *pvBuf, size_t cbBuf) 1898 1907 { … … 1942 1951 return VINF_SUCCESS; 1943 1952 } 1944 1953 #endif /* defined(VBOX_WITH_HDA_INTERLEAVING_STREAMS_SUPPORT) || defined(VBOX_WITH_HDA_51_SURROUND) */ 1954 1955 #if 0 /** @todo hdaStreamChannelAdvance is unused */ 1945 1956 static int hdaStreamChannelAdvance(PPDMAUDIOSTREAMCHANNEL pChan, size_t cbAdv) 1946 1957 { … … 1952 1963 return VINF_SUCCESS; 1953 1964 } 1965 #endif 1954 1966 1955 1967 static int hdaStreamChannelDataInit(PPDMAUDIOSTREAMCHANNELDATA pChanData, uint32_t fFlags) … … 1983 1995 } 1984 1996 1997 #if defined(VBOX_WITH_HDA_INTERLEAVING_STREAMS_SUPPORT) || defined(VBOX_WITH_HDA_51_SURROUND) 1998 1985 1999 static int hdaStreamChannelAcquireData(PPDMAUDIOSTREAMCHANNELDATA pChanData, void *pvData, size_t *pcbData) 1986 2000 { … … 2003 2017 } 2004 2018 2019 #endif /* defined(VBOX_WITH_HDA_INTERLEAVING_STREAMS_SUPPORT) || defined(VBOX_WITH_HDA_51_SURROUND) */ 2020 2021 # if 0 /* currently unused */ 2005 2022 static int hdaStreamWaitForStateChange(PHDASTREAM pStream, RTMSINTERVAL msTimeout) 2006 2023 { … … 2010 2027 return RTSemEventWait(pStream->State.hStateChangedEvent, msTimeout); 2011 2028 } 2029 # endif /* currently unused */ 2030 2012 2031 #endif /* IN_RING3 */ 2013 2032 … … 2203 2222 } 2204 2223 2224 #if 0 /** @todo hdaRegReadSSYNC & hdaRegWriteSSYNC are unused */ 2225 2205 2226 static int hdaRegReadSSYNC(PHDASTATE pThis, uint32_t iReg, uint32_t *pu32Value) 2206 2227 { … … 2218 2239 return hdaRegWriteU32(pThis, iReg, u32Value); 2219 2240 } 2241 2242 #endif /* unused */ 2220 2243 2221 2244 static int hdaRegWriteCORBRP(PHDASTATE pThis, uint32_t iReg, uint32_t u32Value) … … 2489 2512 } 2490 2513 2514 #if 0 /** @todo hdaRegWriteSDFIFOW & hdaRegWriteSDFIFOS are unused */ 2491 2515 static int hdaRegWriteSDFIFOW(PHDASTATE pThis, uint32_t iReg, uint32_t u32Value) 2492 2516 { … … 2573 2597 return VINF_SUCCESS; 2574 2598 } 2599 2600 #endif /* unused */ 2575 2601 2576 2602 #ifdef IN_RING3
Note:
See TracChangeset
for help on using the changeset viewer.