summaryrefslogtreecommitdiff
blob: 6c2e706ef107a715190c320510db1c5a91eef503 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Index: alsa-lib-1.0.10rc3/test/Makefile.am
===================================================================
--- alsa-lib-1.0.10rc3.orig/test/Makefile.am
+++ alsa-lib-1.0.10rc3/test/Makefile.am
@@ -1,6 +1,6 @@
 check_PROGRAMS=control pcm latency seq \
 	       playmidi1 timer rawmidi midiloop \
-	       omixer code oldapi queue_timer
+	       code oldapi queue_timer
 
 control_LDADD=../src/libasound.la
 pcm_LDADD=../src/libasound.la
@@ -10,7 +10,6 @@ playmidi1_LDADD=../src/libasound.la
 timer_LDADD=../src/libasound.la
 rawmidi_LDADD=../src/libasound.la
 midiloop_LDADD=../src/libasound.la
-omixer_LDADD=../src/libasound.la
 oldapi_LDADD=../src/libasound.la
 queue_timer_LDADD=../src/libasound.la
 code_CFLAGS=-Wall -pipe -g -O2
Index: alsa-lib-1.0.10rc3/test/code.c
===================================================================
--- alsa-lib-1.0.10rc3.orig/test/code.c
+++ alsa-lib-1.0.10rc3/test/code.c
@@ -96,8 +96,8 @@ void mix_areas_srv(unsigned int size,
 {
         while (size-- > 0) {
                 atomic_add(sum, *src);
-                ((char*)src) += src_step;
-                ((char*)sum) += sum_step;
+		src = (((char*)src) + src_step);
+		sum = (((char*)sum) + sum_step);
         }
 }
 
@@ -113,8 +113,8 @@ void saturate(unsigned int size,
                         *dst = 0x7fff;
                 else
                         *dst = sample;
-                ((char*)dst) += dst_step;
-                ((char*)sum) += sum_step;
+		dst = (((char*)dst) + dst_step);
+		sum = (((char*)sum) + sum_step);
         }
 }
 
@@ -133,9 +133,9 @@ void mix_areas0(unsigned int size,
 			*dst = 0x7fff;
 		else
 			*dst = sample;
-		((char *)dst) += dst_step;
-		((char *)src) += src_step;
-		((char *)sum) += sum_step;
+		dst = (((char*)dst) + dst_step);
+		src = (((char*)src) + src_step);
+		sum = (((char*)sum) + sum_step);
 	}
 }
 
@@ -167,8 +167,8 @@ void mix_areas2(unsigned int size,
 				*dst = sample;
 		} while (unlikely(sample != *sum));
 		sum++;
-		((char *)dst) += dst_step;
-		((char *)src) += src_step;
+		dst = (((char*)dst) + dst_step);
+		src = (((char*)src) + src_step);
 	}
 }