Skip to contentSkip to conversation

multiple cards mounted

DISCUSSION David Cohen 2 participants 2 messages Aug 5, 2005

lore
Share & tools
lore
#0 lore raw

Hi all,

I am trying to write a alsa driver as a module. But after load and unload this module, the card is still mounted. If I try to load it again, it shows the same card mounted twice. How can I solve this problem? What should I put into the module_exit function?

BR,

David Cohen

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

#1 lore raw
Quoted 4 lines · David Cohen

I am trying to write a alsa driver as a module. But after load and unload this module, the card is still mounted. If I try to load it again, it shows the same card mounted twice. How can I solve this problem? What should I put into the module_exit function?

Something that directly or indirectly calls snd_card_free(). See any other driver for examples.

HTH
Clemens

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf