Changeset 31741 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- Aug 18, 2010 2:59:21 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchIntelHDA.cpp
r31507 r31741 160 160 #define CORBSIZE_SZ_CAP(pState) (HDA_REG(pState, ICH6_HDA_REG_CORBSIZE) & ICH6_HDA_CORBSIZE_SZ_CAP) 161 161 /* till ich 10 sizes of CORB and RIRB are harcoded to 256 in real hw */ 162 #define CORBSIZE(pState) (255)163 162 164 163 #define ICH6_HDA_REG_RIRLBASE 20 /* 0x50 */ … … 196 195 #define RIRBSIZE_SZ(pState) (HDA_REG(pState, ICH6_HDA_REG_RIRBSIZE) & ICH6_HDA_RIRBSIZE_SZ) 197 196 #define RIRBSIZE_SZ_CAP(pState) (HDA_REG(pState, ICH6_HDA_REG_RIRBSIZE) & ICH6_HDA_RIRBSIZE_SZ_CAP) 198 #define RIRBSIZE(pState) (255)199 197 200 198 … … 369 367 /* size in bytes of CORB buf */ 370 368 uint32_t cbCorbBuf; 371 /* size in double words of CORB buf */372 uint8_t cdwCorbBuf;373 369 /* pointer on RIRB buf */ 374 370 uint64_t *pu64RirbBuf; 375 371 /* size in bytes of RIRB buf */ 376 372 uint32_t cbRirbBuf; 377 /* size in quad words of RIRB buf */378 uint8_t cdqRirbBuf;379 373 /* indicates if HDA in reset. */ 380 374 bool fInReset; … … 1426 1420 //** @todo r=michaln: There should be LogRel statements when the guest initializes 1427 1421 // 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); 1430 1423 1431 1424 if (pThis->hda.pu32CorbBuf) … … 1434 1427 pThis->hda.pu32CorbBuf = (uint32_t *)RTMemAllocZ(pThis->hda.cbCorbBuf); 1435 1428 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); 1438 1430 if (pThis->hda.pu64RirbBuf) 1439 1431 memset(pThis->hda.pu64RirbBuf, 0, pThis->hda.cbRirbBuf);
Note:
See TracChangeset
for help on using the changeset viewer.