audio: module_adapter: Solve the build error using xtensa toolchain
Build error info is as follows when compiling with xt-xx toolchain:
1.redefinition of ‘i’
2.‘for’ loop initial declaration used outside C99 mode
Fix the above error.
topology2: change the sample type for Linux audio system
At first the sample type is set to MSB_INTEGER to follow windows
settings, but actually we use LSB_INTERGER type such as S24_4LE.
Now change the default sample type to LSB_INTERGER to align with
FW usage. For DAI copier we need to use MSB_INTERGER for hardware
requirement. Currently sample type only affect s24/c32 case, so only
change sample type in dai for this format config.
FW will use sample type to choose correct format conversion
function and can deal with Windows audio stream correctly with MSB
s24/c32 format.
out_fmt_cfg is redefined for a alsa-lib bug. Alsa-lib will first process
out_fmt_cfg = '$[($out_channels | ($out_valid_bit_depth * 256)) |
($out_sample_type * 65536)]' in base class and then deal with
out_sample_type, so error is reported. Now first define out_sample_type
and then out_fmt_cfg, everything works.
pcm:_converter: simplify the pcm conversion algorithm
Remove gateway type and direction for pcm conversion check and will move
them to copier module. This will make pcm conversion check more general
and simple. Also remove s16/c32 for gateway since it is never used.
platform: tigerlake: cleanup unused code for IPC3, SPI, GPIO, XTOS
Remove code segments in platform.c that are no longer used
in the tigerlake platform configuration. This includes code related
to IPC3, GPIO, SPI, DMA scheduling domain and XTOS. Additionally interrupt
initialization via platform_interrupt_init() can be removed as it is
a no-op in Zephyr builds.
Signed-off-by: Kai Vehmanen <email address hidden>
Zephyr native platforms do not need to have low-level definitions
in the platform.h file. These are now handled by Zephyr board files,
so stick to a single place for the definitions and remove the values
from here.
Signed-off-by: Kai Vehmanen <email address hidden>