[alsa-devel] [PATCH] ASoC: soc-compress: Cancel delayed power down if needed

Mark Brown broonie at opensource.wolfsonmicro.com
Sat Jan 26 09:52:36 CET 2013


On Fri, Jan 25, 2013 at 03:38:19PM +0000, Charles Keepax wrote:

> +	/* cancel any delayed stream shutdown that is pending */
> +	if (codec_dai->pop_wait) {
> +		codec_dai->pop_wait = 0;
> +		cancel_delayed_work(&rtd->delayed_work);
> +	}

This looks racy - the check for pop_wait can't be doing a huge amount
here, the work might already have been scheduled.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20130126/aff0c365/attachment.sig>


More information about the Alsa-devel mailing list