From 97a16bbf4e124564557706204bd7e1174ce8ebcd Mon Sep 17 00:00:00 2001 From: Slawomir Blauciak Date: Thu, 26 Jul 2018 10:33:01 +0200 Subject: [PATCH] test: update mixer ut Signed-off-by: Slawomir Blauciak --- test/cmocka/src/audio/mixer/mixer_test.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/cmocka/src/audio/mixer/mixer_test.c b/test/cmocka/src/audio/mixer/mixer_test.c index 6e9ed6f02..dac7e4432 100644 --- a/test/cmocka/src/audio/mixer/mixer_test.c +++ b/test/cmocka/src/audio/mixer/mixer_test.c @@ -38,6 +38,7 @@ #include #include #include +#include #include "comp_mock.h" @@ -100,11 +101,10 @@ static struct mix_test_case mix_test_cases[] = { TEST_CASE(2, 2), TEST_CASE(2, 4), TEST_CASE(2, 8), + TEST_CASE(3, 2), TEST_CASE(4, 2), - /* These tests will not pass with the current implementation of mixer */ - //TEST_CASE(3, 2), - //TEST_CASE(6, 2), - //TEST_CASE(8, 2) + TEST_CASE(6, 2), + TEST_CASE(8, 2) }; static struct sof_ipc_comp mixer = { @@ -287,7 +287,7 @@ static void test_audio_mixer_copy(void **state) sum += samples[smp]; } - sum /= tc->num_sources; + sum = sat_int32(sum); uint32_t *out_samples = post_mixer_buf->addr;