patch-2.1.56 linux/drivers/sound/dmasound.c
Next file: linux/drivers/sound/soundcard.c
Previous file: linux/drivers/scsi/u14-34f.h
Back to the patch index
Back to the overall index
- Lines: 66
- Date:
Sat Sep 13 11:07:28 1997
- Orig file:
v2.1.55/linux/drivers/sound/dmasound.c
- Orig date:
Wed May 28 10:51:32 1997
diff -u --recursive --new-file v2.1.55/linux/drivers/sound/dmasound.c linux/drivers/sound/dmasound.c
@@ -668,10 +668,9 @@
static int sound_open(struct inode *inode, struct file *file);
-static int sound_fsync(struct inode *inode, struct file *filp);
+static int sound_fsync(struct file *filp, struct dentry *dentry);
static void sound_release(struct inode *inode, struct file *file);
-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);
static long sound_read(struct inode *inode, struct file *file, char *buf,
unsigned long count);
static long sound_write(struct inode *inode, struct file *file,
@@ -3071,9 +3070,9 @@
}
-static int sound_fsync(struct inode *inode, struct file *filp)
+static int sound_fsync(struct file *filp, struct dentry *dentry)
{
- int dev = MINOR(inode->i_rdev) & 0x0f;
+ int dev = MINOR(dentry->d_inode->i_rdev) & 0x0f;
switch (dev) {
case SND_DEV_STATUS:
@@ -3116,8 +3115,7 @@
}
-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 -ESPIPE;
}
@@ -3186,25 +3184,25 @@
return(0);
case SNDCTL_DSP_POST:
case SNDCTL_DSP_SYNC:
- return(sound_fsync(inode, file));
+ return(sound_fsync(file, file->f_dentry));
/* ++TeSche: before changing any of these it's probably wise to
* wait until sound playing has settled down
*/
case SNDCTL_DSP_SPEED:
- sound_fsync(inode, file);
+ sound_fsync(file, file->f_dentry);
IOCTL_IN(arg, data);
return(IOCTL_OUT(arg, sound_set_speed(data)));
case SNDCTL_DSP_STEREO:
- sound_fsync(inode, file);
+ sound_fsync(file, file->f_dentry);
IOCTL_IN(arg, data);
return(IOCTL_OUT(arg, sound_set_stereo(data)));
case SOUND_PCM_WRITE_CHANNELS:
- sound_fsync(inode, file);
+ sound_fsync(file, file->f_dentry);
IOCTL_IN(arg, data);
return(IOCTL_OUT(arg, sound_set_stereo(data-1)+1));
case SNDCTL_DSP_SETFMT:
- sound_fsync(inode, file);
+ sound_fsync(file, file->f_dentry);
IOCTL_IN(arg, data);
return(IOCTL_OUT(arg, sound_set_format(data)));
case SNDCTL_DSP_GETFMTS:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov