All of lore.kernel.org
 help / color / mirror / Atom feed
* Can't Unload ALSA Driver Without Disconnecting the Device
@ 2015-06-12  6:28 Azizul Hakim
  2015-06-12  6:41 ` Takashi Iwai
  0 siblings, 1 reply; 7+ messages in thread
From: Azizul Hakim @ 2015-06-12  6:28 UTC (permalink / raw)
  To: alsa-devel

Hi,

I've been developing a sound card driver for a USB device using ALSA. My
driver is almost working but I've got one small issue. If I try to unload
the driver module using "rmmod" command  when the device is still connected
to the USB port, it says "Module is in use" even though I'm not playing any
sound files or anything.


If I try to execute the "lsmod" command I see that it is saying the usage
count of my driver to be 1, but it doesn't say anything about who is using
it. Once I disconnect the device from the USB port, I can easily unload the
module.


So it seems to me it won't be possible to unload a sound card driver if the
card is attached in the computer. Is my assumption correct? If not, what
might be some key points to solve the issue?

Thanks for any suggestion

Regards
Azizul Hakim

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-06-12  7:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-12  6:28 Can't Unload ALSA Driver Without Disconnecting the Device Azizul Hakim
2015-06-12  6:41 ` Takashi Iwai
2015-06-12  6:51   ` Azizul Hakim
2015-06-12  6:55     ` Takashi Iwai
2015-06-12  6:58       ` Azizul Hakim
     [not found]       ` <CA+k7WwY9vfXp0sKP-WgtOu6FwRouSd1yh_4Za2xmpiDPwd_wPQ@mail.gmail.com>
2015-06-12  7:01         ` Takashi Iwai
2015-06-12  7:08           ` Azizul Hakim

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.