ipc4: add S24_4LE_MSB format support

For sample format with 24 bits valid sample bit and 32 bits container,
valid sample is at msb 24bits if IPC4_TYPE_MSB_INTEGER is set.

Signed-off-by: Rander Wang <rander.wang@intel.com>
This commit is contained in:
Rander Wang 2023-07-17 16:58:25 +08:00 committed by Kai Vehmanen
parent 67f9862956
commit ea10065a58
5 changed files with 16 additions and 1 deletions

View File

@ -572,6 +572,12 @@ config FORMAT_S24_3LE
help
Support packed 24 bit processing data format with sign and in little endian format
config FORMAT_S24_4LE_MSB
bool "Support S24_4LE_MSB"
default y
help
Support 24 bit processing data format with sign and in msb 24 bits format
config FORMAT_S32LE
bool "Support S32LE"
default y
@ -608,6 +614,12 @@ config PCM_CONVERTER_FORMAT_S24LE
help
Support 24 bit processing data format with sign and in little endian format
config PCM_CONVERTER_FORMAT_S24_4LE_MSB
bool "Support S24_4LE_MSB"
default y
help
Support 24 bit processing data format with sign and in msb 24 bits format
config PCM_CONVERTER_FORMAT_S24_3LE
bool "Support S24_3LE"
default n

View File

@ -56,6 +56,7 @@ enum sof_ipc_frame {
SOF_IPC_FRAME_FLOAT,
/* other formats here */
SOF_IPC_FRAME_S24_3LE,
SOF_IPC_FRAME_S24_4LE_MSB,
SOF_IPC_FRAME_U8,
};

View File

@ -29,7 +29,7 @@
/** \brief SOF ABI version major, minor and patch numbers */
#define SOF_ABI_MAJOR 3
#define SOF_ABI_MINOR 27
#define SOF_ABI_MINOR 28
#define SOF_ABI_PATCH 0
/** \brief SOF ABI version number. Format within 32bit word is MMmmmppp */

View File

@ -440,6 +440,7 @@ static void test_audio_sel(void **state)
#endif /* CONFIG_FORMAT_S24LE || CONFIG_FORMAT_S32LE */
/* TODO: add S24_3LE support */
/* TODO: add S24_4LE_MSB support */
/* TODO: add U8 support */
default:
break;

View File

@ -280,6 +280,7 @@ static void test_audio_vol(void **state)
break;
/* TODO: add 3LE support */
/* TODO: add 4LE_MSB support */
/* TODO: add U8 support */
default:
break;