mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 17:52:26 -05:00
parent
689ad0752c
commit
497180a650
Notes:
sideshowbarker
2024-07-18 00:35:26 +09:00
Author: https://github.com/gmta Commit: https://github.com/SerenityOS/serenity/commit/497180a6505 Pull-request: https://github.com/SerenityOS/serenity/pull/11100 Issue: https://github.com/SerenityOS/serenity/issues/11094 Reviewed-by: https://github.com/IdanHo ✅ Reviewed-by: https://github.com/supercomputer7
1 changed files with 4 additions and 2 deletions
|
@ -69,9 +69,12 @@ bool AC97::handle_irq(RegisterState const&)
|
|||
bool is_completion_interrupt = (pcm_out_status & AudioStatusRegisterFlag::BufferCompletionInterruptStatus) > 0;
|
||||
bool is_fifo_error = (pcm_out_status & AudioStatusRegisterFlag::FIFOError) > 0;
|
||||
|
||||
VERIFY(is_completion_interrupt);
|
||||
VERIFY(!is_fifo_error);
|
||||
|
||||
// If there is no buffer completion, we're not going to do anything
|
||||
if (!is_completion_interrupt)
|
||||
return false;
|
||||
|
||||
// On interrupt, we need to reset PCM interrupt flags by setting their bits
|
||||
pcm_out_status = AudioStatusRegisterFlag::LastValidBufferCompletionInterrupt
|
||||
| AudioStatusRegisterFlag::BufferCompletionInterruptStatus
|
||||
|
@ -84,7 +87,6 @@ bool AC97::handle_irq(RegisterState const&)
|
|||
} else {
|
||||
m_irq_queue.wake_all();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue