VirtualBox

Changeset 89873 in vbox for trunk


Ignore:
Timestamp:
Jun 24, 2021 9:11:18 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145331
Message:

DevHda: Removed now obsolete config values: PosAdjustEnabled, PosAdjustFrames and TransferHeuristicsEnabled. bugref:9890

Location:
trunk/src/VBox/Devices/Audio
Files:
2 edited

Legend:

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

    r89872 r89873  
    47544754                                  "|InitialDelayMs"
    47554755                                  "|TimerHz"
    4756                                   "|PosAdjustEnabled"
    4757                                   "|PosAdjustFrames"
    4758                                   "|TransferHeuristicsEnabled"
    47594756                                  "|DebugEnabled"
    47604757                                  "|DebugPathOut",
     
    48024799        return PDMDevHlpVMSetError(pDevIns, rc, RT_SRC_POS,
    48034800                                   N_("HDA configuration error: Out of range: 0 <= InitialDelayMs < 256: %u"), pThis->msInitialDelay);
    4804 
    4805     /** @todo fPosAdjustEnabled is not honored anymore.   */
    4806     rc = pHlp->pfnCFGMQueryBoolDef(pCfg, "PosAdjustEnabled", &pThis->fPosAdjustEnabled, true);
    4807     if (RT_FAILURE(rc))
    4808         return PDMDEV_SET_ERROR(pDevIns, rc,
    4809                                 N_("HDA configuration error: failed to read position adjustment enabled as boolean"));
    4810     if (!pThis->fPosAdjustEnabled)
    4811         LogRel(("HDA: Position adjustment is disabled\n"));
    4812 
    4813     /** @todo cPosAdjustFrames is not consulted anymore.   */
    4814     rc = pHlp->pfnCFGMQueryU16Def(pCfg, "PosAdjustFrames", &pThis->cPosAdjustFrames, HDA_POS_ADJUST_DEFAULT);
    4815     if (RT_FAILURE(rc))
    4816         return PDMDEV_SET_ERROR(pDevIns, rc,
    4817                                 N_("HDA configuration error: failed to read position adjustment frames as unsigned integer"));
    4818     if (pThis->cPosAdjustFrames)
    4819         LogRel(("HDA: Using custom position adjustment (%RU16 audio frames)\n", pThis->cPosAdjustFrames));
    4820 
    4821     /** @todo fTransferHeuristicsEnabled is not used anymore.   */
    4822     rc = pHlp->pfnCFGMQueryBoolDef(pCfg, "TransferHeuristicsEnabled", &pThis->fTransferHeuristicsEnabled, true);
    4823     if (RT_FAILURE(rc))
    4824         return PDMDEV_SET_ERROR(pDevIns, rc,
    4825                                 N_("HDA configuration error: failed to read data transfer heuristics enabled as boolean"));
    4826     if (!pThis->fTransferHeuristicsEnabled)
    4827         LogRel(("HDA: Data transfer heuristics are disabled\n"));
    48284801
    48294802    rc = pHlp->pfnCFGMQueryBoolDef(pCfg, "DebugEnabled", &pThisCC->Dbg.fEnabled, false);
  • trunk/src/VBox/Devices/Audio/DevHda.h

    r89872 r89873  
    125125    /** Response Interrupt Count (RINTCNT). */
    126126    uint16_t                u16RespIntCnt;
    127     /** Position adjustment (in audio frames).
    128      *
    129      *  This is not an official feature of the HDA specs, but used by
    130      *  certain OS drivers (e.g. snd_hda_intel) to work around certain
    131      *  quirks by "real" HDA hardware implementations.
    132      *
    133      *  The position adjustment specifies how many audio frames
    134      *  a stream is ahead from its actual reading/writing position when
    135      *  starting a stream.
    136      */
    137     uint16_t                cPosAdjustFrames;
    138     /** Whether the position adjustment is enabled or not. */
    139     bool                    fPosAdjustEnabled;
    140     /** Whether data transfer heuristics are enabled or not.
    141      *  This tries to determine the approx. data rate a guest audio driver expects. */
    142     bool                    fTransferHeuristicsEnabled;
    143127    /** DMA position buffer enable bit. */
    144128    bool                    fDMAPosition;
    145129    /** Current IRQ level. */
    146130    uint8_t                 u8IRQL;
     131    uint8_t                 abPadding[4];
    147132    /** The device timer Hz rate. Defaults to HDA_TIMER_HZ_DEFAULT. */
    148133    uint16_t                uTimerHz;
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