Re: Unregister a card from userspace?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ricard,

On 04/11/15 09:36, Ricard Wanderlof wrote:
>
> A sound card driver would normally call snd_soc_register_card() to
> register its sound card with ALSA.
>
> Is there some way to unregister the card from userspace?

No. ALSA API to deal with cards are in kernel space only.

>
> 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.

You have to unregister that card upon freeing your module.

-- 
Felipe
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux