Commit 3a278a0c authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: Allow reporting of NULL jacks



Follow the core jack implementation and allow reporting on the status
of NULL jacks, avoiding the need to check in detection implementations.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent ba0a24e7
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -64,10 +64,9 @@ void snd_soc_jack_report(struct snd_soc_jack *jack, int status, int mask)
	int enable;
	int oldstatus;

	if (!jack) {
		WARN_ON_ONCE(!jack);
	if (!jack)
		return;
	}

	codec = jack->card->codec;

	mutex_lock(&codec->mutex);