- Timestamp:
- Jun 24, 2021 9:11:18 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 145331
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevHda.cpp
r89872 r89873 4754 4754 "|InitialDelayMs" 4755 4755 "|TimerHz" 4756 "|PosAdjustEnabled"4757 "|PosAdjustFrames"4758 "|TransferHeuristicsEnabled"4759 4756 "|DebugEnabled" 4760 4757 "|DebugPathOut", … … 4802 4799 return PDMDevHlpVMSetError(pDevIns, rc, RT_SRC_POS, 4803 4800 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"));4828 4801 4829 4802 rc = pHlp->pfnCFGMQueryBoolDef(pCfg, "DebugEnabled", &pThisCC->Dbg.fEnabled, false); -
trunk/src/VBox/Devices/Audio/DevHda.h
r89872 r89873 125 125 /** Response Interrupt Count (RINTCNT). */ 126 126 uint16_t u16RespIntCnt; 127 /** Position adjustment (in audio frames).128 *129 * This is not an official feature of the HDA specs, but used by130 * certain OS drivers (e.g. snd_hda_intel) to work around certain131 * quirks by "real" HDA hardware implementations.132 *133 * The position adjustment specifies how many audio frames134 * a stream is ahead from its actual reading/writing position when135 * 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;143 127 /** DMA position buffer enable bit. */ 144 128 bool fDMAPosition; 145 129 /** Current IRQ level. */ 146 130 uint8_t u8IRQL; 131 uint8_t abPadding[4]; 147 132 /** The device timer Hz rate. Defaults to HDA_TIMER_HZ_DEFAULT. */ 148 133 uint16_t uTimerHz;
Note:
See TracChangeset
for help on using the changeset viewer.