From owner-freebsd-questions@FreeBSD.ORG Tue Apr 8 16:18:40 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F290037B401; Tue, 8 Apr 2003 16:18:39 -0700 (PDT) Received: from blacklamb.mykitchentable.net (170-215-86-254.br1.elk.ca.frontiernet.net [170.215.86.254]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8AC1443F85; Tue, 8 Apr 2003 16:18:37 -0700 (PDT) (envelope-from drew@mykitchentable.net) Received: from tagalong (unknown [165.107.42.110]) by blacklamb.mykitchentable.net (Postfix) with SMTP id 5F6A6EE55C; Tue, 8 Apr 2003 16:18:34 -0700 (PDT) Message-ID: <027101c2fe25$2d6257e0$6e2a6ba5@tagalong> From: "Drew Tomlinson" To: "Orion Hodson" References: <200304080409.h3849qnR064368@puma.icir.org> Date: Tue, 8 Apr 2003 16:18:33 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 cc: FreeBSD Questions Subject: Re: ICH4 Sound Support? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Apr 2003 23:18:40 -0000 ----- Original Message ----- From: "Orion Hodson" To: "Drew Tomlinson" Cc: "FreeBSD Questions" Sent: Monday, April 07, 2003 9:09 PM Subject: Re: ICH4 Sound Support? > /-- "Drew Tomlinson" wrote: > | > > | > % fetch -o feeder_rate.c > | 'http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/sys/dev/sound/pcm/feed > | er_rate.c?rev=1.9&content-type=text/plain' > | > % cp feeder_rate.c ${SRC}/sys/dev/sound/pcm/ > | > > | > If this doesn't work or you can't make it compile, let me know. > | > | I tried this and was successful in getting it to compile but my sound > | quality is still poor. I was thinking of trying again after getting all the > | latest pcm sources. How can I do that using your example or is there a > | better way? I tried going to ftp.freebsd.org to see if I could find them > | but did not have any luck. > > The handbook does a better job of explaining this that I would :-) > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cutting-edge.html > > You might also want to look at the developers handbook: > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/index.h tm > l > > Personally, I use 2 machines: a "stable" desktop and a diskless development > machine to run kernels and debug kernels on. I wouldnt recommend this when > you are just starting out, but if you ever decide you want to do kernel work I > can highly recommend it. More info along these lines in the developers > handbook in the kernel debugging section. > > | Thank you again for your help. Even if I don't resolve my problem I am > | still learning a lot. > > Okay, there's a reasonable possibility my initial suspicion is just wrong and > there's a chance the new file did not make it into the installed kernel/kernel > modules. If you could gather some additional information whilst an > "offending" application is running, it would be very helpful. Could you set > the sysctl variable "hw.snd.verbose" to be "3" (== maximum verbosity). Run > the application that is generating the noise and whilst it's running, run 'cat > /dev/sndstat > sndstat.log'. The generated log file should have enough info > to have a better idea about the problem. OK, here's the output: farmer> cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: pcm0: at io 0xc800, 0xcc40 irq 11 bufsz 16384 (1p/1r/0v channels duplex default) [pcm0:play:0]: spd 44100, fmt 0x10000010, flags 00000000 interrupts 0, underruns 0, ready 0 {userland} -> feeder_root(0x10000010) -> {hardware} [pcm0:record:0]: spd 0, fmt 0x00000000/0x00000008, flags 00000000 interrupts 0, overruns 0, hfree 16384, sfree 0 {hardware} -> feeder_root(0x00000000) -> {userland} File Versions: $FreeBSD: src/sys/dev/sound/pcm/fake.c,v 1.10 2001/08/23 11:30:52 cg Exp $ $FreeBSD: src/sys/dev/sound/pcm/dsp.c,v 1.57 2002/08/28 15:19:30 orion Exp $ $FreeBSD: src/sys/dev/sound/pcm/channel.c,v 1.85 2002/11/25 17:17:42 cg Exp $ $FreeBSD: src/sys/dev/sound/pcm/buffer.c,v 1.13 2002/11/25 17:17:41 cg Exp $ $FreeBSD: src/sys/dev/sound/pcm/ac97.c,v 1.28 2002/11/26 18:16:26 cg Exp $ $FreeBSD: src/sys/dev/sound/pci/vibes.c,v 1.11 2001/10/24 21:44:07 jhb Exp $ $FreeBSD: src/sys/dev/sound/pci/via82c686.c,v 1.19 2002/08/17 16:13:29 orion Exp $ $FreeBSD: src/sys/dev/sound/pci/via8233.c,v 1.2 2002/08/18 00:29:08 orion Exp $ $FreeBSD: src/sys/dev/sound/pci/t4dwave.c,v 1.35 2002/11/26 18:16:26 cg Exp $ $FreeBSD: src/sys/dev/sound/pci/solo.c,v 1.24 2002/08/25 02:00:49 orion Exp $ $FreeBSD: src/sys/dev/sound/pci/neomagic.c,v 1.27 2002/03/04 00:36:04 orion Exp $ $FreeBSD: src/sys/dev/sound/pci/maestro.c,v 1.17 2002/11/26 18:16:26 cg Exp $ $FreeBSD: src/sys/dev/sound/pci/ich.c,v 1.24 2002/08/19 16:03:56 orion Exp $ $FreeBSD: src/sys/dev/sound/pci/fm801.c,v 1.15 2002/09/03 08:58:15 sobomax Exp $ $FreeBSD: src/sys/dev/sound/pci/es137x.c,v 1.42 2002/04/28 22:38:23 cg Exp $ $FreeBSD: src/sys/dev/sound/pci/emu10k1.c,v 1.28 2002/11/26 18:16:26 cg Exp $ $FreeBSD: src/sys/dev/sound/pci/ds1.c,v 1.28 2002/11/26 18:16:26 cg Exp $ $FreeBSD: src/sys/dev/sound/pci/csapcm.c,v 1.23 2001/08/23 11:30:51 cg Exp $ $FreeBSD: src/sys/dev/sound/pci/csa.c,v 1.24 2002/07/24 21:27:22 ambrisko Exp $ $FreeBSD: src/sys/dev/sound/pci/cs4281.c,v 1.12 2002/08/23 06:19:28 orion Exp $ $FreeBSD: src/sys/dev/sound/pci/cmi.c,v 1.18 2002/11/26 18:16:26 cg Exp $ $FreeBSD: src/sys/dev/sound/pci/als4000.c,v 1.8 2001/10/24 21:42:06 jhb Exp $ $FreeBSD: src/sys/dev/sound/isa/sbc.c,v 1.36 2002/11/26 18:16:25 cg Exp $ $FreeBSD: src/sys/dev/sound/isa/sb8.c,v 1.69 2002/01/25 04:14:05 scottl Exp $ $FreeBSD: src/sys/dev/sound/isa/sb16.c,v 1.76 2002/07/30 16:24:00 sobomax Exp $ $FreeBSD: src/sys/dev/sound/isa/mss.c,v 1.79 2002/11/26 18:16:25 cg Exp $ $FreeBSD: src/sys/dev/sound/isa/gusc.c,v 1.12 2001/08/23 11:30:50 cg Exp $ $FreeBSD: src/sys/dev/sound/isa/ess.c,v 1.23 2002/01/25 04:14:05 scottl Exp $ $FreeBSD: src/sys/dev/sound/isa/es1888.c,v 1.9 2001/08/23 11:30:50 cg Exp $ $FreeBSD: src/sys/dev/sound/isa/ad1816.c,v 1.25 2002/11/26 18:16:25 cg Exp $ $FreeBSD: src/sys/dev/sound/pcm/vchan.c,v 1.9 2002/11/25 17:17:43 cg Exp $ $FreeBSD: src/sys/dev/sound/pcm/sound.c,v 1.80 2002/11/26 18:16:27 cg Exp $ $FreeBSD: src/sys/dev/sound/pcm/sndstat.c,v 1.10 2002/11/25 17:17:42 cg Exp $ $FreeBSD: src/sys/dev/sound/pcm/mixer.c,v 1.28 2002/11/26 18:16:27 cg Exp $ $FreeBSD: /repoman/r/ncvs/src/sys/dev/sound/pcm/feeder_rate.c,v 1.9 2003/03/05 14:48:28 orion Exp $ $FreeBSD: src/sys/dev/sound/pcm/feeder_fmt.c,v 1.8 2002/11/25 17:17:42 cg Exp $ $FreeBSD: src/sys/dev/sound/pcm/feeder.c,v 1.24 2002/11/25 17:17:42 cg Exp $ Thanks again!!! Drew