From owner-freebsd-multimedia@FreeBSD.ORG Sun Jan 8 05:57:01 2006 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 9A0BC16A41F for ; Sun, 8 Jan 2006 05:57:01 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id A8F3F43D46 for ; Sun, 8 Jan 2006 05:57:00 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: by xproxy.gmail.com with SMTP id s9so2392992wxc for ; Sat, 07 Jan 2006 21:56:59 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=P00g2HKFCknaVbvNmjuPLWlux/GL5WVAR/m3yV6HWRZgANG/xg5ix4E3hIUAto1Bas+Si7OvInx5850xR63MxZv2NxnGVySnzVlxuupZmIZjqsPdc7k0JoUEL2abtq/26KKALI3fTSCAmQY55z79GyswXdyoiODPYy2ukiIzchs= Received: by 10.70.94.16 with SMTP id r16mr4842483wxb; Sat, 07 Jan 2006 21:56:59 -0800 (PST) Received: by 10.70.66.9 with HTTP; Sat, 7 Jan 2006 21:56:59 -0800 (PST) Message-ID: Date: Sat, 7 Jan 2006 23:56:59 -0600 From: Nikolas Britton To: Ariff Abdullah In-Reply-To: <20060107202406.67bd8ac2.ariff@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060106210703.5a6bc4d6.ariff@FreeBSD.org> <20060107000044.107d04ca.ariff@FreeBSD.org> <20060107202406.67bd8ac2.ariff@FreeBSD.org> Cc: freebsd-multimedia@freebsd.org Subject: Re: Audio playing fast on 6.x (Looking for Ariff Abdullah) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jan 2006 05:57:01 -0000 On 1/7/06, Ariff Abdullah wrote: > On Sat, 7 Jan 2006 05:43:18 -0600 > Nikolas Britton wrote: > > > > Problem solved, solution: > > > > /etc/sysctl.conf: > > hw.snd.pcm0.ac97rate=3D56250 > > > > Turns out ac97rate was the problem but it needed to be bumped up, > > not down. I found two main threads and a PR with the same problem: > > > > May 2002, fast playback with Intel 82801BA (ICH2): > > http://groups.google.com/group/sol.lists.freebsd.multimedia/browse_thre= ad/thread/799ffc490546679e/ > > > > Feb 2003, Hyperactive ICH2 sound (with workaround): > > http://groups.google.com/group/mailing.freebsd.current/browse_thread/th= read/f1017788cd486d50/ > > > > kern/31521 : [sound] pcm0 plays too fast on Intel 82801BA (ICH2): > > http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dkern/31521 > > > > > Please give this a try. Replace your sys/dev/sound/pci/ich.c with: > > http://people.freebsd.org/~ariff/test/ich.c > Still fast. I replaced the file and then did a standard kernel rebuild, also commenting out hw.snd.pcm0.ac97rate=3D56250 in /etc/sysctl.conf. Here's the dmesg for that kernel: > grep pcm /root/dmesg3 timer: 0x000100ef therm: 0x00000000 err: 0x00010000 pcm: 0x00010000 pcm0: port 0xd800-0xd8ff,0xdc40-0xdc7f irq 17 at device 31.5 on pci0 pcm0: Reserved 0x100 bytes for rid 0x10 type 4 at 0xd800 pcm0: Reserved 0x40 bytes for rid 0x14 type 4 at 0xdc40 pcm0: [MPSAFE] pcm0: pcm0: Codec features headphone, 6 bit master volume, Analog Devices Phat St= ereo pcm0: Primary codec extended features variable rate PCM pcm0: ac97 codec dac ready count: 0 pcm0: sndbuf_setmap f7cf000, 4000; 0xd09e5000 -> f7cf000 pcm0: sndbuf_setmap f7cb000, 4000; 0xd09e9000 -> f7cb000 pcm0: measured ac97 link rate at 55930 Hz