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

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Tue Sep 5 09:40:11 CEST 2017


Hi Takashi-san

Thank you for your feedback

> This isn't something you shouldn't fiddle with the codec layer.
> If the driver gets removed during the operation, you have to cancel 
> the operation and sync with it in a proper way, then proceed the rest 
> of the remove, not only a codec-specific resource management.
(snip)
> Here I mentioned the codec driver, but it's applied to each lower-level
> component.  It'd need some graceful way to communicate with the
> top-level card to assure the removal of the component.

I agree.
I can't access to source code now (I'm in business-trip), but my head-acke is that kernel doesn't check return value from .remove when unbind case.
Thus, we can't "cancel" remove operation.
I'm happy if you can confirm it.




More information about the Alsa-devel mailing list