Re: [alsa-devel] unload Audio drivers while playback stream is active case kernel crash

From: Mark Brown
Date: Wed Jan 14 2015 - 11:34:35 EST


On Wed, Jan 14, 2015 at 02:01:33PM +0100, Takashi Iwai wrote:
> Mark Brown wrote:

> > > Above all, disallowing the module unload while using is the common
> > > behavior of any other drivers. Why do we have to be a rebel against
> > > all civil manner? :)

> > That's not true for everything

> Hmm, which driver does behave so intentionally? I'm interested in the
> supposed reason behind it.

Relatively few of the subsystems in drivers have references to
module_get().

> > and for ASoC I'd tend to assume that the
> > user knows what they're doing and has a good reason for it; it's
> > certainly something that can be helpful in development.

> The module unload is never considered to be equivalent with hot
> unplug It's more than that.

I'm not sure that's the case from a user perspective.

Attachment: signature.asc
Description: Digital signature