Audio playing fast on 6.x (Looking for Ariff Abdullah)

Nikolas Britton nikolas.britton at gmail.com
Fri Jan 6 06:24:08 PST 2006


On 1/6/06, Ariff Abdullah <ariff at freebsd.org> wrote:
> On Fri, 6 Jan 2006 06:33:19 -0600
> Nikolas Britton <nikolas.britton at gmail.com> 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/thread/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 at musicbox1.local:/usr/obj/usr/src/sys/GENERIC  i386
> > ------------------------------
> > ACPI APIC Table: <DELL   GX150  >
> > Timecounter "i8254" frequency 1193182 Hz quality 0
> > CPU: Intel Pentium III (996.77-MHz 686-class CPU)
> >   Origin = "GenuineIntel"  Id = 0x68a  Stepping = 10
> > Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR
> > ,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE> real memory  = 266301440 (253
> > MB) avail memory = 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: <Intel ICH2 (82801BA)> port 0xd800-0xd8ff,0xdc40-0xdc7f irq 17
> > at device 31.5 on pci0
> > pcm0: <Analog Devices AD1885 AC97 Codec>
> > pcm0: measured ac97 link rate at 55942 Hz
> > ------------------------------
> > > cat /dev/sndstat
> > FreeBSD Audio Driver (newpcm)
> > Installed devices:
> > pcm0: <Intel ICH2 (82801BA)> 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=48000 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="YES"
snd_ich_load="YES"
hw.snd.pcm0.ac97rate=48000
hw.snd.ac97rate=48000
hint.pcm.0.ac97rate="48000"
hw.snd.maxautovchans=4


More information about the freebsd-multimedia mailing list