Changeset 67907 in vbox
- Timestamp:
- Jul 11, 2017 2:00:07 PM (8 years ago)
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevHDA.cpp
r67901 r67907 137 137 138 138 #ifdef HDA_USE_DMA_ACCESS_HANDLER 139 /** 140 * Struct for keeping an HDA DMA access handler context. 141 */ 139 142 typedef struct HDADMAACCESSHANDLER 140 143 { … … 207 210 #ifndef VBOX_DEVICE_STRUCT_TESTCASE 208 211 #ifdef IN_RING3 209 static void hdaG ctlReset(PHDASTATE pThis);212 static void hdaGCTLReset(PHDASTATE pThis); 210 213 #endif 211 214 … … 864 867 HDA_REG(pThis, GCTL) &= ~HDA_GCTL_CRST; 865 868 866 hdaG ctlReset(pThis);869 hdaGCTLReset(pThis); 867 870 #else 868 871 return VINF_IOM_R3_MMIO_WRITE; … … 2522 2525 * 2523 2526 */ 2524 static void hdaG ctlReset(PHDASTATE pThis)2527 static void hdaGCTLReset(PHDASTATE pThis) 2525 2528 { 2526 2529 LogFlowFuncEnter(); … … 4059 4062 HDA_REG(pThis, WAKEEN) = 0x0; 4060 4063 4061 hdaG ctlReset(pThis);4064 hdaGCTLReset(pThis); 4062 4065 4063 4066 /* Indicate that HDA is not in reset. The firmware is supposed to (un)reset HDA, -
trunk/src/VBox/Devices/Audio/DevHDACommon.cpp
r67906 r67907 31 31 #include "HDAStream.h" 32 32 33 AssertCompileSize(HDABDLEDESC, 16); /* Always 16 byte. Also must be aligned on 128-byte boundary. */34 AssertCompile(HDA_MAX_SDI <= HDA_MAX_SDO);35 33 36 34 #ifndef DEBUG … … 501 499 #endif /* IN_RING3 */ 502 500 501 /** 502 * Returns a new INTSTS value based on the current device state. 503 * 504 * @returns Determined INTSTS register value. 505 * @param pThis HDA state. 506 * 507 * @remark This function does *not* set INTSTS! 508 */ 503 509 uint32_t hdaGetINTSTS(PHDASTATE pThis) 504 510 { -
trunk/src/VBox/Devices/Audio/DevHDACommon.h
r67902 r67907 70 70 #define HDA_MAX_SDO 4 71 71 #define HDA_MAX_STREAMS (HDA_MAX_SDI + HDA_MAX_SDO) 72 AssertCompile(HDA_MAX_SDI <= HDA_MAX_SDO); 72 73 73 74 /** Number of general registers. */ … … 535 536 uint32_t fFlags; 536 537 } HDABDLEDESC, *PHDABDLEDESC; 538 AssertCompileSize(HDABDLEDESC, 16); /* Always 16 byte. Also must be aligned on 128-byte boundary. */ 537 539 538 540 /** -
trunk/src/VBox/Devices/Audio/HDAStreamChannel.cpp
r67698 r67907 27 27 #include "HDAStreamChannel.h" 28 28 29 /** 30 * Initializes a stream channel data structure. 31 * 32 * @returns IPRT status code. 33 * @param pChanData Channel data to initialize. 34 * @param fFlags 35 */ 29 36 int hdaStreamChannelDataInit(PPDMAUDIOSTREAMCHANNELDATA pChanData, uint32_t fFlags) 30 37 { … … 39 46 40 47 /** 41 * Frees a stream channel data block again.48 * Destroys a stream channel data structure. 42 49 * 43 * @param pChanData Pointer to channel data to free.50 * @param pChanData Channel data to destroy. 44 51 */ 45 52 void hdaStreamChannelDataDestroy(PPDMAUDIOSTREAMCHANNELDATA pChanData) … … 57 64 } 58 65 66 /** 67 * Extracts HDA audio stream data and stores it into the given stream channel data block. 68 * 69 * @returns IPRT status code. 70 * @param pChan Channel data to extract audio stream data into. 71 * @param pvBuf Buffer of audio data to extract. 72 * @param cbBuf Size (in bytes) of audio data to extract. 73 */ 59 74 int hdaStreamChannelExtract(PPDMAUDIOSTREAMCHANNEL pChan, const void *pvBuf, size_t cbBuf) 60 75 { … … 105 120 } 106 121 122 /** 123 * Advances the current read / write pointer by a certain amount. 124 * 125 * @returns IPRT status code. 126 * @param pChan Channel data to advance read / write pointer for. 127 * @param cbAdv Amount (in bytes) to advance read / write pointer. 128 * 129 * @remark Currently not used / implemented. 130 */ 107 131 int hdaStreamChannelAdvance(PPDMAUDIOSTREAMCHANNEL pChan, size_t cbAdv) 108 132 { … … 115 139 } 116 140 141 /** 142 * Acquires (reads) audio channel data. 143 * Must be released when done with hdaStreamChannelReleaseData(). 144 * 145 * @returns IPRT status code. 146 * @param pChanData Channel data to acquire audio channel data from. 147 * @param pvData Pointer to buffer where to store the acquired data. 148 * @param pcbData Size (in bytes) of acquired data. 149 */ 117 150 int hdaStreamChannelAcquireData(PPDMAUDIOSTREAMCHANNELDATA pChanData, void *pvData, size_t *pcbData) 118 151 { … … 127 160 } 128 161 162 /** 163 * Releases formerly acquired data by hdaStreamChannelAcquireData(). 164 * 165 * @returns IPRT status code. 166 * @param pChanData Channel data to release formerly acquired data for. 167 */ 129 168 int hdaStreamChannelReleaseData(PPDMAUDIOSTREAMCHANNELDATA pChanData) 130 169 {
Note:
See TracChangeset
for help on using the changeset viewer.