File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
test/cmocka/src/audio/mixer Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 3838#include <sof/ipc.h>
3939#include <sof/audio/buffer.h>
4040#include <sof/audio/component.h>
41+ #include <sof/audio/format.h>
4142
4243#include "comp_mock.h"
4344
@@ -100,11 +101,10 @@ static struct mix_test_case mix_test_cases[] = {
100101 TEST_CASE (2 , 2 ),
101102 TEST_CASE (2 , 4 ),
102103 TEST_CASE (2 , 8 ),
104+ TEST_CASE (3 , 2 ),
103105 TEST_CASE (4 , 2 ),
104- /* These tests will not pass with the current implementation of mixer */
105- //TEST_CASE(3, 2),
106- //TEST_CASE(6, 2),
107- //TEST_CASE(8, 2)
106+ TEST_CASE (6 , 2 ),
107+ TEST_CASE (8 , 2 )
108108};
109109
110110static struct sof_ipc_comp mixer = {
@@ -287,7 +287,7 @@ static void test_audio_mixer_copy(void **state)
287287 sum += samples [smp ];
288288 }
289289
290- sum /= tc -> num_sources ;
290+ sum = sat_int32 ( sum ) ;
291291
292292 uint32_t * out_samples = post_mixer_buf -> addr ;
293293
You can’t perform that action at this time.
0 commit comments