ChangeSet 1.2231.1.126, 2005/03/28 19:51:36-08:00, [EMAIL PROTECTED]

        [PATCH] DVD-RAM support for pktcdvd
        
        This patch makes it possible to use the packet writing driver with
        DVD-RAM discs. The pktcdvd driver is not needed for writing to DVD-RAM
        discs but it can improve write performance. Polg�r Istv�n reports:
        
                I wrote 178716Kb data to DVD-RAM without pktcdvd driver within
                4.54 minutes. With pktcdvd driver it took me 2.33 minutes.
        
        Signed-off-by: Peter Osterlund <[EMAIL PROTECTED]>
        Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
        Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>



 Documentation/cdrom/packet-writing.txt |    8 ++++++++
 drivers/block/pktcdvd.c                |    9 +++++++--
 2 files changed, 15 insertions(+), 2 deletions(-)


diff -Nru a/Documentation/cdrom/packet-writing.txt 
b/Documentation/cdrom/packet-writing.txt
--- a/Documentation/cdrom/packet-writing.txt    2005-03-28 21:34:20 -08:00
+++ b/Documentation/cdrom/packet-writing.txt    2005-03-28 21:34:20 -08:00
@@ -62,6 +62,14 @@
        # mount /dev/pktcdvd/dev_name /cdrom -t udf -o rw,noatime
 
 
+Packet writing for DVD-RAM media
+--------------------------------
+
+DVD-RAM discs are random writable, so using the pktcdvd driver is not
+necessary. However, using the pktcdvd driver can improve performance
+in the same way it does for DVD+RW media.
+
+
 Notes
 -----
 
diff -Nru a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c
--- a/drivers/block/pktcdvd.c   2005-03-28 21:34:20 -08:00
+++ b/drivers/block/pktcdvd.c   2005-03-28 21:34:20 -08:00
@@ -1421,8 +1421,8 @@
        char buffer[128];
        int ret, size;
 
-       /* doesn't apply to DVD+RW */
-       if (pd->mmc3_profile == 0x1a)
+       /* doesn't apply to DVD+RW or DVD-RAM */
+       if ((pd->mmc3_profile == 0x1a) || (pd->mmc3_profile == 0x12))
                return 0;
 
        memset(buffer, 0, sizeof(buffer));
@@ -1536,6 +1536,7 @@
                        break;
                case 0x1a: /* DVD+RW */
                case 0x13: /* DVD-RW */
+               case 0x12: /* DVD-RAM */
                        return 0;
                default:
                        printk("pktcdvd: Wrong disc profile (%x)\n", 
pd->mmc3_profile);
@@ -1601,6 +1602,9 @@
                case 0x13: /* DVD-RW */
                        printk("pktcdvd: inserted media is DVD-RW\n");
                        break;
+               case 0x12: /* DVD-RAM */
+                       printk("pktcdvd: inserted media is DVD-RAM\n");
+                       break;
                default:
                        printk("pktcdvd: inserted media is CD-R%s\n", 
di.erasable ? "W" : "");
                        break;
@@ -1893,6 +1897,7 @@
        switch (pd->mmc3_profile) {
                case 0x13: /* DVD-RW */
                case 0x1a: /* DVD+RW */
+               case 0x12: /* DVD-RAM */
                        DPRINTK("pktcdvd: write speed %ukB/s\n", write_speed);
                        break;
                default:
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to