Skip to content

Commit 133c3f3

Browse files
authored
Merge pull request #154 from thesofproject/master
test: update mixer ut
2 parents c3a1f9a + ff22d80 commit 133c3f3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/cmocka/src/audio/mixer/mixer_test.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
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

110110
static 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

0 commit comments

Comments
 (0)