Resurrect those parts of the original patch-ai that Joerg Schilling

did not integrate into the main source code.  Otherwise, the old
Plasmon 4100 CD-R still wouldn't work.

OK by:	dirk
This commit is contained in:
Joerg Wunsch 2001-09-20 09:59:50 +00:00
parent 5917176a1b
commit d27c91a80a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=48009
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,20 @@
--- cdrecord/drv_philips.c.orig Tue Feb 20 23:56:44 2001
+++ cdrecord/drv_philips.c Tue Sep 18 17:42:51 2001
@@ -505,12 +505,15 @@
* READ BUFFER SCSI cmd which is meant to be used for
* something totally else, and which would only jam the
* Plasmon due to the incorrect parameters used.
+ *
+ * We need to return some !0 value, otherwise the upper
+ * layer would still issue a READ BUFFER, sigh.
*/
if (sp)
- *sp = 0L;
+ *sp = 1L * 1024 * 1024;
if (fp)
- *fp = 0L;
+ *fp = 1L * 1024 * 1024;
return (100); /* 100 % */
}

View file

@ -0,0 +1,20 @@
--- cdrecord/drv_philips.c.orig Tue Feb 20 23:56:44 2001
+++ cdrecord/drv_philips.c Tue Sep 18 17:42:51 2001
@@ -505,12 +505,15 @@
* READ BUFFER SCSI cmd which is meant to be used for
* something totally else, and which would only jam the
* Plasmon due to the incorrect parameters used.
+ *
+ * We need to return some !0 value, otherwise the upper
+ * layer would still issue a READ BUFFER, sigh.
*/
if (sp)
- *sp = 0L;
+ *sp = 1L * 1024 * 1024;
if (fp)
- *fp = 0L;
+ *fp = 1L * 1024 * 1024;
return (100); /* 100 % */
}