[RFC] ASoC: pcm: Trigger all commands on error

Mark Brown broonie at kernel.org
Tue Oct 8 05:34:13 EDT 2013


On Tue, Oct 08, 2013 at 10:29:33AM +0200, Markus Pargmann wrote:

> To make proper error handling and only STOP functions that successfully
> started, we have to store the state of each function. The command error
> handling is done in pcm_native.c so we don't have any influence on that.

I meant just unwinding the things done in the trigger call.

> Another possibility is to explicitly allow multiple _STOPs. Then I could
> fix the driver to store the clock state. But I would prefer a generic
> solution.

You're going to have to handle this anyway to be robust - what happens
if it's the clock enable that fails?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131008/bebd02dd/attachment.sig>


More information about the linux-arm-kernel mailing list