[alsa-devel] [PATCH] ASoC: rsnd: stop all working stream when .remove

Takashi Iwai tiwai at suse.de
Tue Sep 5 16:08:31 CEST 2017


On Tue, 05 Sep 2017 16:04:00 +0200,
Mark Brown wrote:
> 
> On Tue, Sep 05, 2017 at 01:35:58PM +0200, Takashi Iwai wrote:
> 
> > So my idea is something like below (totally untested): call
> > snd_card_disconnect_sync() at the remove call of each component at the
> > beginning.
> > That assures stopping all pending operations and syncs with the file
> > releases.  For ASoC, we may want to wrap it with ASoC structs, but you
> > can have an idea by this patch.
> 
> I'd say that in ASoC we'd have the call to this in the core rather than
> wrapping it, I'd expect the first thing the drivers do is to unregister
> the component.

Yes, that makes sense.


Takashi


More information about the Alsa-devel mailing list