audio: force pcm_converter_generic for IPC4 with zephyr

The copier component depends on special pcm conversion
code, which is only implemented in the generic pcm
converter. If we build SOF with IPC4 support with XCC,
the HIFI3 pcm converter is selected automatically, and
causes the issue of
    undefined reference to `pcm_func_vc_count'
    undefined reference to `pcm_func_vc_map'.

This patch forces the use of generic pcm converter
if build SOF with IPC4 and Zephyr.

This patch should be reverted once the HIFI3 pcm converter
counterpart is implemented.

Signed-off-by: Chao Song <chao.song@linux.intel.com>
This commit is contained in:
Chao Song 2022-02-11 12:51:02 +08:00 committed by Liam Girdwood
parent 487363fb1b
commit bf191f6b67
1 changed files with 4 additions and 0 deletions

View File

@ -28,7 +28,11 @@ struct audio_stream;
#ifndef UNIT_TEST
#if __XCC__ && XCHAL_HAVE_HIFI3 && CONFIG_FORMAT_CONVERT_HIFI3
#if __ZEPHYR__ && CONFIG_IPC_MAJOR_4
#define PCM_CONVERTER_GENERIC
#else
#define PCM_CONVERTER_HIFI3
#endif
#else
#define PCM_CONVERTER_GENERIC
#endif