Skip to content

Commit

Permalink
Merge pull request #154 from thesofproject/master
Browse files Browse the repository at this point in the history
test: update mixer ut
  • Loading branch information
jajanusz authored Jul 26, 2018
2 parents c3a1f9a + ff22d80 commit 133c3f3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/cmocka/src/audio/mixer/mixer_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include <sof/ipc.h>
#include <sof/audio/buffer.h>
#include <sof/audio/component.h>
#include <sof/audio/format.h>

#include "comp_mock.h"

Expand Down Expand Up @@ -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 = {
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 133c3f3

Please sign in to comment.