- cdparanoia-III-alpha9.8.scsi-setspeed.patch: Allow setting the speed of

SCSI CD drives. (#431178)
This commit is contained in:
Adam Jackson 2008-03-04 21:09:05 +00:00
parent cac5c2bd81
commit 8cfe211a2b
2 changed files with 34 additions and 1 deletions

View File

@ -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){

View File

@ -3,7 +3,7 @@
Name: cdparanoia
Version: %{realver}
Release: 28.2
Release: 29
License: GPL
Group: Applications/Multimedia
Source: http://www.xiph.org/paranoia/download/%{name}-III-%{realver}.src.tgz
@ -18,6 +18,7 @@ Patch7: cdparanoia-III-alpha9.8.verbosity3.patch
Patch8: cdparanoia-III-alpha9.8.env.patch
Patch9: cdparanoia-III-alpha9.8.smalldma.patch
Patch10: cdparanoia-III-alpha9.8.lm.patch
Patch11: cdparanoia-III-alpha9.8.scsi-setspeed.patch
Url: http://www.xiph.org/paranoia/index.html
BuildRoot: %{_tmppath}/cdparanoia-%{version}-root
Requires: cdparanoia-libs = %{version}-%{release}
@ -64,6 +65,7 @@ applications which read CD Digital Audio disks.
%patch8 -p1 -b .env
%patch9 -p1 -b .smalldma
%patch10 -p1 -b .lm
%patch11 -p1 -b .setspeed
%build
rm -rf $RPM_BUILD_ROOT
@ -123,6 +125,10 @@ fi
%{_libdir}/*.a
%changelog
* Tue Mar 04 2008 Adam Jackson <ajax@redhat.com> alpha9.8-29
- cdparanoia-III-alpha9.8.scsi-setspeed.patch: Allow setting the speed of
SCSI CD drives. (#431178)
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - alpha9.8-28.2
- Autorebuild for GCC 4.3