From nobody@FreeBSD.org  Tue Feb 19 21:37:44 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id F341B16A469
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 19 Feb 2008 21:37:43 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id E505A13C47E
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 19 Feb 2008 21:37:43 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m1JLZDVS030725
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 19 Feb 2008 21:35:13 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m1JLZDLi030720;
	Tue, 19 Feb 2008 21:35:13 GMT
	(envelope-from nobody)
Message-Id: <200802192135.m1JLZDLi030720@www.freebsd.org>
Date: Tue, 19 Feb 2008 21:35:13 GMT
From: Yuri <yuri@tsoft.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: snd_emu10k1 driver issues a warning on unload
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         120857
>Category:       kern
>Synopsis:       [sound] [snd_emu10k1] snd_emu10k1 driver issues a warning on unload
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-multimedia
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 19 21:40:07 UTC 2008
>Closed-Date:    
>Last-Modified:  Mon Jul 27 09:22:02 UTC 2009
>Originator:     Yuri
>Release:        7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #4: Tue Feb 19 08:18:11 PST 2008
>Organization:
>Environment:
>Description:
When I just do kldload/kldunload of this driver (with the card present) I get the following message:
Warning: memory type midi buffers leaked memory on destroy (1 allocations, 16 bytes leaked).

When I have KDE loaded and I do 'kldunload snd_emu10k1' it says 'Device busy'. kinit and artsd have /dev/mixer0 and /dev/dsp0.0 open. But after this after I unload KDE 'kldunload snd_emu10k1' message becomes:

pcm0: unregister: channel pcm0:play:dsp0.p1 busy (pid 39136)
pcm0: unregister: mixer busy
pcm0: unregister: mixer busy
pcm0: unregister: mixer busy
pcm0: unregister: mixer busy
pcm0: unregister: mixer busy
pcm0: unregister: mixer busy
pcm0: unregister: channel pcm0:play:dsp0.p1 busy (pid 1578)
pcm0: unregister: channel pcm0:play:dsp0.p1 busy (pid 1578)
pcm0: unregister: mixer busy
kldunload: attempt to unload file that was loaded by the kernel
kldunload: attempt to unload file that was loaded by the kernel
kldunload: attempt to unload file that was loaded by the kernel
kldunload: attempt to unload file that was loaded by the kernel
pcm0: detached
Warning: memory type midi buffers leaked memory on destroy (1 allocations, 16 bytes leaked).

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-multimedia 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Feb 19 22:28:22 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120857 
>Unformatted:
