blob: c3ce8d249c7136f43b9262bc7efb74702fe05c7b (
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
|
Index: /ivtv/branches/0.6/utils/Makefile
===================================================================
--- utils/Makefile (revision 3212)
+++ utils/Makefile (revision 3284)
@@ -3,7 +3,10 @@
HDRDIR = /usr/include/linux
-EXES := ivtvctl ivtvfbctl ivtvplay ivtv-detect ivtv-radio \
- ivtv-mpegindex ivtv-encoder
+EXES := ivtvctl ivtv-detect ivtv-radio
+EXES := $(shell if echo - | $(CC) -E -dM - | grep __powerpc__ > /dev/null; \
+ then echo $(EXES); else \
+ echo $(EXES) ivtvfbctl ivtvplay ivtv-mpegindex ivtv-encoder; fi)
BIN := $(EXES) ivtv-tune/ivtv-tune cx25840ctl/cx25840ctl
+
HEADERS := ../driver/ivtv.h
Index: /ivtv/branches/0.6/driver/ivtv-driver.h
===================================================================
--- driver/ivtv-driver.h (revision 3263)
+++ driver/ivtv-driver.h (revision 3284)
@@ -186,6 +186,9 @@
/* ========================== START USER SETTABLE DMA VARIABLES =========== */
/* ======================================================================== */
-
+#ifdef __powerpc__
+#define DYNAMIC_MEMORY_ALLOC 0 /* PowerPC doesn't work with DMA currently */
+#else
#define DYNAMIC_MEMORY_ALLOC 1 /* Allocate memory each stream use */
+#endif
/* DMA Buffers Sizes */
@@ -211,7 +214,14 @@
/* Decoder DMA or PIO, 1=PIO, 0=DMA */
+/* PowerPC does not work with DMA currently */
+#ifdef __powerpc__
+#define IVTV_VBI_PIO 1
+#define IVTV_ENC_PIO 1
+#define IVTV_DEC_PIO 1
+#else
#define IVTV_VBI_PIO 0
#define IVTV_ENC_PIO 0
#define IVTV_DEC_PIO 0
+#endif
/* This sometimes times out, seems to kill
encoding sometimes */
|