VirtualBox

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


Ignore:
Timestamp:
Nov 18, 2010 9:42:20 AM (14 years ago)
Author:
vboxsync
Message:

Audio/HDA: removed confusing checks.

File:
1 edited

Legend:

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

    r34154 r34156  
    14511451            cb2Copy = RT_MIN(cb2Copy, u32CblLimit); /* avoid LCBL overrun */
    14521452        }
    1453         if (   (   cb2Copy == 0
    1454                && pBdle->cbUnderFifoW < hdaFifoWToSz(pState, 4))
    1455             || cb2Copy < pBdle->cbUnderFifoW)
    1456         {
    1457             Log(("hda:wa: amount of bytes to copy is zero and (cbUnderFifoW:%d < %d)\n", pBdle->cbUnderFifoW, hdaFifoWToSz(pState, 4)));
     1453        if (cb2Copy < pBdle->cbUnderFifoW)
     1454        {
     1455            Log(("hda:wa: amount of unreported bytes is less than room may be transfered  (cbUnderFifoW:%d < %d)\n", pBdle->cbUnderFifoW, cb2Copy));
    14581456            *fStop = true;
    1459             return 0;
    1460         } 
     1457            break;
     1458        }
    14611459        cb2Copy -= pBdle->cbUnderFifoW; /* force reserve "Unreported bits" */
    14621460       
     
    14981496            pBdle->u32BdleCviPos += cb2Copy;
    14991497            Assert((pBdle->cbUnderFifoW <= hdaFifoWToSz(pState, 4)));
     1498            *fStop = true;
    15001499            break;
    15011500        }
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