[xiph-commits] r14878 - trunk/cdparanoia/interface

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Mon May 12 15:10:02 PDT 2008


Author: xiphmont
Date: 2008-05-12 15:10:02 -0700 (Mon, 12 May 2008)
New Revision: 14878

Modified:
   trunk/cdparanoia/interface/scsi_interface.c
Log:
Set DAP bit if possible on MMC reads.



Modified: trunk/cdparanoia/interface/scsi_interface.c
===================================================================
--- trunk/cdparanoia/interface/scsi_interface.c	2008-05-12 21:21:56 UTC (rev 14877)
+++ trunk/cdparanoia/interface/scsi_interface.c	2008-05-12 22:10:02 UTC (rev 14878)
@@ -860,7 +860,7 @@
 
 static int i_read_mmc (cdrom_drive *d, void *p, long begin, long sectors, unsigned char *sense){
   int ret;
-  unsigned char cmd[12]={0xbe, 0, 0, 0, 0, 0, 0, 0, 0, 0x10, 0, 0};
+  unsigned char cmd[12]={0xbe, 0x02, 0, 0, 0, 0, 0, 0, 0, 0x90, 0, 0};
 
   cmd[3] = (begin >> 16) & 0xFF;
   cmd[4] = (begin >> 8) & 0xFF;
@@ -874,7 +874,7 @@
 
 static int i_read_mmc2 (cdrom_drive *d, void *p, long begin, long sectors, unsigned char *sense){
   int ret;
-  unsigned char cmd[12]={0xbe, 0, 0, 0, 0, 0, 0, 0, 0, 0xf8, 0, 0};
+  unsigned char cmd[12]={0xbe, 0x02, 0, 0, 0, 0, 0, 0, 0, 0xf8, 0, 0};
 
   cmd[3] = (begin >> 16) & 0xFF;
   cmd[4] = (begin >> 8) & 0xFF;
@@ -888,7 +888,7 @@
 
 static int i_read_mmc3 (cdrom_drive *d, void *p, long begin, long sectors, unsigned char *sense){
   int ret;
-  unsigned char cmd[12]={0xbe, 4, 0, 0, 0, 0, 0, 0, 0, 0xf8, 0, 0};
+  unsigned char cmd[12]={0xbe, 0, 0, 0, 0, 0, 0, 0, 0, 0xf8, 0, 0};
 
   cmd[3] = (begin >> 16) & 0xFF;
   cmd[4] = (begin >> 8) & 0xFF;
@@ -1419,6 +1419,7 @@
   int16_t *buff=malloc(CD_FRAMESIZE_RAW);
   long i;
 
+  /* MMC has since been extended to allow FUA */
   if(d->read_audio==scsi_read_mmc)return;
   if(d->read_audio==scsi_read_mmc2)return;
   if(d->read_audio==scsi_read_mmc3)return;



More information about the commits mailing list