Changeset 76851 in vbox for trunk/src/VBox/Devices/Audio/DevIchAc97.cpp
- Timestamp:
- Jan 17, 2019 11:32:14 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchAc97.cpp
r76849 r76851 271 271 typedef struct AC97BDLE 272 272 { 273 /** Location of data buffer (bits 31:1). */ 273 274 uint32_t addr; 275 /** Flags (bits 31 + 30) and length (bits 15:0) of data buffer (in audio samples). */ 274 276 uint32_t ctl_len; 275 277 } AC97BDLE; … … 764 766 # endif 765 767 pRegs->picb = pRegs->bd.ctl_len & AC97_BD_LEN_MASK; 766 LogFlowFunc(("bd %2d addr=%#x ctl=%#06x len=%#x(%d bytes) \n",768 LogFlowFunc(("bd %2d addr=%#x ctl=%#06x len=%#x(%d bytes), bup=%RTbool, ioc=%RTbool\n", 767 769 pRegs->civ, pRegs->bd.addr, pRegs->bd.ctl_len >> 16, 768 770 pRegs->bd.ctl_len & AC97_BD_LEN_MASK, 769 (pRegs->bd.ctl_len & AC97_BD_LEN_MASK) << 1)); /** @todo r=andy Assumes 16bit samples. */ 771 (pRegs->bd.ctl_len & AC97_BD_LEN_MASK) << 1, /** @todo r=andy Assumes 16bit samples. */ 772 RT_BOOL(pRegs->bd.ctl_len & AC97_BD_BUP), 773 RT_BOOL(pRegs->bd.ctl_len & AC97_BD_IOC))); 770 774 } 771 775 … … 1443 1447 PDMDevHlpPhysRead(pThis->CTX_SUFF(pDevIns), u64BDLBase + i * sizeof(AC97BDLE), &BDLE, sizeof(AC97BDLE)); 1444 1448 1449 # ifndef RT_LITTLE_ENDIAN 1450 # error "Please adapt the code (audio buffers are little endian)!" 1451 # else 1445 1452 BDLE.addr = RT_H2LE_U32(BDLE.addr & ~3); 1446 1453 BDLE.ctl_len = RT_H2LE_U32(BDLE.ctl_len); 1447 1448 LogFunc(("\t#%03d BDLE(adr:0x%llx, size:%RU32 [%RU32 bytes] )\n",1454 #endif 1455 LogFunc(("\t#%03d BDLE(adr:0x%llx, size:%RU32 [%RU32 bytes], bup:%RTbool, ioc:%RTbool)\n", 1449 1456 i, BDLE.addr, 1450 1457 BDLE.ctl_len & AC97_BD_LEN_MASK, 1451 (BDLE.ctl_len & AC97_BD_LEN_MASK) << 1)); /** @todo r=andy Assumes 16bit samples. */ 1458 (BDLE.ctl_len & AC97_BD_LEN_MASK) << 1, /** @todo r=andy Assumes 16bit samples. */ 1459 RT_BOOL(BDLE.ctl_len & AC97_BD_BUP), 1460 RT_BOOL(BDLE.ctl_len & AC97_BD_IOC))); 1452 1461 1453 1462 cbBDLE += (BDLE.ctl_len & AC97_BD_LEN_MASK) << 1; /** @todo r=andy Ditto. */ … … 3192 3201 /* Fetch the initial BDLE descriptor. */ 3193 3202 ichac97R3StreamFetchBDLE(pThis, pStream); 3203 # ifdef LOG_ENABLED 3204 ichac97R3BDLEDumpAll(pThis, pStream->Regs.bdbar, pStream->Regs.lvi + 1); 3205 # endif 3194 3206 ichac97R3StreamEnable(pThis, pStream, true /* fEnable */); 3195 3207
Note:
See TracChangeset
for help on using the changeset viewer.