VirtualBox

Changeset 82235 in vbox


Ignore:
Timestamp:
Nov 27, 2019 1:01:20 AM (5 years ago)
Author:
vboxsync
Message:

DevSB16: Build fix and some related cleanups (fewer paranoid AssertPtrReturn stuff and unused parameter warnings shows up). bugref:9218

File:
1 edited

Legend:

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

    r82233 r82235  
    17581758
    17591759/**
    1760  * Creates a PDM audio stream for a specific driver.
     1760 * Creates the output PDM audio stream for a specific driver.
    17611761 *
    17621762 * @returns IPRT status code.
     
    17931793
    17941794/**
    1795  * Destroys a PDM audio stream of a specific driver.
     1795 * Destroys the output PDM audio stream of a specific driver.
    17961796 *
    1797  * @param   pThis               SB16 state.
    17981797 * @param   pDrv                Driver stream to destroy PDM stream for.
    17991798 */
    1800 static void sb16DestroyDrvStream(PSB16STATE pThis, PSB16DRIVER pDrv)
    1801 {
    1802     AssertPtr(pThis);
     1799static void sb16DestroyDrvStreamOut(PSB16DRIVER pDrv)
     1800{
    18031801    AssertPtr(pDrv);
    18041802
     
    19071905    RTListForEach(&pThis->lstDrv, pDrv, SB16DRIVER, Node)
    19081906    {
    1909         sb16DestroyDrvStream(pThis, pDrv);
     1907        sb16DestroyDrvStreamOut(pDrv);
    19101908    }
    19111909
     
    22122210 *
    22132211 * @returns VBox status code.
    2214  * @param   pThis       SB16 state.
    22152212 * @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 */
     2214static int sb16DetachInternal(PSB16DRIVER pDrv)
     2215{
     2216    sb16DestroyDrvStreamOut(pDrv);
    22242217    RTListNodeRemove(&pDrv->Node);
    2225 
    2226     LogFunc(("uLUN=%u, fFlags=0x%x\n", pDrv->uLUN, fFlags));
     2218    LogFunc(("uLUN=%u\n", pDrv->uLUN));
    22272219    return VINF_SUCCESS;
    22282220}
     
    22592251        if (pDrv->uLUN == iLUN)
    22602252        {
    2261             int rc2 = sb16DetachInternal(pThis, pDrv, fFlags);
     2253            int rc2 = sb16DetachInternal(pDrv);
    22622254            if (RT_SUCCESS(rc2))
    22632255            {
     
    23332325    RTListForEach(&pThis->lstDrv, pDrv, SB16DRIVER, Node)
    23342326    {
    2335         sb16DestroyDrvStream(pThis, pDrv);
     2327        sb16DestroyDrvStreamOut(pDrv);
    23362328    }
    23372329}
Note: See TracChangeset for help on using the changeset viewer.

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