Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jan 2001 21:19:31 +0100 (CET)
From:      Soren Schmidt <sos@freebsd.dk>
To:        bschwand@dvart.com (bruno schwander)
Cc:        multimedia@FreeBSD.ORG
Subject:   Re: xine and VCD support
Message-ID:  <200101102019.VAA22255@freebsd.dk>
In-Reply-To: <3A5CC1E9.15E30635@dvart.com> from bruno schwander at "Jan 10, 2001 12:11:21 pm"

next in thread | previous in thread | raw e-mail | index | archive | help

It seems bruno schwander wrote:
> Hi everybody,
> 
> I rewrote the VideoCD support for xine (xine.sourceforge.net) so as to
> support atapi vcd playing on freebsd. Works pretty well.
> A patch is needed to the ata driver in order to read raw data. I
> submitted the code to the xine team, anybody who wants it now is welcome
> to ask me for it, otherwise I hope xine will have it soon incorporated.
> The patch was mentioned in some other posts on this mailing list, is it
> planned to be incorporated in the next FreeBSD release ?

Could you live with the below patch instead, it doesn't break the
current behavior, but will read all RAW data in 2352 size mode...

> I would like to try and get this to work for SCSI cdrom drives too, but
> the appropriate ioctls are not in the cd driver. Is anyone working on
> this ? (not to start something if it is already done...)

No idea, the problem is that the READ AUDIO etc command are not standard
on older SCSI drives, each vendor has his own..

--- atapi-cd.c  2001/01/10 19:19:47     1.74
+++ atapi-cd.c  2001/01/10 21:16:23
@@ -1175,9 +1175,17 @@
                return;
            }
        }
-       if (blocksize == 2048)
+       switch (blocksize) {
+       case 2048:
            ccb[0] = ATAPI_READ_BIG;
-       else {
+           break;
+
+       case 2352: 
+           ccb[0] = ATAPI_READ_CD;
+           ccb[9] = 0xf8;
+           break;
+
+       default:
            ccb[0] = ATAPI_READ_CD;
            ccb[9] = 0x10;
        }


-Søren


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-multimedia" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101102019.VAA22255>