HomeFreeBSD

snd_hdspe(4): Only buffer_copy() audio data once.

Description

snd_hdspe(4): Only buffer_copy() audio data once.

Instead of blindly copying two periods of audio data to and from DMA
buffers, keep track of the writing position and derive the actual
part of audio data that needs to be copied.
This approximately halves the number of samples copied in total.

Differential Revision: https://reviews.freebsd.org/D44084

Details

Provenance
dev_submerge.chAuthored on Mar 31 2024, 7:14 PM
brCommitted on Mar 31 2024, 7:14 PM
Differential Revision
D44084: snd_hdspe(4): Only buffer_copy() audio data once.
Parents
rGfefb7c399b39: mountd.c: Add warning messages for administrative controls
Branches
Unknown
Tags
Unknown