summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8994.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-03-03 00:10:02 +0000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-04-04 12:35:20 +0100
commit149c53b514d0a42abbb2c9611ffc9fa2d94857e8 (patch)
treeeaab2c97f044099c8f185aad8d689d80ab42474e /sound/soc/codecs/wm8994.c
parent41b5b3bd5b7c9dd4ab4e0583d54d81b7f7d33d1f (diff)
downloadblackbird-op-linux-149c53b514d0a42abbb2c9611ffc9fa2d94857e8.tar.gz
blackbird-op-linux-149c53b514d0a42abbb2c9611ffc9fa2d94857e8.zip
ASoC: wm8994: Don't bother updating the jackdet mode needlessly
If we're not doing jackdet it's not needed. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm8994.c')
-rw-r--r--sound/soc/codecs/wm8994.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
index c9af13f14331..44f72dc27711 100644
--- a/sound/soc/codecs/wm8994.c
+++ b/sound/soc/codecs/wm8994.c
@@ -689,6 +689,9 @@ static void wm1811_jackdet_set_mode(struct snd_soc_codec *codec, u16 mode)
if (!wm8994->jackdet || !wm8994->jack_cb)
return;
+ if (!wm8994->jackdet || !wm8994->jack_cb)
+ return;
+
if (wm8994->active_refcount)
mode = WM1811_JACKDET_MODE_AUDIO;
OpenPOWER on IntegriCloud