From owner-freebsd-multimedia Wed Dec 3 03:35:31 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id DAA01134 for multimedia-outgoing; Wed, 3 Dec 1997 03:35:31 -0800 (PST) (envelope-from owner-freebsd-multimedia) Received: from smtp.creative.net (cybere.creative.net [207.137.200.15]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id DAA01129 for ; Wed, 3 Dec 1997 03:35:28 -0800 (PST) (envelope-from tristan@mpegtv.com) Received: from tristan (port20.creative.net [207.137.201.20]) by smtp.creative.net (8.8.7/8.8.7) with SMTP id DAA12392; Wed, 3 Dec 1997 03:31:54 -0800 (PST) Message-ID: <34854299.23C96466@mpegtv.com> Date: Wed, 03 Dec 1997 03:29:30 -0800 From: Tristan Savatier Organization: MpegTV, http://www.mpegtv.com X-Mailer: Mozilla 3.01 (X11; I; Linux 2.0.27 i586) MIME-Version: 1.0 To: Luigi Rizzo CC: Hannu Savolainen , Luigi Rizzo , race@exchange.lancs.ac.uk, multimedia@freebsd.org Subject: Re: MpegTV Problems References: <199712030951.KAA18023@labinfo.iet.unipi.it> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > The point I am trying to make there is that having multiple ways > to achieve the same result is a bad thing since it causes people > to mix them in the most peculiar ways. I agree. However, right now there is no good way to get access to the delay (i.e. the number of bytes in the driver's fifo that have not been yet been processed by the dma). The technique using GETOSPACE is a kludge which works reasonnably well (if the driver has a working GETOSPACE ioctl), but only gives the delay within a frag accuracy. The GETOPTR technique, if it was working well with all the drivers, would be OK too, even better in a way: it would be give me an accurate delay. It is just slightly more painfull to use because one has to keep track of the number of bytes written in order to derive the delay, plus this reset after one hour is another thing to deal with. But I can handle all that (I must, since that's the way I get the delay with the Sun driver) I am not totally convinced that we need yet another ioctl. Hannu has to decide. Really, for me the bigest problem is to not be able to know if the driver works properly (as advertised). I have to rely on the driver, but unfortunately those IOCTL that are important for MpegTV are broken on the vast majority of the drivers distributed with Linux (or not implemented in the case of freeBSD). -t