]> Pileus Git - ~andy/linux/commit
ASoC: wm8994: Ensure we get a notification on startup for jackdet
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 25 Jul 2012 22:03:36 +0000 (23:03 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 3 Aug 2012 22:03:56 +0000 (23:03 +0100)
commit99af79dff5a609fe886d271bbc91e1a95eca3066
tree204f77752d1f2a7939ad2ba58d9f8b32ff86d701
parent8cb8e83bfa7cb63ad4b3c3b79410766da397124b
ASoC: wm8994: Ensure we get a notification on startup for jackdet

Since jackdet only reports deltas it won't generate an interrupt on startup
when a jack is not present. This doesn't make a difference to userspace
but does mean we don't generate a notification via the internal notifier
chains. Fix that by scheduling a work to poll the chip after the clock is
enabled. Use an extremely large timeout since there's no urgency and we
don't want to report a false negative.

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