Skip to content

Commit

Permalink
ipc4: pcm_converter: Add channel remapping conversion functions
Browse files Browse the repository at this point in the history
Adds a set of conversion functions that perform both format conversion
and channel remapping. These are required to swap channels for the device
posture feature.

Signed-off-by: Serhiy Katsyuba <serhiy.katsyuba@intel.com>
  • Loading branch information
serhiy-katsyuba-intel authored and kv2019i committed Jul 17, 2024
1 parent 3199786 commit 8082006
Show file tree
Hide file tree
Showing 6 changed files with 538 additions and 3 deletions.
15 changes: 15 additions & 0 deletions src/audio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,13 @@ config PCM_CONVERTER_FORMAT_S32LE
help
Support 32 bit processing data format with sign and in little endian format

config PCM_CONVERTER_FORMAT_S16_4LE
bool "Support S16_4LE"
default y
help
Support the format of signed 16-bit little-endian in the 2 lower bytes
of a 32-bit container. This format is used, for example, by the SSP gateway.

config PCM_CONVERTER_FORMAT_FLOAT
bool "Support float"
default y
Expand Down Expand Up @@ -305,6 +312,14 @@ config PCM_CONVERTER_FORMAT_CONVERT_HIFI3
help
Use HIFI3 extensions for optimized format conversion (experimental).

config PCM_REMAPPING_CONVERTERS
bool "Channel remapping conversions"
default y
depends on IPC_MAJOR_4
help
Enable conversion functions that perform both format conversion
and channel remapping simultaneously.

config TRACE_CHANNEL
int "TRACE DMA Channel configuration"
default 0
Expand Down
4 changes: 4 additions & 0 deletions src/audio/pcm_converter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ add_local_sources(sof
pcm_converter.c
pcm_converter_generic.c
pcm_converter_hifi3.c)

if(CONFIG_PCM_REMAPPING_CONVERTERS)
add_local_sources(sof pcm_remap.c)
endif()
Loading

0 comments on commit 8082006

Please sign in to comment.