From owner-freebsd-multimedia@FreeBSD.ORG Fri May 16 06:58:18 2003 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6734437B401; Fri, 16 May 2003 06:58:18 -0700 (PDT) Received: from fump.kawo2.rwth-aachen.de (fump.kawo2.RWTH-Aachen.DE [134.130.181.148]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F2FE43F93; Fri, 16 May 2003 06:58:17 -0700 (PDT) (envelope-from alex@fump.kawo2.rwth-aachen.de) Received: from fump.kawo2.rwth-aachen.de (localhost.kawo2.rwth-aachen.de [127.0.0.1])h4GDwGcY003841; Fri, 16 May 2003 15:58:16 +0200 (CEST) (envelope-from alex@fump.kawo2.rwth-aachen.de) Received: (from alex@localhost) by fump.kawo2.rwth-aachen.de (8.12.8/8.12.6/Submit) id h4GDwGCr003840; Fri, 16 May 2003 15:58:16 +0200 (CEST) Date: Fri, 16 May 2003 15:58:15 +0200 From: Alexander Langer To: freebsd-multimedia@FreeBSD.org Message-ID: <20030516135815.GH1440@fump.kawo2.rwth-aachen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-PGP-Fingerprint: 7EC1 5B98 4554 2A63 9079 2B2F 9A94 CD6F 7F14 EFA4 X-PGP-at: finger alex@big.endian.de X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. User-Agent: Mutt/1.5.3i cc: roger@FreeBSD.org Subject: Linux port of the Brooktree Soundchip drivers X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 May 2003 13:58:18 -0000 Hi! I've ported the Linux msp3400.c driver to FreeBSD. Gerd Knorr, the author of the Linux driver agreed to release this driver under a BSD Licence, so it should be possible to commit it to the tree. The problem with our (bktr) soundchip support is, that it does only the minimal chip initialization. It works for some cases, but for more complex sound detection schemes, as in Germany (B/G Dual FM) it fails to detect any sound. That's why I and others have to use "Internal audio" in the fxtv application. This mode circumvents the MSP and uses some kind of direct output from the Tuner to the Line-Out - the reason one only has mono sound. The various slow_msp_audio hacks in bktr_audio.c help on some chipsets, but e.g. my Hauppauge Win/TV Radio with a MSP3415D-B3 are not able to have stereo sound. The Linux driver, however, always worked as expected, and instead of trying to fix the code we currently have, which is a bit hackish already now, I decided to just port the Linux driver. The current version is already working, but still has a few TODOs, such as implementing all the sysctl knobs that are now set to the default values and not changeable, or giving the kernel thread a better name, based on the device number, or doing the right thing for DPL chipsets (I don't have a Dolby card, but the Linux driver does seem to know how to handle those chips, such as the bktr_audio.c). I'm working on this. After that, a bit of cleanup is also needed, but only few. However, I really need to input of testers and if you encounter any problems. This code does all detection routines you can find in the specs of the MSP34xx chips, so it should work out of the box. Indeed I can have stereo sound on all my German channels here, and it also correctly detects bilingual or mono modes while keeping the same channel (that's what the kernel thread is for). If you have had problems with your bktr sound in the past, or if you just want to help me debug any problems with my port, please try the following patch: http://people.freebsd.org/~alex/bktr.patch I'm looking forward to any kind of reports, success or bug reports. Once I have a well working version, I hope Roger is going to merge in this code. Thanks Alex