From owner-freebsd-multimedia@FreeBSD.ORG Sat Jan 10 11:14:03 2004 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 1BE9016A4CE for ; Sat, 10 Jan 2004 11:14:03 -0800 (PST) Received: from hak.cnd.mcgill.ca (hak.cnd.mcgill.ca [132.216.11.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1455243D39 for ; Sat, 10 Jan 2004 11:13:59 -0800 (PST) (envelope-from mat@hak.cnd.mcgill.ca) Received: from hak.cnd.mcgill.ca (localhost [127.0.0.1]) by hak.cnd.mcgill.ca (8.12.9/8.12.8) with ESMTP id i0AJASba066951; Sat, 10 Jan 2004 14:10:28 -0500 (EST) (envelope-from mat@hak.cnd.mcgill.ca) Received: (from mat@localhost) by hak.cnd.mcgill.ca (8.12.9/8.12.8/Submit) id i0AJASWO066950; Sat, 10 Jan 2004 14:10:28 -0500 (EST) Date: Sat, 10 Jan 2004 14:10:27 -0500 From: Mathew Kanner To: soralx@cydem.org Message-ID: <20040110191027.GZ38657@cnd.mcgill.ca> References: <200401082355.03988.soralx@cydem.org> <20040109155048.GS38657@cnd.mcgill.ca> <200401100110.30045.soralx@cydem.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200401100110.30045.soralx@cydem.org> User-Agent: Mutt/1.4.1i Organization: I speak for myself, operating in Montreal, CANADA X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on hak.cnd.mcgill.ca cc: freebsd-multimedia@freebsd.org Subject: Re: CT5880-E 4-speaker output 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: Sat, 10 Jan 2004 19:14:03 -0000 On Jan 10, soralx@cydem.org wrote: > > > > Is anyone interested in patching 'es137x.c' to enable 4-speaker output > > > on a CS5880-E based audio card (built into mainboard; Line-In can be > > > reconfigured as another Line-Out)? I've recieved some souce code of > > > DOS drivers (written in C) for the 137x-based cards from Creative, > > > but I don't have enough experience to port the functionality to the > > > FreeBSD dirver. Also, after I managed to completely halt my machine > > > while experimenting with the driver, which almost killed the /usr > > > slice (softupdates...), I'd prefer to spend the spare time I have > > > on doing backups :) > > > > Hey, don't give up! > > I don't, but I figured that it would be _much_ faster [and safer :)] > for somebody more experienced in sound coding (and C coding in general) > than I to do that. All I need for now is to make the driver flip some bits > in the card's register to conver Line-In to Line-Out and enable copying > primary stereo stream to this other output. I think this is a reasonable starting point to get into the sound code. I suggest you try to hook-up a sysctl to make this configurable behaviour. Look at /sys/dev/sound/pci/via8233.c line 709-752 for ideas. > When I get some time (and experience), I plan to extend the driver > functionality a bit more by adding (bass/treble,3D enh,gain,mic boost) > controls and real double DAC 4-speaker (surround) output mode. It seems > like most (all?) of this is already done in ALSA, so I'd need just to > figure out how it all works and port the necessary bits. I look forward to it, and I hope this will be the beginning getting easy and fancy features out of alsa. > > Or probably I'll buy some PCI card with higher sound quality (not that > it is bad now, but it still could be better) and [5|6|7].1 mode. Does > anyone have any reccomendations on such good (but not too expensive) > card? Is there any sound card that can work in FreeBSD in 4 (and more) > speakers config mode? I'm not an authority on sound, I don't think we able to produce analog except in mono and stereo other than copying whole channels to different outputs (like your goal #1). I've heard Cameron suggest that the emu10k1 has good features that we should aspire to tapping into. --Mat > > > Bring the system to single user mode > > (kill -TERM 1) and force the the disks the re-mount read-only (mount > > -u -o ro /). Then load your hacked module. This is typically how I > > test/debug kernel modules. > > OK, this sounds sane; I probably should have done that right when I started %) > > Timestamp: 1073721041 > [SorAlx] http://cydem.org.ua/ -- Having your book made into a movie is like having your ox made into a bouillon cube. - Bill Neely