Changeset 82235 in vbox
- Timestamp:
- Nov 27, 2019 1:01:20 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevSB16.cpp
r82233 r82235 1758 1758 1759 1759 /** 1760 * Creates aPDM audio stream for a specific driver.1760 * Creates the output PDM audio stream for a specific driver. 1761 1761 * 1762 1762 * @returns IPRT status code. … … 1793 1793 1794 1794 /** 1795 * Destroys aPDM audio stream of a specific driver.1795 * Destroys the output PDM audio stream of a specific driver. 1796 1796 * 1797 * @param pThis SB16 state.1798 1797 * @param pDrv Driver stream to destroy PDM stream for. 1799 1798 */ 1800 static void sb16DestroyDrvStream(PSB16STATE pThis, PSB16DRIVER pDrv) 1801 { 1802 AssertPtr(pThis); 1799 static void sb16DestroyDrvStreamOut(PSB16DRIVER pDrv) 1800 { 1803 1801 AssertPtr(pDrv); 1804 1802 … … 1907 1905 RTListForEach(&pThis->lstDrv, pDrv, SB16DRIVER, Node) 1908 1906 { 1909 sb16DestroyDrvStream (pThis,pDrv);1907 sb16DestroyDrvStreamOut(pDrv); 1910 1908 } 1911 1909 … … 2212 2210 * 2213 2211 * @returns VBox status code. 2214 * @param pThis SB16 state.2215 2212 * @param pDrv Driver to detach device from. 2216 * @param fFlags Flags, combination of the PDMDEVATT_FLAGS_* \#defines. 2217 */ 2218 static int sb16DetachInternal(PSB16STATE pThis, PSB16DRIVER pDrv, uint32_t fFlags) 2219 { 2220 RT_NOREF(fFlags); 2221 2222 sb16DestroyDrvStream(pThis, pDrv); 2223 2213 */ 2214 static int sb16DetachInternal(PSB16DRIVER pDrv) 2215 { 2216 sb16DestroyDrvStreamOut(pDrv); 2224 2217 RTListNodeRemove(&pDrv->Node); 2225 2226 LogFunc(("uLUN=%u, fFlags=0x%x\n", pDrv->uLUN, fFlags)); 2218 LogFunc(("uLUN=%u\n", pDrv->uLUN)); 2227 2219 return VINF_SUCCESS; 2228 2220 } … … 2259 2251 if (pDrv->uLUN == iLUN) 2260 2252 { 2261 int rc2 = sb16DetachInternal(p This, pDrv, fFlags);2253 int rc2 = sb16DetachInternal(pDrv); 2262 2254 if (RT_SUCCESS(rc2)) 2263 2255 { … … 2333 2325 RTListForEach(&pThis->lstDrv, pDrv, SB16DRIVER, Node) 2334 2326 { 2335 sb16DestroyDrvStream (pThis,pDrv);2327 sb16DestroyDrvStreamOut(pDrv); 2336 2328 } 2337 2329 }
Note:
See TracChangeset
for help on using the changeset viewer.