ASoC: Warn if WM8903 platform data is used to enable microphone IRQ
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 11 Feb 2011 14:39:13 +0000 (14:39 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 13 Feb 2011 19:50:20 +0000 (19:50 +0000)
commit905f6952c5bc8126f1d82c2eb8a699271080b57e
treeeabfa123b0d71e663441d07880088bf9b8559d75
parent8eb34207c8cf90bc991f0141f7d3fa614429a00b
ASoC: Warn if WM8903 platform data is used to enable microphone IRQ

The WM8903 interrupts are clear on read so if the WM8903 detection is
enabled from platform data when the IRQ is in use (rather than using a
direct signal from a GPIO) status may be lost during startup. Help users
spot this misconfiguration by adding a WARN_ON().

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