File: intel8x0.patch

package info (click to toggle)
alsa-driver 1.0.13-5etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 20,108 kB
  • ctags: 50,477
  • sloc: ansic: 319,881; sh: 32,930; makefile: 2,015; python: 1,527; perl: 1,316; xml: 896; awk: 66
file content (37 lines) | stat: -rw-r--r-- 1,193 bytes parent folder | download | duplicates (3)
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
--- intel8x0.c	2004-04-08 15:21:31.571408477 +0200
+++ intel8x0.c	2004-04-08 15:23:17.550321555 +0200
@@ -43,7 +43,9 @@
 #include <sound/initval.h>
 /* for 440MX workaround */
 #include <asm/pgtable.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
 #include <asm/cacheflush.h>
+#endif
 
 MODULE_AUTHOR("Jaroslav Kysela <perex@suse.cz>");
 MODULE_DESCRIPTION("Intel 82801AA,82901AB,i810,i820,i830,i840,i845,MX440; SiS 7012; Ali 5455");
@@ -747,7 +749,7 @@
 	iputbyte(chip, port + ichdev->roff_sr, ICH_FIFOE | ICH_BCIS | ICH_LVBCI);
 }
 
-#ifdef __i386__
+#if defined(__i386__) && LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,20)
 /*
  * Intel 82443MX running a 100MHz processor system bus has a hardware bug,
  * which aborts PCI busmaster for audio transfer.  A workaround is to set
@@ -758,7 +760,9 @@
 {
 	size = (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
 	change_page_attr(virt_to_page(buf), size, nocache ? PAGE_KERNEL_NOCACHE : PAGE_KERNEL);
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
 	global_flush_tlb();
+#endif
 }
 #else
 #define fill_nocache(buf,size,nocache)
@@ -2809,3 +2813,5 @@
 
 module_init(alsa_card_intel8x0_init)
 module_exit(alsa_card_intel8x0_exit)
+
+EXPORT_NO_SYMBOLS;