Skip to content

Commit

Permalink
Fix timeouts not being handled correctly. Fix ADL-N HDMI
Browse files Browse the repository at this point in the history
  • Loading branch information
coolstar committed Feb 12, 2024
1 parent 0ac1bca commit 3f58513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sklhdaudbus/hdaudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ NTSTATUS HDA_TransferCodecVerbs(
KeQuerySystemTime(&CurrentTime);

if (((CurrentTime.QuadPart - StartTime.QuadPart) / (10 * 1000)) >= timeout_ms) {
InterlockedAdd(&fdoCtx->rirb.cmds[codecAddr], Count - TransferredCount);
InterlockedAdd(&fdoCtx->rirb.cmds[codecAddr], TransferredCount - Count);

SklHdAudBusPrint(DEBUG_LEVEL_VERBOSE, DBG_IOCTL, "%s timeout (Count: %d, transferred %d)!\n", __func__, Count, TransferredCount);
status = STATUS_IO_TIMEOUT;
Expand Down

0 comments on commit 3f58513

Please sign in to comment.