mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Module usage count - sound
@ 2001-02-08  6:18 Mauricio Martinez
  0 siblings, 0 replies; only message in thread
From: Mauricio Martinez @ 2001-02-08  6:18 UTC (permalink / raw)
  To: linux-kernel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: TEXT/PLAIN; charset=X-UNKNOWN, Size: 1556 bytes --]


Kernel 2.4.1

I have sound support, OSS and my soundcard (sb) configured as modules

If I just play a sound on /dev/dsp, I get the following after the program
exits:

mixcoac:~> cat /proc/modules
sb                      2000   0 (autoclean)
sb_lib                 33504   0 (autoclean) [sb]
uart401                 6224   0 (autoclean) [sb_lib]
sound                  55280   0 (autoclean) [sb_lib uart401]
soundcore               3664   5 (autoclean) [sb_lib sound]

This means that the sound modules are not longer used and thus,
removable. Everything OK so far.

The problem occurs when /dev/dsp is blocked by the above described
process, and another process (say SOX, XMMS and such) attempts to write
to the same device. After the two of them finish, the usage count is not
reset for some reason, like

mixcoac:~> cat /proc/modules
sb                      2000   1 (autoclean)
sb_lib                 33504   0 (autoclean) [sb]
uart401                 6224   0 (autoclean) [sb_lib]
sound                  55280   0 (autoclean) [sb_lib uart401]
soundcore               3664   5 (autoclean) [sb_lib sound]

So, the module cannot be removed and stays loaded forever.

This problem is 100% reproductable.

What's wrong? any ideas?

---------------------------------------------------------------------------
Mauricio Martínez      Northeastern University    mmartine@ece.neu.edu

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-02-08  6:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-08  6:18 Module usage count - sound Mauricio Martinez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®