VirtualBox

Ignore:
Timestamp:
Jun 14, 2021 1:29:37 PM (3 years ago)
Author:
vboxsync
Message:

DevIchAc97: Try deal with zero sized buffer descriptors (untested). Moved CIV advancing to ichac97R3StreamFetchBDLE, renaming it to ichac97R3StreamFetchNextBdle. Added four ASSERT_GUEST check on reserved BDLE bits and odd lengths. [build fix] bugref:9890

File:
1 edited

Legend:

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

    r89680 r89681  
    856856        pStream->Regs.picb       = pStream->Regs.bd.ctl_len & AC97_BD_LEN_MASK;
    857857
    858         LogFlowFunc(("BDLE%02u: %#RX32 L %#x / LB %#x, ctl=%#06x\n",
     858        LogFlowFunc(("BDLE%02u: %#RX32 L %#x / LB %#x, ctl=%#06x%s%s\n",
    859859                     pStream->Regs.civ, pStream->Regs.bd.addr, pStream->Regs.bd.ctl_len & AC97_BD_LEN_MASK,
    860860                     (pStream->Regs.bd.ctl_len & AC97_BD_LEN_MASK) * PDMAudioPropsSampleSize(&pStreamCC->State.Cfg.Props),
     
    881881
    882882        /* If the buffer has IOC set, make sure it's triggered by the caller. */
    883         if (   (pStream->Regs.bd.ctl_len & AC97_BD_IOC)
    884             && (pStream->Regs.bd.ctl_len & AC97_BD_IOC))
     883        if (pStream->Regs.bd.ctl_len & AC97_BD_IOC)
    885884            fSrBcis |= AC97_SR_BCIS;
    886885    }
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