Re: [PATCH] ASoC: rsnd: stop all working stream when .remove

Mark Brown
2017-09-05T14:04:06Z

[-- Attachment #1.1: Type: text/plain, Size: 549 bytes --]

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.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]