From owner-freebsd-multimedia@FreeBSD.ORG Tue Oct 7 20:44:22 2008 Return-Path: Delivered-To: multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A3CF1065692 for ; Tue, 7 Oct 2008 20:44:22 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.9.129]) by mx1.freebsd.org (Postfix) with ESMTP id 5EFA68FC0C for ; Tue, 7 Oct 2008 20:44:22 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id DF79A730A8; Tue, 7 Oct 2008 22:30:23 +0200 (CEST) Date: Tue, 7 Oct 2008 22:30:23 +0200 From: Luigi Rizzo To: multimedia@freebsd.org Message-ID: <20081007203023.GA87488@onelab2.iet.unipi.it> References: <20081003092907.GA21707@onelab2.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081003092907.GA21707@onelab2.iet.unipi.it> User-Agent: Mutt/1.4.2.3i Cc: Subject: saa driver status for freebsd ? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Oct 2008 20:44:22 -0000 As per the subject, is there anyone working on the 'saa' driver (713x chipset) for FreeBSD, which is part of the kbtv/kbtv2 port ? I have been doing some cleanup work on the driver to prepare it for supporting DVB-T cards, which are widely available (e.g. I am working on the Asus 7131Hybrid) and well supported on Linux so there is at least some reference code. A snapshot of what i currently have is at http://info.iet.unipi.it/~luigi/FreeBSD/saa20081003.tgz The driver itself is already pretty much complete for the analog video part -- it supports various formats and the mmap() interface. Tuner/source/peripheral control is trivially done in userspace (through ioctls to talk to the I2c and GPIO pins) and is not timing-sensitive, so there is really no point in doing that in the driver. So i plan to move/implement that in userspace where it is a lot easier to do. I already have code to upload the firmware to the board. What is missing is just a little bit of code to support read() in addition to mmap(), and some other code (presumably not too complex) to let the 713x copy the received mpeg stream to memory using the DMA engines. If someone else is interested or has already done some of this, please let me know -- as a reference, the standard linux kernel already support this cards through the saa7134 driver (for the video decoder and DMA engine part) and the tda1004x and tda827x/tda829x drivers for the DVB decoder and tuner, respectively. But as I said, the latter two are really things that belong to userland. cheers luigi