patch-2.1.56 linux/drivers/sound/soundcard.c
Next file: linux/fs/Makefile
Previous file: linux/drivers/sound/dmasound.c
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Mon Sep 15 12:46:21 1997
- Orig file:
v2.1.55/linux/drivers/sound/soundcard.c
- Orig date:
Thu Jul 17 10:06:06 1997
diff -u --recursive --new-file v2.1.55/linux/drivers/sound/soundcard.c linux/drivers/sound/soundcard.c
@@ -80,8 +80,7 @@
return sound_write_sw (dev, &files[dev], buf, count);
}
-static long long
-sound_lseek (struct inode *inode, struct file *file, long long offset, int orig)
+static long long sound_lseek (struct file *file, long long offset, int orig)
{
return -EPERM;
}
@@ -139,8 +138,8 @@
sound_release_sw (dev, &files[dev]);
#ifdef MODULE
MOD_DEC_USE_COUNT;
- return 0;
#endif
+ return 0;
}
static int
@@ -256,13 +255,13 @@
}
static int
-sound_mmap (struct inode *inode, struct file *file, struct vm_area_struct *vma)
+sound_mmap (struct file *file, struct vm_area_struct *vma)
{
int dev, dev_class;
unsigned long size;
struct dma_buffparms *dmap = NULL;
- dev = MINOR (inode->i_rdev);
+ dev = MINOR (file->f_dentry->d_inode->i_rdev);
files[dev].flags = file->f_flags;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov