[PATCH] speaker-test: add support for S24_LE and S24_BE

Takashi Iwai tiwai at suse.de
Sun Mar 14 09:34:30 CET 2021


On Fri, 12 Mar 2021 18:03:16 +0100,
Pierre-Louis Bossart wrote:
> 
> 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 at linux.intel.com>

Thanks, applied now.


Takashi


More information about the Alsa-devel mailing list