From owner-freebsd-multimedia@FreeBSD.ORG Sat Jul 9 19:59:50 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 C9B4516A420 for ; Sat, 9 Jul 2005 19:59:50 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: from smtp103.sbc.mail.mud.yahoo.com (smtp103.sbc.mail.mud.yahoo.com [68.142.198.202]) by mx1.FreeBSD.org (Postfix) with SMTP id 0890443D49 for ; Sat, 9 Jul 2005 19:59:49 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: (qmail 76267 invoked from network); 9 Jul 2005 19:59:49 -0000 Received: from unknown (HELO optimator.noacks.org) (noacks@swbell.net@70.240.213.247 with login) by smtp103.sbc.mail.mud.yahoo.com with SMTP; 9 Jul 2005 19:59:49 -0000 Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id B8DFA60ED; Sat, 9 Jul 2005 14:59:48 -0500 (CDT) Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 07334-09; Sat, 9 Jul 2005 14:59:46 -0500 (CDT) Received: from compgeek.noacks.org (compgeek [192.168.1.10]) by optimator.noacks.org (Postfix) with ESMTP id EE46A60E8; Sat, 9 Jul 2005 14:59:45 -0500 (CDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by compgeek.noacks.org (8.13.4/8.13.4) with ESMTP id j69JxiO1090004; Sat, 9 Jul 2005 14:59:45 -0500 (CDT) (envelope-from noackjr@alumni.rice.edu) Message-ID: <42D02CA9.4080201@alumni.rice.edu> Date: Sat, 09 Jul 2005 14:59:37 -0500 From: Jonathan Noack User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050428) X-Accept-Language: en-us, en MIME-Version: 1.0 To: skywizard@MyBSD.org.my X-Enigmail-Version: 0.91.0.0 OpenPGP: id=991D8195; url=http://www.noacks.org/cert/noackjr.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig91751346A6B22F460DDC6D88" X-Virus-Scanned: amavisd-new at noacks.org Cc: freebsd-multimedia@freebsd.org, Alexander@Leidinger.net Subject: Massive sound changes / fix (24/32bit pcm support, new sampling rate converter, various fixes) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jul 2005 19:59:51 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig91751346A6B22F460DDC6D88 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit >> > Hardware spessific changes >> > ========================== >> >> > 3. es137x.c / es137x.h >> > * Register programming error during device initialization >> > especially for CT4730 / EV1938 chip, causing misconfigured >> > mixer (David Xu), crippled after power cycle (Kevin Oberman). >> > Fixed. >> > * Incorporate locking/spdif patches from Jon Noack. Not all >> > es137x >> > can really do spdif, clean it up a bit to only let few >> > capable chip. >> >> --- /var/log/dmesg.today Sat Jul 9 13:13:45 2005 >> +++ /var/run/dmesg.boot Sat Jul 9 20:04:47 2005 >> @@ -57,7 +57,6 @@ >> pci0: at device 7.5 (no driver attached) >> pcm0: port 0xb800-0xb83f irq 5 at device 9.0 on >> pci0 pcm0: >> -pcm0: [GIANT-LOCKED] >> xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xbc00-0xbc7f mem >> 0xe7000000-0xe700007f irq 11 at device 10.0 on pci0 miibus0: > bus> on xl0 xlphy0: <3c905C 10/100 internal PHY> on miibus0 >> >> And the music plays just fine, no bad behavior so far. >> > Credit goes to Jonathan Noack for adding spdif / locking. If you think > there are lots of pops / crackling sound, you may as well play around > with sysctl hw.snd.pcm0.latency_timer (especially during untarring big > tarball). My spdif work: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/68594 Mathew Kanner did the original locking, which I cleaned up a bit: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/59349 The _real_ credit for my locking work goes to the horrible interactivity problems that plagued -CURRENT about a year ago. Adding locking to the driver was a desperate attempt to get sound without pauses... In any case, I've been running these changes for at least a year with no problems. I tried to pester folks into committing it many times (with no success), so I am VERY excited about this work! I don't know if you've touched the man pages at all, but my latest patch includes a man page update for the spdif sysctl: http://www.noacks.org/freebsd/es137x.diff -- Jonathan Noack | noackjr@alumni.rice.edu | OpenPGP: 0x991D8195 --------------enig91751346A6B22F460DDC6D88 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFC0CyvUFz01pkdgZURAsHQAJ9HVA9wnVqqk8lINJ5rLpKCaweZOQCgj/PS sVJyMTuJXhBbK+osIWCdWaI= =MIrG -----END PGP SIGNATURE----- --------------enig91751346A6B22F460DDC6D88--