lkml.org 
[lkml]   [1997]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectSound Driver Fix for 2.1.60
DateMon, 27 Oct 1997 10:19:41 -0500
FromJohn Gotts <>
[This is a repost due to recent problems with the list.]

The sound driver didn't get pwrite/pread updates. Here's a fix:

--- linux/drivers/sound/soundcard.c.orig Sun Oct 26 00:30:09 1997
+++ linux/drivers/sound/soundcard.c Sun Oct 26 01:19:19 1997
@@ -56,9 +56,10 @@



-static long
-sound_read (struct inode *inode, struct file *file, char *buf, unsigned long count)
+static ssize_t
+sound_read (struct file * file, char * buf, size_t count, loff_t *ppos)
{
+ struct inode *inode = file->f_dentry->d_inode;
int dev;

dev = MINOR (inode->i_rdev);
@@ -68,9 +69,10 @@
return sound_read_sw (dev, &files[dev], buf, count);
}

-static long
-sound_write (struct inode *inode, struct file *file, const char *buf, unsigned long count)
+static ssize_t
+sound_write (struct file * file, const char * buf, size_t count, loff_t *ppos)
{
+ struct inode *inode = file->f_dentry->d_inode;
int dev;

dev = MINOR (inode->i_rdev);
--
John GOTTS <jgotts@engin.umich.edu> http://www-personal.engin.umich.edu/~jgotts

\
 
 \ /
  Last update: 2005-03-22 13:40    [from the cache]
©2003-2010