ASoC: jack: Always notify full jack status
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 13 Aug 2012 15:28:36 +0000 (16:28 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 13 Aug 2012 19:47:58 +0000 (20:47 +0100)
Don't just notify for the bits we've updated, notify the full state of the
jack otherwise users might get confused by misleading reports.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-jack.c

index 7f8b3b7428bbf12c60f603fff8fbb8d3989fa254..0c172938b82a09a1d38f790cf07d4e2b48515b2f 100644 (file)
@@ -103,7 +103,7 @@ void snd_soc_jack_report(struct snd_soc_jack *jack, int status, int mask)
        }
 
        /* Report before the DAPM sync to help users updating micbias status */
-       blocking_notifier_call_chain(&jack->notifier, status, jack);
+       blocking_notifier_call_chain(&jack->notifier, jack->status, jack);
 
        snd_soc_dapm_sync(dapm);