From owner-freebsd-multimedia@FreeBSD.ORG Thu Jan 4 16:40:23 2007 Return-Path: X-Original-To: freebsd-multimedia@hub.freebsd.org Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A123A16A40F for ; Thu, 4 Jan 2007 16:40:23 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 90BF413C474 for ; Thu, 4 Jan 2007 16:40:23 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l04GeNlQ043404 for ; Thu, 4 Jan 2007 16:40:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l04GeNAk043403; Thu, 4 Jan 2007 16:40:23 GMT (envelope-from gnats) Date: Thu, 4 Jan 2007 16:40:23 GMT Message-Id: <200701041640.l04GeNAk043403@freefall.freebsd.org> To: freebsd-multimedia@FreeBSD.org From: Ricardo Nabinger Sanchez Cc: Subject: Re: kern/107516: emu10k1 - skips, clicks and lag after a day of heavy usage X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ricardo Nabinger Sanchez List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jan 2007 16:40:23 -0000 The following reply was made to PR bin/107516; it has been noted by GNATS. From: Ricardo Nabinger Sanchez To: Jonathan Liu Cc: freebsd-gnats-submit@FreeBSD.org 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 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@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@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@pci0:10:1: class=0x098000 card=0x00201102 chip=0x70021102 rev=0x07 hdr=0x00 vendor = 'Creative Labs' device = 'EMU10000 Game Port' class = input device isab0@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 dmesg: pcm0: port 0xd800-0xd81f at device 10.0 on pci0 pcm0: interrupts: # 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 sauron.lan.box 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 04:32:43 UTC 2006 root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 Regards. -- Ricardo Nabinger Sanchez Powered by FreeBSD "Left to themselves, things tend to go from bad to worse."