Sound patch for 2.1.6[01] REPOST

A Guy Called Tyketto (tyketto@omnilinx.net)
Sun, 2 Nov 1997 22:57:57 -0600


--OgqxwSJOaUobr8KG
Content-Type: text/plain; charset=us-ascii

Heya, everyone.. I don't think this patch made it into 2.1.61, but
there was a problem, where the sound drivers didn't receive the pread/pwrite
changes introduced in the kernel. This is what is causing the problems
everyone is having with the sound problems, as far as I've seen and
experienced. The following patch was posted by John Gotts on 27th October.
It's for 2.1.60, but applies cleanly to 2.1.61. If this can be included into
2.1.62, it would be appreciated. TIA!!

BL.

-- 
Brad Littlejohn                         | Email:        tyketto@omnilinx.net 
Unix Systems Administrator,             |            tyketto@acm.unomaha.edu
WebMaster, NewsMaster.. Smeghead! :)    |    http://acm.unomaha.edu/~tyketto
    PGP: 1024/E9DF4D85 67 6B 33 D0 B9 95 F4 37  4B D1 CE BD 48 B0 06 93

--OgqxwSJOaUobr8KG Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=sound

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

--OgqxwSJOaUobr8KG--