From alsa-devel-owner@alsa.jcu.cz  Sun Jun 14 22:44:01 1998
Received: from altrade.nijmegen.inter.nl.net (altrade.nijmegen.inter.nl.net [193.67.237.6])
	by marvin.jcu.cz (8.8.8/8.8.8) with ESMTP id WAA09055;
	Sun, 14 Jun 1998 22:43:03 +0200
Received: from obelix.fvdpol.inter.nl.net by altrade.nijmegen.inter.nl.net
	via bd99-17.Breda.NL.net [193.79.246.242] with ESMTP
	id WAA14386 (8.8.8/3.28); Sun, 14 Jun 1998 22:43:01 +0200 (MET DST)
Received: (from frank@localhost) by obelix.fvdpol.inter.nl.net (8.8.7/8.7.3) id RAA31139; Sat, 13 Jun 1998 17:24:56 +0200
From: Frank van de Pol <F.K.W.van.de.Pol@inter.nl.net>
Message-Id: <199806131524.RAA31139@obelix.fvdpol.inter.nl.net>
Subject: Re: Usage of snd_info_create_entry()
To: perex@jcu.cz
Date: Sat, 13 Jun 1998 17:24:55 +0200 (MET DST)
Cc: alsa-devel@jcu.cz (alsa)
In-Reply-To: <Pine.LNX.3.96.980610115358.457C-100000@entry.jcu.cz> from "Jaroslav Kysela" at Jun 10, 98 12:03:20 pm
Content-Type: text
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list


Jaroslav Kysela wrote:
> 
> On Tue, 9 Jun 1998, Frank van de Pol wrote:
> > 
> > When I unload the module, the entry is not removed from /proc/sound, even
> > though I call snd_info_unregister() when the module is leaving. 
> > 
> 
> Oops... Here is patch:
> 
> --- kernel/info.c.old  Mon May 25 14:06:47 1998
> +++ kernel/info.c      Wed Jun 10 11:52:47 1998
> @@ -1109,7 +1109,7 @@
>    if ( !entry || !entry -> p ) return -EINVAL;
>    snd_mutex_down_static( info );
>    if ( !entry -> card ) {
> -    proc_unregister( &proc_root, entry -> p -> low_ino );
> +    proc_unregister( snd_proc_root, entry -> p -> low_ino );
>      if ( entry == (e = snd_info_entries) ) {
>        snd_info_entries = snd_info_entries -> next;
>      } else {
> 

Works ok now. thanks for the patch.

Frank.

========================---------------->
#define NAME    "Frank van de Pol"     
#define ADDRESS "mgr. Nelislaan 10"  
#define CITY    "4741 AB Hoeven"    
#define COUNTRY "The Netherlands"  
#define EMAIL   "F.K.W.van.de.Pol@inter.NL.net     -o)
                                                   /\\
Linux - Why use Windows, since there is a door?   _\_v

