ASoC: Pass the jack to jack notifiers
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 22 Feb 2011 20:42:35 +0000 (12:42 -0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 24 Feb 2011 09:42:33 +0000 (09:42 +0000)
We're currently not passing anything and this will make the card and so on
more discoverable.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
sound/soc/soc-jack.c

index 1382251ed2a2e03b0bad0f58cd66fb4203928684..fcab80b36a378f4f9089971d1d04a9473f65549c 100644 (file)
@@ -101,7 +101,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, NULL);
+       blocking_notifier_call_chain(&jack->notifier, status, jack);
 
        snd_soc_dapm_sync(dapm);