[pulseaudio-discuss] [PATCH 02/10] cpu-test: Test svolume code on 4 channels instead of 3

Peter Meerwald pmeerw at pmeerw.net
Fri Mar 29 08:56:43 PDT 2013


From: Peter Meerwald <p.meerwald at bct-electronic.com>

Signed-off-by: Peter Meerwald <p.meerwald at bct-electronic.com>
---
 src/tests/cpu-test.c |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/tests/cpu-test.c b/src/tests/cpu-test.c
index aa4527a..3aa73f2 100644
--- a/src/tests/cpu-test.c
+++ b/src/tests/cpu-test.c
@@ -153,13 +153,14 @@ START_TEST (svolume_mmx_test) {
     mmx_func = pa_get_volume_func(PA_SAMPLE_S16NE);
 
     pa_log_debug("Checking MMX svolume");
-    for (i = 1; i <= 3; i++) {
+    for (i = 1; i <= 4; i++) {
         for (j = 0; j < 7; j++)
             run_volume_test(mmx_func, orig_func, j, i, TRUE, FALSE);
     }
     run_volume_test(mmx_func, orig_func, 7, 1, TRUE, TRUE);
     run_volume_test(mmx_func, orig_func, 7, 2, TRUE, TRUE);
     run_volume_test(mmx_func, orig_func, 7, 3, TRUE, TRUE);
+    run_volume_test(mmx_func, orig_func, 7, 4, TRUE, TRUE);
 }
 END_TEST
 
@@ -180,13 +181,14 @@ START_TEST (svolume_sse_test) {
     sse_func = pa_get_volume_func(PA_SAMPLE_S16NE);
 
     pa_log_debug("Checking SSE2 svolume");
-    for (i = 1; i <= 3; i++) {
+    for (i = 1; i <= 4; i++) {
         for (j = 0; j < 7; j++)
             run_volume_test(sse_func, orig_func, j, i, TRUE, FALSE);
     }
     run_volume_test(sse_func, orig_func, 7, 1, TRUE, TRUE);
     run_volume_test(sse_func, orig_func, 7, 2, TRUE, TRUE);
     run_volume_test(sse_func, orig_func, 7, 3, TRUE, TRUE);
+    run_volume_test(sse_func, orig_func, 7, 4, TRUE, TRUE);
 }
 END_TEST
 #endif /* defined (__i386__) || defined (__amd64__) */
@@ -209,13 +211,14 @@ START_TEST (svolume_arm_test) {
     arm_func = pa_get_volume_func(PA_SAMPLE_S16NE);
 
     pa_log_debug("Checking ARM svolume");
-    for (i = 1; i <= 3; i++) {
+    for (i = 1; i <= 4; i++) {
         for (j = 0; j < 7; j++)
             run_volume_test(arm_func, orig_func, j, i, TRUE, FALSE);
     }
     run_volume_test(arm_func, orig_func, 7, 1, TRUE, TRUE);
     run_volume_test(arm_func, orig_func, 7, 2, TRUE, TRUE);
     run_volume_test(arm_func, orig_func, 7, 3, TRUE, TRUE);
+    run_volume_test(arm_func, orig_func, 7, 4, TRUE, TRUE);
 }
 END_TEST
 #endif /* defined (__arm__) && defined (__linux__) */
-- 
1.7.9.5



More information about the pulseaudio-discuss mailing list