Date: Sat, 7 Jan 2006 23:56:59 -0600 From: Nikolas Britton <nikolas.britton@gmail.com> To: Ariff Abdullah <ariff@freebsd.org> Cc: freebsd-multimedia@freebsd.org Subject: Re: Audio playing fast on 6.x (Looking for Ariff Abdullah) Message-ID: <ef10de9a0601072156w491c0db3k428a57afdd9aa81d@mail.gmail.com> In-Reply-To: <20060107202406.67bd8ac2.ariff@FreeBSD.org> References: <ef10de9a0601060433w10e1af6apc0dc90ce579712ce@mail.gmail.com> <20060106210703.5a6bc4d6.ariff@FreeBSD.org> <ef10de9a0601060624q51497ec3yc20a335a43b17d9c@mail.gmail.com> <20060107000044.107d04ca.ariff@FreeBSD.org> <ef10de9a0601070343w28e6d934j78b9ef77986efb2c@mail.gmail.com> <20060107202406.67bd8ac2.ariff@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 1/7/06, Ariff Abdullah <ariff@freebsd.org> wrote: > On Sat, 7 Jan 2006 05:43:18 -0600 > Nikolas Britton <nikolas.britton@gmail.com> 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: <Intel ICH2 (82801BA)> 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: <Analog Devices AD1885 AC97 Codec (id =3D 0x41445360)> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ef10de9a0601072156w491c0db3k428a57afdd9aa81d>