VirtualBox

Ignore:
Timestamp:
Jan 17, 2019 11:32:14 AM (6 years ago)
Author:
vboxsync
Message:

Audio/AC97: More verbose BDL(E) logging.

File:
1 edited

Legend:

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

    r76849 r76851  
    271271typedef struct AC97BDLE
    272272{
     273    /** Location of data buffer (bits 31:1). */
    273274    uint32_t addr;
     275    /** Flags (bits 31 + 30) and length (bits 15:0) of data buffer (in audio samples). */
    274276    uint32_t ctl_len;
    275277} AC97BDLE;
     
    764766# endif
    765767    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",
    767769                  pRegs->civ, pRegs->bd.addr, pRegs->bd.ctl_len >> 16,
    768770                  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)));
    770774}
    771775
     
    14431447        PDMDevHlpPhysRead(pThis->CTX_SUFF(pDevIns), u64BDLBase + i * sizeof(AC97BDLE), &BDLE, sizeof(AC97BDLE));
    14441448
     1449# ifndef RT_LITTLE_ENDIAN
     1450#  error "Please adapt the code (audio buffers are little endian)!"
     1451# else
    14451452        BDLE.addr    = RT_H2LE_U32(BDLE.addr & ~3);
    14461453        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",
    14491456                  i, BDLE.addr,
    14501457                  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)));
    14521461
    14531462        cbBDLE += (BDLE.ctl_len & AC97_BD_LEN_MASK) << 1; /** @todo r=andy Ditto. */
     
    31923201                            /* Fetch the initial BDLE descriptor. */
    31933202                            ichac97R3StreamFetchBDLE(pThis, pStream);
     3203# ifdef LOG_ENABLED
     3204                            ichac97R3BDLEDumpAll(pThis, pStream->Regs.bdbar, pStream->Regs.lvi + 1);
     3205# endif
    31943206                            ichac97R3StreamEnable(pThis, pStream, true /* fEnable */);
    31953207
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