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>
This commit is contained in:
Родитель
41b5b3bd5b
Коммит
149c53b514
|
@ -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);
|
struct wm8994_priv *wm8994 = snd_soc_codec_get_drvdata(codec);
|
||||||
|
|
||||||
|
if (!wm8994->jackdet || !wm8994->jack_cb)
|
||||||
|
return;
|
||||||
|
|
||||||
if (!wm8994->jackdet || !wm8994->jack_cb)
|
if (!wm8994->jackdet || !wm8994->jack_cb)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче