Re: [PATCH 1/3] ASoC: soc-core: add component remove/unregister_exp/lookup functions

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

 



Hi Mark

> > > Isn't this just a convenience for drivers though?  It means they can
> > > just clean things up with one call and I'm having a hard time thinking
> > > of any use cases for only unregistering some components.
> 
> > This means like this
> 
> > or do we want to have like this ?
> 
> > 	register_component(dev, driver_A);
> > 	register_component(dev, driver_B);
> 
> > 	unregister_component(dev); /* unregister both driver_A/driver_B */
> 
> This was what I was thinking of.  It might not actually be the most
> sensible thing but I'm pretty sure it's what I was thinking when things
> were set up originally, if there's other use cases we might need to
> change.

OK, I see.

The main headache of "platform" replacement to "component" was
dmaengine. (If my memory was correct) It only uses "lookup", "remove"
kind of function on unregister.
But, if we can unregister all component by 1 calls, these kind of
headache will gone.

Best regards
---
Kuninori Morimoto
_______________________________________________
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