VirtualBox

Changeset 89341 in vbox


Ignore:
Timestamp:
May 28, 2021 10:19:50 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144690
Message:

Audio: Removed PDMAUDIODRVFLAGS (no longer needed when we're mixing inputs). bugref:9890

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pdmaudioifs.h

    r89327 r89341  
    253253#endif
    254254
    255 /** PDM audio driver instance flags. */
    256 typedef uint32_t PDMAUDIODRVFLAGS;
    257 
    258 /** No flags set. */
    259 #define PDMAUDIODRVFLAGS_NONE       0
    260 /** Marks a primary audio driver which is critical
    261  *  when running the VM. */
    262 #define PDMAUDIODRVFLAGS_PRIMARY    RT_BIT(0)
    263 
    264255/**
    265256 * Audio format in signed or unsigned variants.
     
    698689    /** Whether the endianness is swapped or not. */
    699690    bool        fSwapEndian : 1;
    700     /** Raw mixer frames, only applicable for signed 64-bit samples. */
     691    /** Raw mixer frames, only applicable for signed 64-bit samples.
     692     * The raw mixer samples are really just signed 32-bit samples stored as 64-bit
     693     * integers without any change in the value.
     694     *
     695     * @todo Get rid of this, only VRDE needs it an it should use the common
     696     *       mixer code rather than cooking its own stuff. */
    701697    bool        fRaw : 1;
    702698    /** Sample frequency in Hertz (Hz). */
  • trunk/src/VBox/Devices/Audio/DevHda.cpp

    r89302 r89341  
    222222    /** Pointer to the ring-3 HDA device state. */
    223223    R3PTRTYPE(PHDASTATER3)             pHDAStateR3;
    224     /** Driver flags. */
    225     PDMAUDIODRVFLAGS                   fFlags;
    226     uint8_t                            u32Padding0[2];
    227224    /** LUN to which this driver has been assigned. */
    228225    uint8_t                            uLUN;
    229226    /** Whether this driver is in an attached state or not. */
    230227    bool                               fAttached;
     228    uint8_t                            u32Padding0[6];
    231229    /** Pointer to attached driver base interface. */
    232230    R3PTRTYPE(PPDMIBASE)               pDrvBase;
     
    43804378                pDrv->pHDAStateR3       = pThisCC;
    43814379                pDrv->uLUN              = uLUN;
    4382                 AssertMsg(pDrv->pConnector != NULL, ("Configuration error: LUN#%u has no host audio interface, rc=%Rrc\n", uLUN, rc));
    4383 
    4384                 /*
    4385                  * For now we always set the driver at LUN 0 as our primary
    4386                  * host backend. This might change in the future.
    4387                  */
    4388                 if (pDrv->uLUN == 0)
    4389                     pDrv->fFlags |= PDMAUDIODRVFLAGS_PRIMARY;
    4390 
    4391                 LogFunc(("LUN#%u: pCon=%p, drvFlags=0x%x\n", uLUN, pDrv->pConnector, pDrv->fFlags));
    43924380
    43934381                /* Attach to driver list if not attached yet. */
     
    44224410                }
    44234411
    4424                 LogFunc(("LUN#%u: VINF_SUCCESS\n", uLUN));
     4412                LogFunc(("LUN#%u: returns VINF_SUCCESS (pCon=%p)\n", uLUN, pDrv->pConnector));
    44254413                return VINF_SUCCESS;
    44264414            }
  • trunk/src/VBox/Devices/Audio/DevIchAc97.cpp

    r89302 r89341  
    457457    /** Node for storing this driver in our device driver list of AC97STATE. */
    458458    RTLISTNODER3                    Node;
    459     /** Driver flags. */
    460     PDMAUDIODRVFLAGS                fFlags;
    461459    /** LUN # to which this driver has been assigned. */
    462460    uint8_t                         uLUN;
    463461    /** Whether this driver is in an attached state or not. */
    464462    bool                            fAttached;
    465     uint8_t                         abPadding[2];
     463    uint8_t                         abPadding[6];
    466464    /** Pointer to the description string passed to PDMDevHlpDriverAttach(). */
    467465    R3PTRTYPE(char *)               pszDesc;
     
    35373535            pDrv->pConnector = PDMIBASE_QUERY_INTERFACE(pDrvBase, PDMIAUDIOCONNECTOR);
    35383536            AssertPtr(pDrv->pConnector);
    3539             if (pDrv->pConnector)
     3537            if (RT_VALID_PTR(pDrv->pConnector))
    35403538            {
    35413539                pDrv->pDrvBase   = pDrvBase;
    35423540                pDrv->uLUN       = iLun;
    35433541                pDrv->pszDesc    = pszDesc;
    3544 
    3545                 /*
    3546                  * For now we always set the driver at LUN 0 as our primary
    3547                  * host backend. This might change in the future.
    3548                  */
    3549                 if (iLun == 0)
    3550                     pDrv->fFlags |= PDMAUDIODRVFLAGS_PRIMARY;
    3551 
    3552                 LogFunc(("LUN#%u: pCon=%p, drvFlags=0x%x\n", iLun, pDrv->pConnector, pDrv->fFlags));
    35533542
    35543543                /* Attach to driver list if not attached yet. */
     
    35613550                if (ppDrv)
    35623551                    *ppDrv = pDrv;
    3563                 LogFunc(("LUN#%u: VINF_SUCCESS\n", iLun));
     3552                LogFunc(("LUN#%u: returns VINF_SUCCESS (pCon=%p)\n", iLun, pDrv->pConnector));
    35643553                return VINF_SUCCESS;
    35653554            }
  • trunk/src/VBox/Devices/Audio/DevSB16.cpp

    r89218 r89341  
    147147    /** Stream for output. */
    148148    SB16DRIVERSTREAM                Out;
    149     /** Driver flags. */
    150     PDMAUDIODRVFLAGS                fFlags;
    151149    /** LUN # to which this driver has been assigned. */
    152150    uint8_t                         uLUN;
     
    154152    bool                            fAttached;
    155153    /** The LUN description. */
    156     char                            szDesc[2+48];
     154    char                            szDesc[48 - 2];
    157155} SB16DRIVER;
    158156/** Pointer to the per-LUN data. */
     
    26942692            pDrv->uLUN       = uLUN;
    26952693
    2696             /*
    2697              * For now we always set the driver at LUN 0 as our primary
    2698              * host backend. This might change in the future.
    2699              */
    2700             if (pDrv->uLUN == 0)
    2701                 pDrv->fFlags |= PDMAUDIODRVFLAGS_PRIMARY;
    2702 
    2703             LogFunc(("LUN#%u: pCon=%p, drvFlags=0x%x\n", uLUN, pDrv->pConnector, pDrv->fFlags));
    2704 
    27052694            /* Attach to driver list if not attached yet. */
    27062695            if (!pDrv->fAttached)
     
    27122701            if (ppDrv)
    27132702                *ppDrv = pDrv;
    2714             LogFunc(("LUN#%u: VINF_SUCCESS\n", uLUN));
     2703            LogFunc(("LUN#%u: returns VINF_SUCCESS (pCon=%p)\n", uLUN, pDrv->pConnector));
    27152704            return VINF_SUCCESS;
    27162705        }
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