alsa-utils/speaker-test
Pierre-Louis Bossart 00be486131 speaker-test: add support for S24_LE and S24_BE
These formats are sometimes advertised by drivers, e.g. SOF.
The format is 3 bytes packed in 32-bit container, with the MSB zeroed
out.

sample: 0x00123456

S24_LE format:
b0 56
b1 34
b2 12
b3 00

S24_BE format:
b0 00
b1 12
b2 34
b3 56

I only tested the S24_LE format with the SOF driver, S24_BE was added
for symmetry only.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2021-03-14 09:33:39 +01:00
..
samples Install sound samples to correct places. 2005-04-16 11:09:26 +00:00
Makefile.am Makefiles - use AM_CPPFLAGS instead INCLUDES 2014-05-07 10:55:59 +02:00
pink.c Implement Pink noise output. 2005-04-14 15:53:53 +00:00
pink.h Implement Pink noise output. 2005-04-14 15:53:53 +00:00
readme.txt Update to speaker-tools 0.0.7 2005-02-18 10:18:53 +00:00
speaker-test.1 speaker-test: update man page for new -X arg, also consistency fixes 2014-02-26 16:15:54 +01:00
speaker-test.c speaker-test: add support for S24_LE and S24_BE 2021-03-14 09:33:39 +01:00

To make or build just type

make

To test: -
1) Just stereo sound from one stereo jack: -
./speaker-test -Dplug:front -c2
2) A 4 speaker setup from two stereo jacks: -
./speaker-test -Dplug:surround40 -c4
3) A 5.1 speaker setup from three stereo jacks: -
./speaker-test -Dplug:surround51 -c6