Skip to content

Commit

Permalink
SMCDellSensors: do not limit waiting for no audio events
Browse files Browse the repository at this point in the history
  • Loading branch information
lvs1974 committed Oct 27, 2020
1 parent 847d7f5 commit 707f641
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Sensors/SMCDellSensors/SMIMonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,7 @@ int SMIMonitor::i8k_smm(SMMRegisters *regs) {
int rc;
int eax = regs->eax; //input value

uint32_t attempts = 0;
while (atomic_load_explicit(&KERNELHOOKS::active_output, memory_order_acquire)) {
IOSleep(5);
if (++attempts % 600 == 0) {
//SYSLOG("sdell", "currently audio engine user client performs input/output, active_outputs = %d", atomic_load_explicit(&KERNELHOOKS::active_output, memory_order_acquire));
KERNELHOOKS::activateTimer();
}
}
while (atomic_load_explicit(&KERNELHOOKS::active_output, memory_order_acquire)) { IOSleep(4); }

atomic_store_explicit(&busy, true, memory_order_release);

Expand Down

0 comments on commit 707f641

Please sign in to comment.