From owner-freebsd-multimedia Wed Jan 10 12:19:53 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from freebsd.dk (freebsd.dk [212.242.42.178]) by hub.freebsd.org (Postfix) with ESMTP id 3B76837B404 for ; Wed, 10 Jan 2001 12:19:35 -0800 (PST) Received: (from sos@localhost) by freebsd.dk (8.9.3/8.9.1) id VAA22255; Wed, 10 Jan 2001 21:19:31 +0100 (CET) (envelope-from sos) From: Soren Schmidt Message-Id: <200101102019.VAA22255@freebsd.dk> Subject: Re: xine and VCD support In-Reply-To: <3A5CC1E9.15E30635@dvart.com> from bruno schwander at "Jan 10, 2001 12:11:21 pm" To: bschwand@dvart.com (bruno schwander) Date: Wed, 10 Jan 2001 21:19:31 +0100 (CET) Cc: multimedia@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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