On Thu, Jul 28, 2016 at 10:33:31PM +0200, Lars-Peter Clausen wrote:
On 07/28/2016 05:46 AM, Vinod Koul wrote:
I agree, it makese no sense for devices to be hotplugged. And for developement flows people can do rmmond and insmod. That works fine!
I don't agree. In my opinion hot-plug is an essential feature of a modern device driver framework and if ASoC wants to claim to fall in this category we ought to support it. Hotplug is something that always pops up sooner or later. E.g. if someone puts a ASoC supported CODEC on a hot-pluggable device (maybe USB) we don't want to duplicate the code, but be able to reuse.
Right, so there's two bits to hotplug - there's hotplugging individual components separately to the card and there's hotplugging cards en masse including some of their components. The latter case definitely does make sense and should have a reasonable chance of working already. Hotplugging individual components is much more of a nice to have, though as you say if someone wants to implement it that's obviously not a problem.