From owner-freebsd-multimedia@FreeBSD.ORG Fri Jan 6 14:24:08 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 7579B16A420 for ; Fri, 6 Jan 2006 14:24:08 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FB1143D53 for ; Fri, 6 Jan 2006 14:24:07 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: by xproxy.gmail.com with SMTP id s9so2206474wxc for ; Fri, 06 Jan 2006 06:24:02 -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=WIZu8lxEzytjKLwzkhcQrOwhh9osbSHwC3qJNqgvcMP6ffk9I8KvjUm5kzNnNv8lttE8DC1gPgMz+wNP6awnrDXRDbYxR3nKl+KaxZGk54LU2lwMlCfLzCqsLu/VC6HlrrBVurqk6DLkd2CUyMEGsGsaP+8XMyYPTurKWtaeVgA= Received: by 10.70.54.3 with SMTP id c3mr3287272wxa; Fri, 06 Jan 2006 06:24:02 -0800 (PST) Received: by 10.70.66.9 with HTTP; Fri, 6 Jan 2006 06:24:02 -0800 (PST) Message-ID: Date: Fri, 6 Jan 2006 08:24:02 -0600 From: Nikolas Britton To: Ariff Abdullah In-Reply-To: <20060106210703.5a6bc4d6.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> 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: Fri, 06 Jan 2006 14:24:08 -0000 On 1/6/06, Ariff Abdullah wrote: > On Fri, 6 Jan 2006 06:33:19 -0600 > Nikolas Britton wrote: > > Hello, I'm having the same problem that was described on the current > > mailling list about a week ago, here's the thread: > > http://groups.google.com/group/mailing.freebsd.current/browse_thread/th= read/587de689691ab207 > > > > Here's the short version: Audio playback is too fast, it's too fast > > in KDE and too fast on the console (splay) but CD playback is > > perfect. Based on what I read in the link above the problem had been > > fixed and MFC'd, so I updated the system to 6-STABLE, but playback > > is still too fast. > > > > > uname -a > > FreeBSD musicbox1.local 6.0-STABLE FreeBSD 6.0-STABLE #0: Fri Jan 6 > > 03:51:40 CST 2006 > > root@musicbox1.local:/usr/obj/usr/src/sys/GENERIC i386 > > ------------------------------ > > ACPI APIC Table: > > Timecounter "i8254" frequency 1193182 Hz quality 0 > > CPU: Intel Pentium III (996.77-MHz 686-class CPU) > > Origin =3D "GenuineIntel" Id =3D 0x68a Stepping =3D 10 > > Features=3D0x383fbff > ,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE> real memory =3D 266301440 (253 > > MB) avail memory =3D 251097088 (239 MB) > > Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 > > acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 > > pcm0: port 0xd800-0xd8ff,0xdc40-0xdc7f irq 17 > > at device 31.5 on pci0 > > pcm0: > > pcm0: measured ac97 link rate at 55942 Hz > > ------------------------------ > > > cat /dev/sndstat > > FreeBSD Audio Driver (newpcm) > > Installed devices: > > pcm0: at io 0xd800, 0xdc40 irq 17 bufsz 16384 > > kld snd_ich (1p/1r/2v channels duplex default) > > ------------------------------ > > > sysctl -a hw.snd > > hw.snd.report_soft_formats: 1 > > hw.snd.targetirqrate: 32 > > hw.snd.verbose: 1 > > hw.snd.maxautovchans: 4 > > hw.snd.unit: 0 > > hw.snd.pcm0.buffersize: 16384 > > hw.snd.pcm0.vchans: 2 > > hw.snd.pcm0.ac97rate: 55942 > > Set hw.snd.pcm0.ac97rate=3D48000 and see if that fix it. > > 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