VirtualBox

Changeset 80733 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Sep 11, 2019 2:10:42 PM (5 years ago)
Author:
vboxsync
Message:

Audio/AC97: Try to relax (EACS VRA / VRM) capabilities / checks to make it more compatible.

File:
1 edited

Legend:

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

    r80704 r80733  
    24992499    uint8_t rs = val & AC97_REC_MASK;
    25002500    uint8_t ls = (val >> 8) & AC97_REC_MASK;
    2501     PDMAUDIORECSOURCE ars = ichac97R3IdxToRecSource(rs);
    2502     PDMAUDIORECSOURCE als = ichac97R3IdxToRecSource(ls);
     2501
     2502    const PDMAUDIORECSOURCE ars = ichac97R3IdxToRecSource(rs);
     2503    const PDMAUDIORECSOURCE als = ichac97R3IdxToRecSource(ls);
     2504
    25032505    rs = ichac97R3RecSourceToIdx(ars);
    25042506    ls = ichac97R3RecSourceToIdx(als);
     2507
     2508    LogRel(("AC97: Record select to left=%s, right=%s\n", DrvAudioHlpRecSrcToStr(ars), DrvAudioHlpRecSrcToStr(als)));
     2509
    25052510    ichac97MixerSet(pThis, AC97_Record_Select, rs | (ls << 8));
    25062511}
     
    25362541
    25372542    /* Configure Extended Audio ID (EAID) + Control & Status (EACS) registers. */
    2538     const uint16_t fEAID = AC97_EAID_REV1;                /* Our hardware is AC'97 rev2.3 compliant. */
    2539     const uint16_t fEACS = AC97_EAID_VRA | AC97_EAID_VRM; /* Variable Rate PCM Audio (VRA) + Mic-In (VRM) capable. */
     2543    const uint16_t fEAID = AC97_EAID_REV1 | AC97_EACS_VRA | AC97_EACS_VRM; /* Our hardware is AC'97 rev2.3 compliant. */
     2544    const uint16_t fEACS = AC97_EACS_VRA | AC97_EACS_VRM;                  /* Variable Rate PCM Audio (VRA) + Mic-In (VRM) capable. */
     2545
     2546    LogRel(("AC97: Mixer reset (EAID=0x%x, EACS=0x%x)\n", fEAID, fEACS));
    25402547
    25412548    ichac97MixerSet(pThis, AC97_Extended_Audio_ID,        fEAID);
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