From owner-freebsd-multimedia Sat Jan 2 21:32:40 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA14077 for freebsd-multimedia-outgoing; Sat, 2 Jan 1999 21:32:40 -0800 (PST) (envelope-from owner-freebsd-multimedia@FreeBSD.ORG) Received: from panzer.plutotech.com (panzer.plutotech.com [206.168.67.125]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA14072 for ; Sat, 2 Jan 1999 21:32:39 -0800 (PST) (envelope-from ken@panzer.plutotech.com) Received: (from ken@localhost) by panzer.plutotech.com (8.9.1/8.8.5) id WAA52937; Sat, 2 Jan 1999 22:32:03 -0700 (MST) From: "Kenneth D. Merry" Message-Id: <199901030532.WAA52937@panzer.plutotech.com> Subject: Re: tosha 0.6 with VideoCD support In-Reply-To: <199901021932.UAA25316@labinfo.iet.unipi.it> from Luigi Rizzo at "Jan 2, 99 08:32:33 pm" To: luigi@labinfo.iet.unipi.it (Luigi Rizzo) Date: Sat, 2 Jan 1999 22:32:03 -0700 (MST) Cc: freebsd-multimedia@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL28s (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Luigi Rizzo wrote... > > Hi Luigi, > > > > Luigi Rizzo wrote in list.freebsd-multimedia: > ... > > OK. Is there some documentation about that (except source)? > > nope, but apart from indentation problems the code is fairly modular > and the atapi stuff is all confined in the new files > cdd_atapisomething.[ch] > > > I'd also like to know on which platforms it works (probably > > only on fairly recent 3.0-current, right?). If possible, the > > the port is for 3.0 and not cam-ified. I have a port for 2.2 as well if > you need it (it is not committed yet) cdd is one of the utilities that I have wanted to port to CAM for a long time, but I haven't gotten around to it. (i.e., if someone else wants to do it, go right ahead) I ported tosha to CAM instead because it was simpler and easier to do. cdd makes extensive use of the old SCSI library's scsireq_foo() functions. libcam has compatibility functions for most all of the old scsireq functions, though. You just have to convert the scsireq structures to the new CAM CCB structure. If anyone undertakes a port of cdd to CAM, I will be glad to provide assistance. It might be helpful to do something similar to what Oliver did in tosha, and have a generic function to build and send SCSI commands. That way, you could avoid making the code a mass of #ifdefs. Or, a more ambitious project would be to port tosha or cdd to either xmcd's libdi, or Joerg Schilling's libscg. (there's already a CD-DA audio extractor that uses Joerg's libscg, and that is cdda2wav. I think its feature set is somewhat different than cdd or tosha, though.) Of course, there's something to be said for simple, purpose-built applications. Adding support for other platforms is nice, but right now tosha and cdd work just fine for FreeBSD. :) Ken -- Kenneth Merry ken@plutotech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message