提交 c047d610 编写于 作者: G Goldfish64

AudioDxe: Fix issue with playback ending early

上级 52d5f148
......@@ -67,7 +67,7 @@ HdaControllerStreamOutputPollTimerHandler (
// Get stream DMA position.
//
HdaStreamDmaPos = HdaStream->HdaControllerDev->DmaPositions[HdaStream->Index].Position;
if (HdaStreamDmaPos > HdaStream->DmaPositionLast) {
if (HdaStreamDmaPos >= HdaStream->DmaPositionLast) {
DmaChanged = HdaStreamDmaPos - HdaStream->DmaPositionLast;
} else {
DmaChanged = (HDA_STREAM_BUF_SIZE - HdaStream->DmaPositionLast) + HdaStreamDmaPos;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册