Audio playing fast on 6.x (Looking for Ariff Abdullah)
Nikolas Britton
nikolas.britton at gmail.com
Sat Jan 7 21:57:01 PST 2006
On 1/7/06, Ariff Abdullah <ariff at freebsd.org> wrote:
> On Sat, 7 Jan 2006 05:43:18 -0600
> Nikolas Britton <nikolas.britton at gmail.com> wrote:
> >
> > Problem solved, solution:
> >
> > /etc/sysctl.conf:
> > hw.snd.pcm0.ac97rate=56250
> >
> > 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/thread/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=kern/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=56250 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 = 0x41445360)>
pcm0: Codec features headphone, 6 bit master volume, Analog Devices Phat Stereo
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
More information about the freebsd-multimedia
mailing list