diff options
Diffstat (limited to 'linux/sound/oss/btaudio.c')
-rw-r--r-- | linux/sound/oss/btaudio.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/linux/sound/oss/btaudio.c b/linux/sound/oss/btaudio.c index 4813cee1d..1a0e427ce 100644 --- a/linux/sound/oss/btaudio.c +++ b/linux/sound/oss/btaudio.c @@ -19,6 +19,7 @@ */ +#include "compat.h" #include <linux/module.h> #include <linux/errno.h> #include <linux/pci.h> @@ -32,8 +33,11 @@ #include <linux/soundcard.h> #include <linux/slab.h> #include <linux/kdev_t.h> +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16) #include <linux/mutex.h> -#include "compat.h" +#else +#include <asm/semaphore.h> +#endif #include <asm/uaccess.h> #include <asm/io.h> @@ -111,7 +115,11 @@ struct btaudio { /* locking */ int users; +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16) struct mutex lock; +#else + struct semaphore lock; +#endif /* risc instructions */ unsigned int risc_size; |