VirtualBox

Changeset 40111 in vbox


Ignore:
Timestamp:
Feb 14, 2012 1:49:30 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
76252
Message:

Audio/HDA: Don't bother with resseting at all if codec reset routine isn't specified.

File:
1 edited

Legend:

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

    r40110 r40111  
    12651265    Assert((CODEC_CAD(cmd) == pState->id));
    12661266    Assert(CODEC_NID(cmd) == 1 /* AFG */);
    1267     if(CODEC_NID(cmd) == 1 /* AFG */)
     1267    if(   CODEC_NID(cmd) == 1 /* AFG */
     1268       && pState->pfnCodecNodeReset)
    12681269    {
    12691270        uint8_t i;
     
    12721273        for (i = 0; i < pState->cTotalNodes; ++i)
    12731274        {
    1274             if (pState->pfnCodecNodeReset)
    1275                 pState->pfnCodecNodeReset(pState, i, &pState->pNodes[i]);
     1275            pState->pfnCodecNodeReset(pState, i, &pState->pNodes[i]);
    12761276        }
    12771277        pState->fInReset = false;
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