Skip to content
Snippets Groups Projects
Unverified Commit 5cb90dcb authored by Meng Tang's avatar Meng Tang Committed by Mark Brown
Browse files

ASoC: fsl-asoc-card: Fix jack_event() always return 0


Today, hp_jack_event and mic_jack_event always return 0. However,
snd_soc_dapm_disable_pin and snd_soc_dapm_enable_pin may return a
non-zero value, this will cause the user who calling hp_jack_event
and mic_jack_event don't know whether the operation was really
successfully.

Signed-off-by: default avatarMeng Tang <tangmeng@uniontech.com>
Acked-by: default avatarShengjiu Wang <shengjiu.wang@gmail.com>
Reviewed-by: default avatarChristophe Leroy <christophe.leroy@csgroup.eu>
Link: https://lore.kernel.org/r/20220321065754.18307-1-tangmeng@uniontech.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent a7663c89
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment