VirtualBox

Changeset 34226 in vbox


Ignore:
Timestamp:
Nov 22, 2010 3:41:53 AM (14 years ago)
Author:
vboxsync
Message:

Audio/HDA: removed unused flag.

File:
1 edited

Legend:

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

    r34225 r34226  
    13371337}
    13381338
    1339 static uint32_t hdaReadAudio(INTELHDLinkState *pState, uint32_t *pu32Avail, bool *fStop, uint32_t u32CblLimit)
     1339static uint32_t hdaReadAudio(INTELHDLinkState *pState, uint32_t *pu32Avail, uint32_t u32CblLimit)
    13401340{
    13411341    PHDABDLEDESC pBdle = &pState->stInBdle;
     
    13501350            || (*pu32Avail < hdaFifoWToSz(pState, 0)))
    13511351        {
    1352             *fStop = true;
    13531352            return 0;
    13541353        }
     
    13631362            || cb2Copy < pBdle->cbUnderFifoW)
    13641363        {
    1365             *fStop = true;
    13661364            return 0;
    13671365        }
     
    13911389            pBdle->cbUnderFifoW += RT_MIN(cbBackendCopy, cb2Copy);
    13921390            Assert((pBdle->cbUnderFifoW <= hdaFifoWToSz(pState, 0)));
    1393             *fStop = true;
    13941391            break;
    13951392        }
     
    14041401}
    14051402
    1406 static uint32_t hdaWriteAudio(INTELHDLinkState *pState, uint32_t *pu32Avail, bool *fStop, uint32_t u32CblLimit)
     1403static uint32_t hdaWriteAudio(INTELHDLinkState *pState, uint32_t *pu32Avail, uint32_t u32CblLimit)
    14071404{
    14081405    PHDABDLEDESC pBdle = &pState->stOutBdle;
     
    14271424    {
    14281425        Log(("hda:wa: amount of unreported bytes is less than room may be transfered  (cbUnderFifoW:%d < %d)\n", pBdle->cbUnderFifoW, cb2Copy));
    1429         *fStop = true;
    14301426        goto done;
    14311427    }
     
    14861482DECLCALLBACK(void) hdaTransfer(CODECState *pCodecState, ENMSOUNDSOURCE src, int avail)
    14871483{
    1488     bool fStop = false;
    14891484    uint64_t u64BaseDMA = 0;
    14901485    PHDABDLEDESC pBdle = NULL;
     
    15381533    *pu32Sts |= HDA_REG_FIELD_FLAG_MASK(SDSTS, FIFORDY);
    15391534    fetch_bd(pState, pBdle, u64BaseDMA);
    1540     while( avail && !fStop)
     1535    while(avail)
    15411536    {
    15421537        Assert((avail >= 0 && (u32Cbl >= (*pu32Lpib)))); /* sanity */
     
    15461541        {
    15471542            case PO_INDEX:
    1548                 nBytes = hdaWriteAudio(pState, (uint32_t *)&avail, &fStop, u32CblLimit);
     1543                nBytes = hdaWriteAudio(pState, (uint32_t *)&avail, u32CblLimit);
    15491544                break;
    15501545            case PI_INDEX:
    1551                 nBytes = hdaReadAudio(pState, (uint32_t *)&avail, &fStop, u32CblLimit);
     1546                nBytes = hdaReadAudio(pState, (uint32_t *)&avail, u32CblLimit);
    15521547                break;
    15531548            default:
    15541549                nBytes = 0;
    1555                 fStop  = true;
    15561550                AssertMsgFailed(("Unsupported"));
     1551                break;
    15571552        }
    15581553        /*
     
    15971592
    15981593            }
    1599             fStop = true;
     1594            break;
    16001595        }
    16011596    }
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