mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 22:50:41 +00:00
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: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
This commit is contained in:
parent
ba0a24e738
commit
3a278a0c65
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user