diff -Naur alsa-driver-0.9.3a/alsa-kernel/isa/sb/emu8000_patch.c alsa-driver-0.9.3a-linux2420/alsa-kernel/isa/sb/emu8000_patch.c --- alsa-driver-0.9.3a/alsa-kernel/isa/sb/emu8000_patch.c 2002-08-12 03:43:46.000000000 -0500 +++ alsa-driver-0.9.3a-linux2420/alsa-kernel/isa/sb/emu8000_patch.c 2003-05-18 15:50:53.000000000 -0500 @@ -233,7 +233,7 @@ /* we may take too long time in this loop. * so give controls back to kernel if needed. */ - if (need_resched()) { + if (ALSA_NEED_RESCHED()) { if (current->state != TASK_RUNNING) set_current_state(TASK_RUNNING); schedule(); diff -Naur alsa-driver-0.9.3a/alsa-kernel/isa/sb/emu8000_pcm.c alsa-driver-0.9.3a-linux2420/alsa-kernel/isa/sb/emu8000_pcm.c --- alsa-driver-0.9.3a/alsa-kernel/isa/sb/emu8000_pcm.c 2003-02-10 05:53:49.000000000 -0600 +++ alsa-driver-0.9.3a-linux2420/alsa-kernel/isa/sb/emu8000_pcm.c 2003-05-18 15:50:53.000000000 -0500 @@ -424,7 +424,7 @@ */ #define CHECK_SCHEDULER() \ do { \ - if (need_resched()) {\ + if (ALSA_NEED_RESCHED()) {\ if (current->state != TASK_RUNNING)\ set_current_state(TASK_RUNNING);\ schedule();\ diff -Naur alsa-driver-0.9.3a/include/adriver.h alsa-driver-0.9.3a-linux2420/include/adriver.h --- alsa-driver-0.9.3a/include/adriver.h 2003-04-27 09:49:58.000000000 -0500 +++ alsa-driver-0.9.3a-linux2420/include/adriver.h 2003-05-18 15:50:53.000000000 -0500 @@ -105,7 +105,9 @@ #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 3) -#define need_resched() (current->need_resched) +#define ALSA_NEED_RESCHED() (current->need_resched) +#else +#define ALSA_NEED_RESCHED() (need_resched()) #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 4) #include diff -Naur alsa-driver-0.9.3a/pci/vx222/vx222_ops.c alsa-driver-0.9.3a-linux2420/pci/vx222/vx222_ops.c --- alsa-driver-0.9.3a/pci/vx222/vx222_ops.c 2003-03-21 11:41:57.000000000 -0600 +++ alsa-driver-0.9.3a-linux2420/pci/vx222/vx222_ops.c 2003-05-18 15:50:53.000000000 -0500 @@ -376,7 +376,7 @@ if (put_xilinx_data(chip, port, 8, data) < 0) return -EINVAL; /* don't take too much time in this loop... */ - if (need_resched()) { + if (ALSA_NEED_RESCHED()) { if (current->state != TASK_RUNNING) set_current_state(TASK_RUNNING); schedule();