VirtualBox

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


Ignore:
Timestamp:
Nov 25, 2010 7:03:07 AM (14 years ago)
Author:
vboxsync
Message:

Audio/HDA: initiate transfer next iteration if rest of current backend buffer is less SDnFIFOS.

File:
1 edited

Legend:

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

    r34271 r34350  
    13451345{
    13461346    uint32_t cb2Copy;
     1347    if (u32SoundBackendBufferBytesAvail <= u32Fifos + 1)
     1348    {
     1349        /* Some platform offers buffer not multiplied on SDnFIFOS+1 value
     1350         * so to avoid situation when the rest of the backend buffer is less
     1351         * of SDnFIFOW value, we'll wait for next iteration with fresh buffer.
     1352         */
     1353        return 0;
     1354    }
    13471355    /*
    13481356     * Amounts of bytes depends on current position in buffer (u32BdleCviLen-u32BdleCviPos)
     
    15751583        Assert((avail >= 0 && (u32Cbl >= (*pu32Lpib)))); /* sanity */
    15761584        uint32_t u32CblLimit = u32Cbl - (*pu32Lpib);
     1585        Assert((u32CblLimit > hdaFifoWToSz(pState, u8Strm)));
    15771586        Log(("hda: CBL=%d, LPIB=%d\n", u32Cbl, *pu32Lpib));
    15781587        switch (src)
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