VirtualBox

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


Ignore:
Timestamp:
Jan 25, 2018 11:31:09 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
120496
Message:

DevSB16.cpp/sb16TimerIO: Fixed assertion triggering when audio output & input are disabled.

File:
1 edited

Legend:

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

    r70671 r70737  
    19881988            continue;
    19891989
    1990 #ifdef DEBUG
     1990#ifdef VBOX_STRICT
     1991        /*
     1992         * Sanity. Make sure that all streams have the same configuration
     1993         * to get SB16's DMA transfers right.
     1994         *
     1995         * SB16 only allows one output configuration per serial data out,
     1996         * so check if all streams have the same configuration.
     1997         */
    19911998        PSB16DRIVER pDrvPrev = RTListNodeGetPrev(&pDrv->Node, SB16DRIVER, Node);
    19921999        if (   pDrvPrev
     
    19942001        {
    19952002            PPDMAUDIOSTREAM pStreamPrev = pDrvPrev->Out.pStream;
    1996             AssertPtr(pStreamPrev);
    1997 
    1998             /*
    1999              * Sanity. Make sure that all streams have the same configuration
    2000              * to get SB16's DMA transfers right.
    2001              *
    2002              * SB16 only allows one output configuration per serial data out,
    2003              * so check if all streams have the same configuration.
    2004              */
    2005             AssertMsg(pStream->Cfg.Props.uHz       == pStreamPrev->Cfg.Props.uHz,
    2006                       ("%RU32Hz vs. %RU32Hz\n", pStream->Cfg.Props.uHz, pStreamPrev->Cfg.Props.uHz));
    2007             AssertMsg(pStream->Cfg.Props.cChannels == pStreamPrev->Cfg.Props.cChannels,
    2008                       ("%RU8 vs. %RU8 channels\n", pStream->Cfg.Props.cChannels, pStreamPrev->Cfg.Props.cChannels));
    2009             AssertMsg(pStream->Cfg.Props.cBits     == pStreamPrev->Cfg.Props.cBits,
    2010                       ("%d vs. %d bits\n", pStream->Cfg.Props.cBits, pStreamPrev->Cfg.Props.cBits));
    2011             AssertMsg(pStream->Cfg.Props.fSigned   == pStreamPrev->Cfg.Props.fSigned,
    2012                       ("%RTbool vs. %RTbool signed\n", pStream->Cfg.Props.fSigned, pStreamPrev->Cfg.Props.fSigned));
     2003            if (pStreamPrev)
     2004            {
     2005                AssertMsg(pStream->Cfg.Props.uHz       == pStreamPrev->Cfg.Props.uHz,
     2006                          ("%RU32Hz vs. %RU32Hz\n", pStream->Cfg.Props.uHz, pStreamPrev->Cfg.Props.uHz));
     2007                AssertMsg(pStream->Cfg.Props.cChannels == pStreamPrev->Cfg.Props.cChannels,
     2008                          ("%RU8 vs. %RU8 channels\n", pStream->Cfg.Props.cChannels, pStreamPrev->Cfg.Props.cChannels));
     2009                AssertMsg(pStream->Cfg.Props.cBits     == pStreamPrev->Cfg.Props.cBits,
     2010                          ("%d vs. %d bits\n", pStream->Cfg.Props.cBits, pStreamPrev->Cfg.Props.cBits));
     2011                AssertMsg(pStream->Cfg.Props.fSigned   == pStreamPrev->Cfg.Props.fSigned,
     2012                          ("%RTbool vs. %RTbool signed\n", pStream->Cfg.Props.fSigned, pStreamPrev->Cfg.Props.fSigned));
     2013            }
    20132014        }
    20142015#endif
Note: See TracChangeset for help on using the changeset viewer.

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