SCSI CD drives. (#431178)epel9
parent
cac5c2bd81
commit
8cfe211a2b
@ -0,0 +1,27 @@
|
||||
--- 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){
|
Loading…
Reference in new issue