VirtualBox

Changeset 62969 in vbox for trunk/src/VBox/Devices/Audio


Ignore:
Timestamp:
Aug 4, 2016 10:22:13 AM (8 years ago)
Author:
vboxsync
Message:

Devices: warnings

File:
1 edited

Legend:

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

    r62605 r62969  
    494494
    495495    bool fSignal = false;
    496     int  iIRQL;
     496    int  iIRQL = 0;
    497497
    498498    uint32_t new_mask = new_sr & AC97_SR_INT_MASK;
     
    13881388static DECLCALLBACK(void) ichac97Timer(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser)
    13891389{
     1390    RT_NOREF(pDevIns);
    13901391    PAC97STATE pThis = (PAC97STATE)pvUser;
    13911392    Assert(pThis == PDMINS_2_DATA(pDevIns, PAC97STATE));
     
    13951396
    13961397    uint64_t cTicksNow     = TMTimerGet(pTimer);
    1397     uint64_t cTicksElapsed = cTicksNow  - pThis->uTimerTS;
    1398     uint64_t cTicksPerSec  = TMTimerGetFreq(pTimer);
    13991398
    14001399    LogFlowFuncEnter();
     
    16251624 * @callback_method_impl{FNIOMIOPORTIN}
    16261625 */
    1627 static DECLCALLBACK(int) ichac97IOPortNABMRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port,
    1628                                                uint32_t *pu32Val, unsigned cbVal)
    1629 {
     1626static DECLCALLBACK(int) ichac97IOPortNABMRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32Val, unsigned cbVal)
     1627{
     1628    RT_NOREF(pDevIns);
    16301629    PAC97STATE pThis = (PAC97STATE)pvUser;
    16311630
     
    17781777                                                uint32_t u32Val, unsigned cbVal)
    17791778{
     1779    RT_NOREF(pDevIns);
    17801780    PAC97STATE  pThis   = (PAC97STATE)pvUser;
    17811781
     
    19181918static DECLCALLBACK(int) ichac97IOPortNAMRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32Val, unsigned cbVal)
    19191919{
     1920    RT_NOREF(pDevIns);
    19201921    PAC97STATE pThis = (PAC97STATE)pvUser;
    19211922
     
    19621963 * @callback_method_impl{FNIOMIOPORTOUT}
    19631964 */
    1964 static DECLCALLBACK(int) ichac97IOPortNAMWrite(PPDMDEVINS pDevIns,
    1965                                                void *pvUser, RTIOPORT Port, uint32_t u32Val, unsigned cbVal)
    1966 {
     1965static DECLCALLBACK(int) ichac97IOPortNAMWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32Val, unsigned cbVal)
     1966{
     1967    RT_NOREF(pDevIns);
    19671968    PAC97STATE pThis = (PAC97STATE)pvUser;
    19681969
     
    20982099 * @callback_method_impl{FNPCIIOREGIONMAP}
    20992100 */
    2100 static DECLCALLBACK(int) ichac97IOPortMap(PPCIDEVICE pPciDev, int iRegion, RTGCPHYS GCPhysAddress, uint32_t cb,
    2101                                           PCIADDRESSSPACE enmType)
    2102 {
     2101static DECLCALLBACK(int)
     2102ichac97IOPortMap(PPCIDEVICE pPciDev, int iRegion, RTGCPHYS GCPhysAddress, uint32_t cb, PCIADDRESSSPACE enmType)
     2103{
     2104    RT_NOREF(cb, enmType);
    21032105    PPDMDEVINS  pDevIns = pPciDev->pDevIns;
    21042106    PAC97STATE  pThis   = RT_FROM_MEMBER(pPciDev, AC97STATE, PciDev);
     
    21432145static int ichac97SaveStream(PPDMDEVINS pDevIns, PSSMHANDLE pSSM, PAC97STREAM pStream)
    21442146{
     2147    RT_NOREF(pDevIns);
    21452148    PAC97BMREGS pRegs = &pStream->Regs;
    21462149
     
    21972200static int ichac97LoadStream(PPDMDEVINS pDevIns, PSSMHANDLE pSSM, PAC97STREAM pStream)
    21982201{
     2202    RT_NOREF(pDevIns);
    21992203    PAC97BMREGS pRegs = &pStream->Regs;
    22002204
     
    24012405static DECLCALLBACK(int) ichac97AttachInternal(PPDMDEVINS pDevIns, PAC97DRIVER pDrv, unsigned uLUN, uint32_t fFlags)
    24022406{
     2407    RT_NOREF(fFlags);
    24032408    PAC97STATE pThis = PDMINS_2_DATA(pDevIns, PAC97STATE);
    24042409
     
    24802485static DECLCALLBACK(void) ichac97Detach(PPDMDEVINS pDevIns, unsigned uLUN, uint32_t fFlags)
    24812486{
     2487    RT_NOREF(pDevIns, uLUN, fFlags);
    24822488    LogFunc(("iLUN=%u, fFlags=0x%x\n", uLUN, fFlags));
    24832489}
     
    25482554static DECLCALLBACK(int) ichac97Construct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg)
    25492555{
     2556    RT_NOREF(iInstance);
    25502557    PAC97STATE pThis = PDMINS_2_DATA(pDevIns, PAC97STATE);
    25512558
     
    25872594     * 48 kHz rate, which is exactly what we need. Same goes for AD1981B.
    25882595     */
    2589     bool fChipAD1980 = false;
    25902596    if (!strcmp(szCodec, "STAC9700"))
    25912597        pThis->uCodecModel = AC97_CODEC_STAC9700;
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