From owner-freebsd-multimedia Mon Sep 18 16:51:45 2000 Delivered-To: freebsd-multimedia@freebsd.org Received: from flux.ptc.spbu.ru (flux.ptc.spbu.ru [195.19.225.195]) by hub.freebsd.org (Postfix) with ESMTP id 0575237B422 for ; Mon, 18 Sep 2000 16:51:42 -0700 (PDT) Received: from snark.ptc.spbu.ru (snark.ptc.spbu.ru [195.19.225.131]) by flux.ptc.spbu.ru (8.9.3/8.9.3/cf-1.0.rbl) with ESMTP id DAA84384; Tue, 19 Sep 2000 03:51:40 +0400 (MSD) Received: (from uwe@localhost) by snark.ptc.spbu.ru (8.8.8+Sun/8.8.8) id DAA02259; Tue, 19 Sep 2000 03:51:39 +0400 (MSD) Date: Tue, 19 Sep 2000 03:51:39 +0400 From: "Valeriy E. Ushakov" To: Soren Schmidt Cc: freebsd-multimedia@freebsd.org Subject: Re: I'll be rolling a 4.1.1 release on September 25th Message-ID: <20000919035139.A2240@snark.ptc.spbu.ru> References: <20000916174845.B28031@snark.ptc.spbu.ru> <200009172038.WAA86368@freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.3i In-Reply-To: <200009172038.WAA86368@freebsd.dk>; from "Soren Schmidt" on Sun, Sep 17, 2000 at 22:38:39 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sun, Sep 17, 2000 at 22:38:39 +0200, Soren Schmidt wrote: > Because I dont favour the ioctl interface, its no longer needed... > > > If /dev/acd*t* is going to be the answer then can this be stated > > directly, please, to cut the confusion. BTW, as I wrote just few days > > ago, acd*t* support was MFC'ed but relevant changes to MAKEDEV to > > create those devices were not. > > No its not, you simply open /dev/acdNc and set the blocksize to > what you need with the CDRIOCSETBLKSIZE ioctl and reads the blocks > woth a normal read from the device.... Ah, this is starting to make sense. However it didn't work as expected so I monkeyed around and I think that the problem is that ccb[9] = 0x10; assignment in acd_start. From luoqi's patch and also from old patches to 2.2.8 wcd driver (revealed by google) ftp://ftp.nsysu.edu.tw/FreeBSD/taiwan/CSIE/vcd/vcd_2.2.8.patch I believe this should be 0xf8. It's not that these numbers make *any* sense to me :-), however after changing the line to be: ccd[9] = 0xf8; I can successfully use you advice to CDRIOCSETBLKSIZE 2352 than lseek and read structures: struct vcdsector { u_char sync[12]; u_char header[4]; u_char subheader[8]; u_char data[2324]; u_char spare[4]; }; writing out the data[2324] part. Wow, thanks! PS: I would never thought about using CDR(!) ioctl. SY, Uwe -- uwe@ptc.spbu.ru | Zu Grunde kommen http://www.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message