- Timestamp:
- Jul 4, 2017 1:51:06 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 116690
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchAc97.cpp
r67776 r67778 115 115 116 116 #define AC97_BD_MAX_LEN_MASK 0xFFFE 117 118 #define AC97_MAX_BDLE 32 /**< Maximum number of BDLEs. */ 117 119 /** @} */ 118 120 … … 2204 2206 pRegs->sr &= ~AC97_SR_CELV; 2205 2207 pRegs->civ = pRegs->piv; 2206 pRegs->piv = (pRegs->piv + 1) % 32; /** @todo r=andy Define for max BDLEs? */2208 pRegs->piv = (pRegs->piv + 1) % AC97_MAX_BDLE; 2207 2209 2208 2210 ichac97StreamFetchBDLE(pThis, pStream); … … 2316 2318 { 2317 2319 pRegs->civ = pRegs->piv; 2318 pRegs->piv = (pRegs->piv + 1) % 32; /** @todo r=andy Define for max BDLEs? */2320 pRegs->piv = (pRegs->piv + 1) % AC97_MAX_BDLE; 2319 2321 ichac97StreamFetchBDLE(pThis, pStream); 2320 2322 } … … 2531 2533 pRegs->sr &= ~(AC97_SR_DCH | AC97_SR_CELV); 2532 2534 pRegs->civ = pRegs->piv; 2533 pRegs->piv = (pRegs->piv + 1) % 32;2535 pRegs->piv = (pRegs->piv + 1) % AC97_MAX_BDLE; 2534 2536 2535 2537 ichac97StreamFetchBDLE(pThis, pStream); 2536 2538 } 2537 pRegs->lvi = u32Val % 32;2539 pRegs->lvi = u32Val % AC97_MAX_BDLE; 2538 2540 Log3Func(("[SD%RU8] LVI <- %#x\n", pStream->u8SD, u32Val)); 2539 2541 break; … … 2578 2580 2579 2581 pRegs->civ = pRegs->piv; 2580 pRegs->piv = (pRegs->piv + 1) % 32;2582 pRegs->piv = (pRegs->piv + 1) % AC97_MAX_BDLE; 2581 2583 2582 2584 pRegs->sr &= ~AC97_SR_DCH;
Note:
See TracChangeset
for help on using the changeset viewer.