Skip to content

Commit

Permalink
ASoC: wm8994: Don't bother updating the jackdet mode needlessly
Browse files Browse the repository at this point in the history
If we're not doing jackdet it's not needed.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Apr 4, 2012
1 parent 41b5b3b commit 149c53b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sound/soc/codecs/wm8994.c
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,9 @@ static void wm1811_jackdet_set_mode(struct snd_soc_codec *codec, u16 mode)
{
struct wm8994_priv *wm8994 = snd_soc_codec_get_drvdata(codec);

if (!wm8994->jackdet || !wm8994->jack_cb)
return;

if (!wm8994->jackdet || !wm8994->jack_cb)
return;

Expand Down

0 comments on commit 149c53b

Please sign in to comment.