VirtualBox

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


Ignore:
Timestamp:
Jun 23, 2021 2:28:25 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145319
Message:

DevHda: Do LPIB updates more often. Experimental code for doing DMA work on LPIB read (disabled). [build fix] bugref:9890

File:
1 edited

Legend:

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

    r89861 r89862  
    10771077}
    10781078
     1079
     1080#if defined(IN_RING3) || defined(VBOX_HDA_WITH_ON_REG_ACCESS_DMA)
    10791081/**
    10801082 * Updates an HDA stream's current read or write buffer position (depending on the stream type) by
     
    10961098        {
    10971099            uint32_t uNewLpid = HDA_STREAM_REG(pThis, LPIB, pStreamShared->u8SD) + cbToAdd;
    1098 #if 1 /** @todo r=bird: this is wrong according to the spec */
     1100# if 1 /** @todo r=bird: this is wrong according to the spec */
    10991101            uNewLpid %= uCBL;
    1100 #else
     1102# else
    11011103            /* The spec says it goes to CBL then wraps arpimd to 1, not back to zero. See 3.3.37.  */
    11021104            if (uNewLpid > uCBL)
    11031105                uNewLpid %= uCBL;
    1104 #endif
     1106# endif
    11051107            hdaStreamSetPositionAbs(pStreamShared, pDevIns, pThis, uNewLpid);
    11061108        }
    11071109    }
    11081110}
     1111#endif /* IN_RING3 || VBOX_HDA_WITH_ON_REG_ACCESS_DMA */
    11091112
    11101113#ifdef IN_RING3
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