[alsa-devel] [PATCH] ASoC: wm8994: Don't bother updating the jackdet mode needlessly
3 Mar
2012
3 Mar
'12
2:10 a.m.
If we're not doing jackdet it's not needed.
Signed-off-by: Mark Brown broonie@opensource.wolfsonmicro.com --- 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 89d1819..57acf52 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) { struct wm8994_priv *wm8994 = snd_soc_codec_get_drvdata(codec);
+ if (!wm8994->jackdet || !wm8994->jack_cb) + return; + if (wm8994->active_refcount) mode = WM1811_JACKDET_MODE_AUDIO;
--
1.7.9.1
4640
Age (days ago)
4640
Last active (days ago)
0 comments
1 participants
participants (1)
-
Mark Brown