[alsa-devel] Unregister a card from userspace?
Clemens Ladisch
clemens at ladisch.de
Wed Nov 4 12:24:42 CET 2015
Ricard Wanderlof wrote:
> My use case is that I have a card driver I'm working on as a module, and
> while insmodding it works fine, I can't rmmod it because once
> snd_soc_register_card() has been called, it has a usage count of 2 and
> thus cannot be rmmod:ed.
soc_probe_component() adds a reference to each component's driver's
module. Maybe putting each component into its own module would help.
Anyway, you should be able to unbind the driver:
<https://lwn.net/Articles/143397/>
Regards,
Clemens
More information about the Alsa-devel
mailing list