projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afaf159
)
ASoC: wm8994: Don't bother updating the jackdet mode needlessly
author
Mark Brown
<
[email protected]
>
Sat, 3 Mar 2012 00:10:02 +0000
(
00:10
+0000)
committer
Mark Brown
<
[email protected]
>
Sun, 4 Mar 2012 01:58:36 +0000
(
01:58
+0000)
If we're not doing jackdet it's not needed.
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/codecs/wm8994.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/wm8994.c
b/sound/soc/codecs/wm8994.c
index 6166a5783410c57d68d5200ccebcd61576be53c0..bda5ddbeecb4d5f3ab9865dcc7cafe5887a3509d 100644
(file)
--- 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;