Changeset 71746 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- Apr 8, 2018 2:31:11 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevSB16.cpp
r71745 r71746 72 72 #define SB16_SAVE_STATE_VERSION_VBOX_30 1 73 73 74 #define IO_READ_PROTO(name) \75 DECLCALLBACK(int) name (PPDMDEVINS pDevIns, void *opaque, \76 RTIOPORT nport, uint32_t *pu32, unsigned cb)77 78 #define IO_WRITE_PROTO(name) \79 DECLCALLBACK(int) name (PPDMDEVINS pDevIns, void *opaque, \80 RTIOPORT nport, uint32_t val, unsigned cb)81 82 74 83 75 /********************************************************************************************************************************* … … 555 547 } 556 548 549 /** 550 * @callback_method_impl{PFNTMTIMERDEV} 551 */ 557 552 static DECLCALLBACK(void) sb16TimerIRQ(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvThis) 558 553 { … … 1338 1333 } 1339 1334 1340 static IO_WRITE_PROTO(dsp_write) 1335 /** 1336 * @callback_method_impl{PFNIOMIOPORTOUT} 1337 */ 1338 static DECLCALLBACK(int) dsp_write(PPDMDEVINS pDevIns, void *opaque, RTIOPORT nport, uint32_t val, unsigned cb) 1341 1339 { 1342 1340 RT_NOREF(pDevIns, cb); … … 1435 1433 } 1436 1434 1437 static IO_READ_PROTO(dsp_read) 1435 1436 /** 1437 * @callback_method_impl{PFNIOMIOPORTIN} 1438 */ 1439 static DECLCALLBACK(int) dsp_read(PPDMDEVINS pDevIns, void *opaque, RTIOPORT nport, uint32_t *pu32, unsigned cb) 1438 1440 { 1439 1441 RT_NOREF(pDevIns, cb); … … 1720 1722 } 1721 1723 1722 static IO_WRITE_PROTO(mixer_write) 1724 /** 1725 * @callback_method_impl{PFNIOMIOPORTOUT} 1726 */ 1727 static DECLCALLBACK(int) mixer_write(PPDMDEVINS pDevIns, void *opaque, RTIOPORT nport, uint32_t val, unsigned cb) 1723 1728 { 1724 1729 RT_NOREF(pDevIns); … … 1749 1754 } 1750 1755 1751 static IO_READ_PROTO(mixer_read) 1756 /** 1757 * @callback_method_impl{PFNIOMIOPORTIN} 1758 */ 1759 static DECLCALLBACK(int) mixer_read(PPDMDEVINS pDevIns, void *opaque, RTIOPORT nport, uint32_t *pu32, unsigned cb) 1752 1760 { 1753 1761 RT_NOREF(pDevIns, cb); … … 1768 1776 } 1769 1777 1770 static int sb16WriteAudio(PSB16STATE pThis, int nchan, uint32_t dma_pos, 1771 uint32_t dma_len, int len) 1778 /** 1779 * Called by sb16DMARead. 1780 */ 1781 static int sb16WriteAudio(PSB16STATE pThis, int nchan, uint32_t dma_pos, uint32_t dma_len, int len) 1772 1782 { 1773 1783 uint8_t tmpbuf[_4K]; /** @todo Have a buffer on the heap. */ … … 1838 1848 } 1839 1849 1850 /** 1851 * @callback_method_impl{FNDMATRANSFERHANDLER, 1852 * Worker callback for both DMA channels.} 1853 */ 1840 1854 static DECLCALLBACK(uint32_t) sb16DMARead(PPDMDEVINS pDevIns, void *opaque, unsigned nchan, uint32_t dma_pos, uint32_t dma_len) 1841 1855 { … … 1926 1940 1927 1941 #ifndef VBOX_WITH_AUDIO_SB16_CALLBACKS 1942 1928 1943 static void sb16TimerMaybeStart(PSB16STATE pThis) 1929 1944 { … … 1980 1995 continue; 1981 1996 1982 # ifdef VBOX_STRICT1997 # ifdef VBOX_STRICT 1983 1998 /* 1984 1999 * Sanity. Make sure that all streams have the same configuration … … 2005 2020 } 2006 2021 } 2007 # endif2022 # endif 2008 2023 PPDMIAUDIOCONNECTOR pConn = pDrv->pConnector; 2009 2024 if (!pConn) … … 2066 2081 } 2067 2082 } 2083 2068 2084 #endif /* !VBOX_WITH_AUDIO_SB16_CALLBACKS */ 2069 2085
Note:
See TracChangeset
for help on using the changeset viewer.