summaryrefslogtreecommitdiff
path: root/linux/sound/oss/aci.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/sound/oss/aci.c')
-rw-r--r--linux/sound/oss/aci.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/linux/sound/oss/aci.c b/linux/sound/oss/aci.c
index 97634d457..95405ff3c 100644
--- a/linux/sound/oss/aci.c
+++ b/linux/sound/oss/aci.c
@@ -51,12 +51,17 @@
* Get rid of check_region, .bss optimizations, use set_current_state
*/
+#include "compat.h"
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/proc_fs.h>
#include <linux/slab.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
#include <linux/mutex.h>
+#else
+#include <asm/semaphore.h>
+#endif
#include <asm/io.h>
#include <asm/uaccess.h>
@@ -80,7 +85,11 @@ static int aci_micpreamp=3; /* microphone preamp-level that can't be *
* checked with ACI versions prior to 0xb0 */
static int mixer_device;
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
static struct mutex aci_mutex;
+#else
+static struct semaphore aci_mutex;
+#endif
#ifdef MODULE
static int reset;