28 lines
885 B
Diff
28 lines
885 B
Diff
diff -up cdparanoia-III-10.0/interface/scsi_interface.c.setspeed cdparanoia-III-10.0/interface/scsi_interface.c
|
|
--- cdparanoia-III-10.0/interface/scsi_interface.c.setspeed 2008-05-14 14:59:15.000000000 -0400
|
|
+++ cdparanoia-III-10.0/interface/scsi_interface.c 2008-07-15 10:23:42.000000000 -0400
|
|
@@ -1616,6 +1616,14 @@ unsigned char *scsi_inquiry(cdrom_drive
|
|
return (d->sg_buffer);
|
|
}
|
|
|
|
+/* 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;
|
|
@@ -1660,7 +1668,7 @@ int scsi_init_drive(cdrom_drive *d){
|
|
|
|
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){
|