[alsa-devel] [PATCH 10/10] ASoC: twl6040: Simplify code in out_drv_event for pending work check

Mark Brown broonie at opensource.wolfsonmicro.com
Mon Sep 26 16:30:19 CEST 2011

On Mon, Sep 26, 2011 at 04:26:33PM +0300, Peter Ujfalusi wrote:
> Check for pending work before the DAPM event switch case, and return,
> if the work is pending.
> This way we can remove the two additional checks in POST_PMU, and
> PRE_PMD for non pending works.

Would it not be easier to just not check at all?  It looks like you're
just deciding if you should schedule the work but schedule_delayed_work
ought to handle rescheduling of an already scheduled work item fine.

More information about the Alsa-devel mailing list