kern/107516: emu10k1 - skips, clicks and lag after a day of heavy usage

Ricardo Nabinger Sanchez rnsanchez at
Thu Jan 4 08:40:23 PST 2007

The following reply was made to PR bin/107516; it has been noted by GNATS.

From: Ricardo Nabinger Sanchez <rnsanchez at>
To: Jonathan Liu <Net147 at>
Cc: freebsd-gnats-submit at
Subject: Re: kern/107516: emu10k1 - skips, clicks and lag after a day of
 heavy usage
Date: Thu, 4 Jan 2007 14:10:42 -0200

 On Thu, 4 Jan 2007 12:35:07 GMT
 Jonathan Liu <Net147 at> wrote:
 > >Fix:
 > A workaround is to restart the computer.
 > Reloading the sound card module as follows does not fix the problem:
 > kldunload snd_emu10k1
 > kldunload sound
 > kldload snd_emu10k1
 > I'm thinking it might be kernel related.
 > Perhaps something to do with scheduling and preemption.
 > This problem does not ever occur in Windows XP Professional.
 It happens for me rarely with OGG/MP3 files with XMMS, and pausing-unpausing
 seems to "refresh" the sound buffer with good data.
 But when it comes to WAV files, specially short ones and/or with different
 samplings (22 kHz, 11 kHz, ...) and/or word type (8/16 bits,
 signed/unsigned), I can rarely get a _correct_ playback, often clicking and
 truncated (near the end of file) sound, and also happens in a random fashion
 (sometimes clip, others distort, others truncate, or any combination).
 Anytime, by the way.
 Repeatable both with emu10k1 and emu10kx (from ports) drivers, using "play"
 command (audio/sox), and either with the 4 KB buffer or larger.
 Relevant info:
 pcib1 at pci0:1:0: class=0x060400 card=0x00000080 chip=0xb1981106 rev=0x00 hdr=0x01
     vendor   = 'VIA Technologies Inc'
     device   = 'ProSavageDDR P4X600 CPU to AGP Bridge'
     class    = bridge
     subclass = PCI-PCI
 pcm0 at pci0:10:0: class=0x040100 card=0x80611102 chip=0x00021102 rev=0x07 hdr=0x00
     vendor   = 'Creative Labs'
     device   = 'EMU10000 Sound Blaster Live! (Also Live! 5.1) - OEM from DELL - CT4780'
     class    = multimedia
     subclass = audio
 emujoy0 at pci0:10:1:      class=0x098000 card=0x00201102 chip=0x70021102 rev=0x07 hdr=0x00
     vendor   = 'Creative Labs'
     device   = 'EMU10000 Game Port'
     class    = input device
 isab0 at pci0:17:0:        class=0x060100 card=0x80ed1043 chip=0x32271106 rev=0x00 hdr=0x00
     vendor   = 'VIA Technologies Inc'
     device   = 'VT8237 PCI-to-ISA Bridge'
     class    = bridge
     subclass = PCI-ISA
 # sysctl -a | grep snd
 hw.snd.report_soft_formats: 1
 hw.snd.targetirqrate: 32
 hw.snd.verbose: 1
 hw.snd.maxautovchans: 0
 hw.snd.unit: 0
 hw.snd.pcm0.buffersize: 4096
 hw.snd.pcm0.vchans: 0
 pcm0: <Creative EMU10K1> port 0xd800-0xd81f at device 10.0 on pci0
 pcm0: <SigmaTel STAC9708/11 AC97 Codec>
 # vmstat -i
 interrupt                          total       rate
 irq1: atkbd0                      110012          1
 irq6: fdc0                            10          0
 irq12: psm0                      1167054         11
 irq14: ata0                       882550          8
 irq15: ata1                           18          0
 irq16: nvidia0+                 14367427        136
 irq21: uhci0 uhci*                208925          1
 irq23: vr0                        500321          4
 cpu0: timer                    210239163       1999
 Total                          227475480       2163
 # uname -a
 FreeBSD 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May  7 04:32:43 UTC 2006     root at  i386
 Ricardo Nabinger Sanchez     <rnsanchez@{,}>
 Powered by FreeBSD
   "Left to themselves, things tend to go from bad to worse."

More information about the freebsd-multimedia mailing list