[PATCH] mcdx pause

Geoffrey Hoff (ghoff@mathsun1.math.utk.edu)
Tue, 20 May 1997 22:17:52 -0400 (EDT)


Here it is. My first contribution to the kernel. Pause now works in the mcdx
driver. This should not cause any problems, it just fixes an oversight in that
stuffp->stop.dt was never initalized.

This should patch cleanly into any 2.0 or 2.1 kernel.

--- linux/drivers/cdrom/mcdx.c.orig Tue May 20 21:00:18 1997
+++ linux/drivers/cdrom/mcdx.c Tue May 20 21:06:01 1997
@@ -356,6 +356,10 @@
msf.cdmsf_sec1 = uint2bcd(msf.cdmsf_sec1);
msf.cdmsf_frame1 = uint2bcd(msf.cdmsf_frame1);

+ stuffp->stop.dt.minute = msf.cdmsf_min1;
+ stuffp->stop.dt.second = msf.cdmsf_sec1;
+ stuffp->stop.dt.frame = msf.cdmsf_frame1;
+
return mcdx_playmsf(stuffp, &msf);
}

Geoff Hoff

---
Geoffrey Hoff <ghoff@utk.edu>
Assistant Systems Administrator
Department of Mathematics, University of Tennessee Knoxville