CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2025/11/18 02:30:27

Modified files:
        sys/dev        : audio.c 

Log message:
audio: Use the full audio ring buffer for DMA

The reader/writer pointer within the DMA buffer (on hardware that has
it, like azalia and envy) is used by the interrupt handler to track
the hardware position and, in turn, detect underruns. This works as
long as the interrupt is not delayed enough for the pointer to wrap.
Using the full buffer instead of a tiny portion of it makes underruns
detection more reliable, especially on low-latency configurations or
very busy systems.

Userland still uses the same buffer size as before, which now
corresponds to a sliding window within the DMA ring buffer. The audio
latency is unchanged and there's no user-visible behavior change
during normal operation.

Reply via email to