VirtualBox

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


Ignore:
Timestamp:
Aug 18, 2010 2:59:21 AM (14 years ago)
Author:
vboxsync
Message:

Audio/HDA: corrects capasity of CORB and RIRB.

File:
1 edited

Legend:

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

    r31507 r31741  
    160160#define CORBSIZE_SZ_CAP(pState) (HDA_REG(pState, ICH6_HDA_REG_CORBSIZE) & ICH6_HDA_CORBSIZE_SZ_CAP)
    161161/* till ich 10 sizes of CORB and RIRB are harcoded to 256 in real hw */
    162 #define CORBSIZE(pState) (255)
    163162
    164163#define ICH6_HDA_REG_RIRLBASE  20 /* 0x50 */
     
    196195#define RIRBSIZE_SZ(pState)     (HDA_REG(pState, ICH6_HDA_REG_RIRBSIZE) & ICH6_HDA_RIRBSIZE_SZ)
    197196#define RIRBSIZE_SZ_CAP(pState) (HDA_REG(pState, ICH6_HDA_REG_RIRBSIZE) & ICH6_HDA_RIRBSIZE_SZ_CAP)
    198 #define RIRBSIZE(pState)        (255)
    199197
    200198
     
    369367    /* size in bytes of CORB buf */
    370368    uint32_t    cbCorbBuf;
    371     /* size in double words of CORB buf */
    372     uint8_t     cdwCorbBuf;
    373369    /* pointer on RIRB buf */
    374370    uint64_t    *pu64RirbBuf;
    375371    /* size in bytes of RIRB buf */
    376372    uint32_t    cbRirbBuf;
    377     /* size in quad words of RIRB buf */
    378     uint8_t     cdqRirbBuf;
    379373    /* indicates if HDA in reset. */
    380374    bool        fInReset;
     
    14261420    //** @todo r=michaln: There should be LogRel statements when the guest initializes
    14271421    // or resets the HDA chip, and possibly also when opening the PCM streams.
    1428     pThis->hda.cdwCorbBuf = CORBSIZE(&pThis->hda);
    1429     pThis->hda.cbCorbBuf = CORBSIZE(&pThis->hda) * sizeof(uint32_t);
     1422    pThis->hda.cbCorbBuf = 256 * sizeof(uint32_t);
    14301423
    14311424    if (pThis->hda.pu32CorbBuf)
     
    14341427        pThis->hda.pu32CorbBuf = (uint32_t *)RTMemAllocZ(pThis->hda.cbCorbBuf);
    14351428
    1436     pThis->hda.cdqRirbBuf = RIRBSIZE(&pThis->hda);
    1437     pThis->hda.cbRirbBuf = RIRBSIZE(&pThis->hda) * sizeof(uint64_t);
     1429    pThis->hda.cbRirbBuf = 256 * sizeof(uint64_t);
    14381430    if (pThis->hda.pu64RirbBuf)
    14391431        memset(pThis->hda.pu64RirbBuf, 0, pThis->hda.cbRirbBuf);
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