提交 28e33269 编写于 作者: M Mark Brown

ASoC: wm8994: Don't bother updating the jackdet mode needlessly

If we're not doing jackdet it's not needed.
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 afaf1591
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册