From owner-freebsd-multimedia@FreeBSD.ORG Sat Jan 7 11:43:20 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 AB78916A41F for ; Sat, 7 Jan 2006 11:43:20 +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 9325343D49 for ; Sat, 7 Jan 2006 11:43:19 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: by xproxy.gmail.com with SMTP id s9so2319526wxc for ; Sat, 07 Jan 2006 03:43:19 -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=kRBbU7fA9CmYwToqNCYF+Y96nBqXuTfvTkAF4pxN4jAUe8+infLV16BqJbEkWknjyKWBRN4WZCIrwJrfXmrouWv8Qv09AGDaCMGtspyresokLthy6f7tK7DWzkXMBl7reer8EeWLOsTQSn5tk1nuIgRuTbpiwyCZSDrz8cxj9SM= Received: by 10.70.54.3 with SMTP id c3mr4186496wxa; Sat, 07 Jan 2006 03:43:18 -0800 (PST) Received: by 10.70.66.9 with HTTP; Sat, 7 Jan 2006 03:43:18 -0800 (PST) Message-ID: Date: Sat, 7 Jan 2006 05:43:18 -0600 From: Nikolas Britton To: Ariff Abdullah In-Reply-To: <20060107000044.107d04ca.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> 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: Sat, 07 Jan 2006 11:43:20 -0000 On 1/6/06, Ariff Abdullah wrote: > On Fri, 6 Jan 2006 08:24:02 -0600 > Nikolas Britton wrote: > > > > Thanks for your quick reply. I tried the above and playback is still > > fast, changing it to any number doesn't seem to do anything. I also > > cannot set it with loader.conf. I have to do it manually after the > > system is loaded, Is this normal? Here is what I have in > > loader.conf: > > > > sound_load=3D"YES" > > snd_ich_load=3D"YES" > > hw.snd.pcm0.ac97rate=3D48000 > > hw.snd.ac97rate=3D48000 > > hint.pcm.0.ac97rate=3D"48000" > > hw.snd.maxautovchans=3D4 > > Put hw.* into /etc/sysctl.conf. > > Ok, since you said none of it works, how about this: > > # kldunload snd_ich > # kenv hint.pcm.0.vchanrate=3D48000 > # kldload snd_ich > # sysctl hw.snd.maxautovchans=3D4 > > Note: 1) anything that begin with hw.* should go into /etc/sysctl.conf > 2) anything that begin with hint.* should go into > /boot/device.hints > > 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_thread/t= hread/799ffc490546679e/ Feb 2003, Hyperactive ICH2 sound (with workaround): http://groups.google.com/group/mailing.freebsd.current/browse_thread/thread= /f1017788cd486d50/ kern/31521 : [sound] pcm0 plays too fast on Intel 82801BA (ICH2): http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dkern/31521