]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: fsl-asoc-card: Fix jack_event() always return 0
authorMeng Tang <tangmeng@uniontech.com>
Mon, 21 Mar 2022 06:57:54 +0000 (14:57 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 21 Mar 2022 12:04:37 +0000 (12:04 +0000)
commit750f6cb8e12a1b7c61eebf7f05972b2bd3f20451
treee6550198e8767de71ca6798981fb5c082df6e807
parentba78ed8f36ae2660e02b64835c568cbe538e3284
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: Meng Tang <tangmeng@uniontech.com>
Acked-by: Shengjiu Wang <shengjiu.wang@gmail.com>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Link: https://lore.kernel.org/r/20220321065754.18307-1-tangmeng@uniontech.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl-asoc-card.c