From alsa-devel-owner@alsa.jcu.cz  Tue Jun  9 22:46:31 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 WAA29314
	for <alsa-devel@jcu.cz>; Tue, 9 Jun 1998 22:46:22 +0200
Received: from obelix.fvdpol.inter.nl.net by altrade.nijmegen.inter.nl.net
	via bd99-26.Breda.NL.net [193.79.246.251] with ESMTP for <alsa-devel@jcu.cz>
	id WAA02943 (8.8.8/3.28); Tue, 9 Jun 1998 22:46:20 +0200 (MET DST)
Received: (from frank@localhost) by obelix.fvdpol.inter.nl.net (8.8.7/8.7.3) id WAA04237 for alsa-devel@jcu.cz; Tue, 9 Jun 1998 22:41:06 +0200
From: Frank van de Pol <F.K.W.van.de.Pol@inter.nl.net>
Message-Id: <199806092041.WAA04237@obelix.fvdpol.inter.nl.net>
Subject: Usage of snd_info_create_entry()
To: alsa-devel@jcu.cz (alsa)
Date: Tue, 9 Jun 1998 22:41:06 +0200 (MET DST)
Content-Type: text
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list


Hi,

I've been hacking with the sequencer stuff last weekend, and beefed up a
test program to check feasibility of creating the client connections. When
doing so I noticed a weird behavior when registering proc entries in
/proc/sound using the snd_info_create_entry call:

Registering works fine, reading from the just created /proc/sound/seqinfo
works also fine. 

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. 

Next time the module is loaded a new entry is created, and reading from the
file still works, so the 'fresh' one is used.....

This is how my /proc/sound looks at this moment:
lrwxrwxrwx   1 root     root            0 Jun  9 22:36 0 -> card1/
dr-xr-xr-x   1 root     root            0 Jun  9 22:36 card1/
-r--r--r--   1 root     root            0 Jun  9 22:36 cards
-r--r--r--   1 root     root            0 Jun  9 22:36 devices
-r--r--r--   1 root     root            0 Jun  9 22:36 meminfo
-r--r--r--   1 root     root            0 Jun  9 22:36 oss-devices
-r--r--r--   1 root     root            0 Jun  9 22:36 seqinfo
-r--r--r--   1 root     root            0 Jun  9 22:36 seqinfo
-r--r--r--   1 root     root            0 Jun  9 22:36 seqinfo
-r--r--r--   1 root     root            0 Jun  9 22:36 seqinfo
-r--r--r--   1 root     root            0 Jun  9 22:36 seqinfo
-r--r--r--   1 root     root            0 Jun  9 22:36 seqinfo
-r--r--r--   1 root     root            0 Jun  9 22:36 seqinfo
-r--r--r--   1 root     root            0 Jun  9 22:36 version

See http://web.inter.NL.net/users/F.K.W.van.de.Pol/alsa/test1.tar.gz for my
test program.

Regards,
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

