diff options
| author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-03-02 19:10:02 -0500 |
|---|---|---|
| committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-03-03 20:58:36 -0500 |
| commit | 28e33269a71cb4104c2e0629b6a3ef7344436f93 (patch) | |
| tree | 1eedb73eb13bce3795c624774df912e6e204c598 /sound/soc/codecs/wm8994.c | |
| parent | afaf1591203e4ea12c4c8e0240549ff5e592d7ae (diff) | |
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index 6166a5783410..bda5ddbeecb4 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c | |||
| @@ -686,6 +686,9 @@ static void wm1811_jackdet_set_mode(struct snd_soc_codec *codec, u16 mode) | |||
| 686 | { | 686 | { |
| 687 | struct wm8994_priv *wm8994 = snd_soc_codec_get_drvdata(codec); | 687 | struct wm8994_priv *wm8994 = snd_soc_codec_get_drvdata(codec); |
| 688 | 688 | ||
| 689 | if (!wm8994->jackdet || !wm8994->jack_cb) | ||
| 690 | return; | ||
| 691 | |||
| 689 | if (wm8994->active_refcount) | 692 | if (wm8994->active_refcount) |
| 690 | mode = WM1811_JACKDET_MODE_AUDIO; | 693 | mode = WM1811_JACKDET_MODE_AUDIO; |
| 691 | 694 | ||
