diff options
Diffstat (limited to 'sound/oss/sh_dac_audio.c')
-rw-r--r-- | sound/oss/sh_dac_audio.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/sound/oss/sh_dac_audio.c b/sound/oss/sh_dac_audio.c index 8f0be4053a5a..fdb58eb83d4e 100644 --- a/sound/oss/sh_dac_audio.c +++ b/sound/oss/sh_dac_audio.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/linkage.h> | 15 | #include <linux/linkage.h> |
16 | #include <linux/slab.h> | 16 | #include <linux/slab.h> |
17 | #include <linux/fs.h> | 17 | #include <linux/fs.h> |
18 | #include <linux/smp_lock.h> | ||
18 | #include <linux/sound.h> | 19 | #include <linux/sound.h> |
19 | #include <linux/smp_lock.h> | 20 | #include <linux/smp_lock.h> |
20 | #include <linux/soundcard.h> | 21 | #include <linux/soundcard.h> |
@@ -93,7 +94,7 @@ static void dac_audio_set_rate(void) | |||
93 | wakeups_per_second = ktime_set(0, 1000000000 / rate); | 94 | wakeups_per_second = ktime_set(0, 1000000000 / rate); |
94 | } | 95 | } |
95 | 96 | ||
96 | static int dac_audio_ioctl(struct inode *inode, struct file *file, | 97 | static int dac_audio_ioctl(struct file *file, |
97 | unsigned int cmd, unsigned long arg) | 98 | unsigned int cmd, unsigned long arg) |
98 | { | 99 | { |
99 | int val; | 100 | int val; |
@@ -159,6 +160,17 @@ static int dac_audio_ioctl(struct inode *inode, struct file *file, | |||
159 | return -EINVAL; | 160 | return -EINVAL; |
160 | } | 161 | } |
161 | 162 | ||
163 | static long dac_audio_unlocked_ioctl(struct file *file, u_int cmd, u_long arg) | ||
164 | { | ||
165 | int ret; | ||
166 | |||
167 | lock_kernel(); | ||
168 | ret = dac_audio_ioctl(file, cmd, arg); | ||
169 | unlock_kernel(); | ||
170 | |||
171 | return ret; | ||
172 | } | ||
173 | |||
162 | static ssize_t dac_audio_write(struct file *file, const char *buf, size_t count, | 174 | static ssize_t dac_audio_write(struct file *file, const char *buf, size_t count, |
163 | loff_t * ppos) | 175 | loff_t * ppos) |
164 | { | 176 | { |
@@ -242,8 +254,8 @@ static int dac_audio_release(struct inode *inode, struct file *file) | |||
242 | 254 | ||
243 | const struct file_operations dac_audio_fops = { | 255 | const struct file_operations dac_audio_fops = { |
244 | .read = dac_audio_read, | 256 | .read = dac_audio_read, |
245 | .write = dac_audio_write, | 257 | .write = dac_audio_write, |
246 | .ioctl = dac_audio_ioctl, | 258 | .unlocked_ioctl = dac_audio_unlocked_ioctl, |
247 | .open = dac_audio_open, | 259 | .open = dac_audio_open, |
248 | .release = dac_audio_release, | 260 | .release = dac_audio_release, |
249 | }; | 261 | }; |