mirror of https://github.com/thesofproject/sof.git
821f961fba
Smart amp test chooses a process function based on the sink only. Because of this, there's a possibility that one of the sources has a 16bit format, which can't be safely processed by the 32bit process function. The crash only happened when dai_copier sent one less sample than usual to the smart_amp. This makes total sample count an odd number, making the data in the audio_stream buffer misaligned. This patch changes the prepare function of smart_amp_test to consider all the sources and sinks while deciding which process function to use. Signed-off-by: Tobiasz Dryjanski <tobiaszx.dryjanski@intel.com> |
||
---|---|---|
.. | ||
arch | ||
audio | ||
debug | ||
drivers | ||
idc | ||
include | ||
init | ||
ipc | ||
lib | ||
library_manager | ||
logging | ||
math | ||
module | ||
platform | ||
probe | ||
samples | ||
schedule | ||
trace | ||
CMakeLists.txt | ||
Kconfig | ||
spinlock.c |