Re: small problems with mcd and mcdx on audio-cds

Geoff Hoff (ghoff@math.utk.edu)
Sat, 08 Nov 1997 12:30:22 -0500


> the problem with mcd:
> - it doesn't play stereo mode (mono mode only)
> with mcdx:
> - (workman for example) doesn't see that the disc has been changed
> (behaves as if I put in the same CD as before instead scanning for
> the current - but scans ok if I restart the program - my guess:
> mcdx doesn't report disc-changes but reports open doors)

I thought that this was just a bug in workman but I checked and you are right
it is a problem with mcdx. If I find time, I'll look into it.

> - after pressing "pause" and then "play" for continuing it holds and
> behaves as I had pressed "stop" (guess: bug in resume or pause)

This is a bug in mcdx. The variables that contain the length of the disk are
not initalized and thus pause is broken. Here is a patch for this problem
(this
patch is already in the 2.1 series)

--- 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);
}