diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-03-03 01:10:02 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-04-04 13:35:20 +0200 |
commit | 149c53b514d0a42abbb2c9611ffc9fa2d94857e8 (patch) | |
tree | eaab2c97f044099c8f185aad8d689d80ab42474e /sound/soc/codecs/wm8994.c | |
parent | ASoC: dapm: Allow DAPM registers to be 31 bit (diff) | |
download | linux-149c53b514d0a42abbb2c9611ffc9fa2d94857e8.tar.xz 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 '')
-rw-r--r-- | sound/soc/codecs/wm8994.c | 3 |
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; |