VirtualBox

Changeset 69717 in vbox


Ignore:
Timestamp:
Nov 16, 2017 2:55:34 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
119098
Message:

Audio/HDA: Forward ported / integrated r118996.

Location:
trunk/src/VBox/Devices/Audio
Files:
2 edited

Legend:

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

    r69119 r69717  
    28762876#endif
    28772877
    2878     pThis->cbCorbBuf = 256 * sizeof(uint32_t); /** @todo Use a define here. */
     2878    pThis->cbCorbBuf = HDA_CORB_SIZE * sizeof(uint32_t);
    28792879
    28802880    if (pThis->pu32CorbBuf)
     
    28832883        pThis->pu32CorbBuf = (uint32_t *)RTMemAllocZ(pThis->cbCorbBuf);
    28842884
    2885     pThis->cbRirbBuf = 256 * sizeof(uint64_t); /** @todo Use a define here. */
     2885    pThis->cbRirbBuf = HDA_RIRB_SIZE * sizeof(uint64_t);
    28862886    if (pThis->pu64RirbBuf)
    28872887        RT_BZERO(pThis->pu64RirbBuf, pThis->cbRirbBuf);
  • trunk/src/VBox/Devices/Audio/DevHDACommon.h

    r69119 r69717  
    231231#define HDA_REG_CORBSIZE            21          /* 0x4E */
    232232#define HDA_RMX_CORBSIZE            19
    233 /** NB: Up to and including ICH 10, sizes of CORB and RIRB are fixed at 256 entries. */
     233
     234/** Number of CORB buffer entries. */
     235#define HDA_CORB_SIZE               256
     236/** Number of RIRB buffer entries. */
     237#define HDA_RIRB_SIZE               256
    234238
    235239#define HDA_REG_RIRBLBASE           22          /* 0x50 */
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