[alsa-devel] How to unload a sound module.

Hi,
I am new to alsa driver development. The first problem I encountered is I could not unload a module just inserted. I always get the following message (using snd-dummy as an example).
sudo rmmod snd-dummy
ERROR: Module snd_dummy is in use
I checked who is using snd-dummy. Here is what I got and I do not know what applications are using it.
Module Size Used by snd_dummy 9600 2
Is there any easy way to unload the sound module?
Thanks, Yiliang

Yiliang Bao wrote:
Hi,
I am new to alsa driver development. The first problem I encountered is I could not unload a module just inserted. I always get the following message (using snd-dummy as an example).
sudo rmmod snd-dummy
ERROR: Module snd_dummy is in use
I checked who is using snd-dummy. Here is what I got and I do not know what applications are using it.
sudo lsof /dev/snd/*
participants (2)
-
Eliot Blennerhassett
-
Yiliang Bao