|
@@ -24,6 +24,7 @@
|
|
|
#include <linux/time.h>
|
|
|
#include <linux/string.h>
|
|
|
#include <linux/module.h>
|
|
|
+#include <linux/compat.h>
|
|
|
#include <sound/core.h>
|
|
|
#include <sound/minors.h>
|
|
|
#include <sound/control.h>
|
|
@@ -397,7 +398,12 @@ int snd_mixer_oss_ioctl_card(struct snd_card *card, unsigned int cmd, unsigned l
|
|
|
|
|
|
#ifdef CONFIG_COMPAT
|
|
|
/* all compatible */
|
|
|
-#define snd_mixer_oss_ioctl_compat snd_mixer_oss_ioctl
|
|
|
+static long snd_mixer_oss_ioctl_compat(struct file *file, unsigned int cmd,
|
|
|
+ unsigned long arg)
|
|
|
+{
|
|
|
+ return snd_mixer_oss_ioctl1(file->private_data, cmd,
|
|
|
+ (unsigned long)compat_ptr(arg));
|
|
|
+}
|
|
|
#else
|
|
|
#define snd_mixer_oss_ioctl_compat NULL
|
|
|
#endif
|