]> git.alsa-project.org Git - alsa-utils.git/commit
speaker-test: add support for S24_LE and S24_BE
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 12 Mar 2021 17:03:16 +0000 (11:03 -0600)
committerTakashi Iwai <tiwai@suse.de>
Sun, 14 Mar 2021 08:33:39 +0000 (09:33 +0100)
commit00be486131129a6d209de62202d2a4974638127f
tree7cadea5aa50f46d7489091b2e06b5db2161c9321
parentc2d27acfce79dfdd23a397f884c3886511acbbf2
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>
speaker-test/speaker-test.c