HomeFreeBSD

sound: Unit test the pcm sample read and write macros

Description

sound: Unit test the pcm sample read and write macros

Main goal is to have a unit test, with sample test data that is verified
against the current macro implementation of pcm sample read and write
functions. With a test in place, we can proceed on a planned refactoring
of the sample read and write code, and confidently check the new code
for regressions.

Implementation of the unit test itself has to avoid any cast or
conversion affected by endianness, to make the tests compatible with all
machine architectures.

MFC after: 1 week
Reviewed by: christos, markj
Differential Revision: https://reviews.freebsd.org/D48330

(cherry picked from commit 27ef5d48c729defb83a8822143dc71ab17f9d68b)

Details

Provenance
dev_submerge.chAuthored on Tue, Jan 21, 11:58 AM
christosCommitted on Tue, Jan 28, 2:04 PM
Reviewer
christos
Differential Revision
D48330: sound: Unit test the pcm sample read and write macros
Parents
rGaab45924bdb1: smr: Load to accept pointers to const pointers
Branches
Unknown
Tags
Unknown