1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 09:58:14 +00:00
serenity/Kernel/Devices/Audio
Jelle Raaijmakers 5c64686666 Kernel+AudioServer: Use interrupts for Intel HDA audio buffer completion
We used to not care about stopping an audio output stream for Intel HDA
since AudioServer would continuously send new buffers to play. Since
707f5ac150ef858760eb9faa52b9ba80c50c4262 however, that has changed.

Intel HDA now uses interrupts to detect when each buffer was completed
by the device, and uses a simple heuristic to detect whether a buffer
underrun has occurred so it can stop the output stream.

This was tested on Qemu's Intel HDA (Linux x86_64) and a bare metal MSI
Starship/Matisse HD Audio Controller.
2023-07-04 00:05:34 +02:00
..
AC97 Kernel: Set audio sample rate to 44.1 KHz by default 2023-06-21 12:26:32 +02:00
IntelHDA Kernel+AudioServer: Use interrupts for Intel HDA audio buffer completion 2023-07-04 00:05:34 +02:00
Channel.cpp Kernel: Set audio sample rate to 44.1 KHz by default 2023-06-21 12:26:32 +02:00
Channel.h Kernel: Move {Virtual,Physical}Address classes to the Memory directory 2023-06-04 21:32:34 +02:00
Controller.h Kernel: Move {Virtual,Physical}Address classes to the Memory directory 2023-06-04 21:32:34 +02:00
Management.cpp Kernel: Move AC'97 to its own subdirectory 2023-06-21 12:26:32 +02:00
Management.h Kernel/Audio: Propagate errors when creating AudioChannels 2023-04-14 19:23:12 +02:00