Magellan Linux

Contents of /trunk/cdparanoia/patches/cdparanoia-3.9.8-sgio-smalldma.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 144 - (show annotations) (download)
Tue May 8 20:06:05 2007 UTC (17 years ago) by niro
File size: 882 byte(s)
-import

1 --- cdparanoia-III-alpha9.8/interface/scsi_interface.c.smalldma 2004-10-06 16:15:50.778406009 -0400
2 +++ cdparanoia-III-alpha9.8/interface/scsi_interface.c 2004-10-06 16:17:51.438686857 -0400
3 @@ -169,8 +169,6 @@
4
5 cur=table*reserved;
6
7 - ((struct sg_info *)d->sg)->dxferp_max_buffer_len = cur;
8 -
9 /* so since we never go above q->max_sectors, we should never get -EIO.
10 * we might still get -ENOMEM, but we back off for that later. Monty
11 * had an old comment: "not too much; new kernels have trouble with DMA
12 @@ -182,8 +180,12 @@
13 * still fail the wrong way. This needs some kernel-land investigation.
14 */
15 #if 1
16 - cur=(cur>1024*32?1024*32:cur);
17 + if (!getenv("CDDA_IGNORE_BUFSIZE_LIMIT")) {
18 + cur=(cur>2352*24?2352*24:cur);
19 + }
20 #endif
21 + ((struct sg_info *)d->sg)->dxferp_max_buffer_len = cur;
22 +
23 d->nsectors=cur/CD_FRAMESIZE_RAW;
24 d->bigbuff=cur;
25