cdparanoia/cdparanoia-III-alpha9.8.scsi-setspeed.patch
2008-03-04 21:09:05 +00:00

28 lines
699 B
Diff

--- cdparanoia-III-alpha9.8/interface/scsi_interface.c_orig 2008-02-02 21:14:07.000000000 +0100
+++ cdparanoia-III-alpha9.8/interface/scsi_interface.c 2008-02-02 21:13:41.000000000 +0100
@@ -1565,6 +1565,15 @@
return ret;
}
+/* Set operating speed */
+static int scsi_setspeed(cdrom_drive *d, int speed)
+{
+ if(d->cdda_fd!=-1)
+ return ioctl(d->cdda_fd, CDROM_SELECT_SPEED, speed);
+ else
+ return 0;
+}
+
int scsi_init_drive(cdrom_drive *d){
int ret, is_sgio;
@@ -1609,7 +1618,7 @@
d->read_toc = (!memcmp(d->drive_model, "IMS", 3) && !d->is_atapi) ? scsi_read_toc2 :
scsi_read_toc;
- d->set_speed = NULL;
+ d->set_speed = scsi_setspeed;
if(!d->is_atapi){