From owner-freebsd-questions@FreeBSD.ORG Mon Apr 7 16:46:02 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 82EBA37B401; Mon, 7 Apr 2003 16:46:02 -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 A2C0243F93; Mon, 7 Apr 2003 16:46:01 -0700 (PDT) (envelope-from drew@mykitchentable.net) Received: from tagalong (unknown [165.107.42.110]) by blacklamb.mykitchentable.net (Postfix) with SMTP id CF181EE5A7; Mon, 7 Apr 2003 16:46:00 -0700 (PDT) Message-ID: <00ef01c2fd5f$d81f8520$6e2a6ba5@tagalong> From: "Drew Tomlinson" To: "Orion Hodson" References: <200304051626.h35GQDnR012446@puma.icir.org> Date: Mon, 7 Apr 2003 16:46:00 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" 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: Mon, 07 Apr 2003 23:46:02 -0000 ----- Original Message ----- From: "Orion Hodson" To: "Drew Tomlinson" Cc: "FreeBSD Questions" Sent: Saturday, April 05, 2003 9:26 AM Subject: Re: ICH4 Sound Support? > > Drew Tomlinson writes: > | I've been fighting with getting sound working on FBSD 5.0-RELEASE-p7. Can > | someone tell me if the pcm driver is supposed to work with ICH4 integrated > | sound on an Intel motherboard? I read in the 5.0 release notes that there > | is rudimentary support. However when I attempt to play an mp3 file, the > | quality is very bad. Lots of static and hissing. If I play an audio CD, it > | plays just fine. > > Drew, based on what you say above, there's a reasonable chance you > have an AC97 codec attached to your ich4 sound controller that does > not support variable rate audio. In this case the kernel does sample > rate conversion from mp3 rate (typ. 44.1kHz) to the fixed rate > (48kHz). The code on the RELENG_5_0 branch does not cope well with > this conversion. However, this is fixed on the HEAD branch (as of early > February). > > In this particular case, you should be able to just copy the file > between branches and rebuild and reinstall the kernel or kernel module > if using it. The appropriate fetch and inplace copy is: > > % 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. Thank you again for your help. Even if I don't resolve my problem I am still learning a lot. Drew