]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: simple-card: move hp and mic detection to soc_card probe
authorKatsuhiro Suzuki <suzuki.katsuhiro@socionext.com>
Mon, 11 Jun 2018 08:32:13 +0000 (17:32 +0900)
committerMark Brown <broonie@kernel.org>
Mon, 18 Jun 2018 11:54:38 +0000 (12:54 +0100)
commit4b05ce217ad3170dddeed3624777f501b0664299
treedd685bc523e1020eabad7e11ee9e409796d5abcd
parente9f72fd94fd0916f2f09320b04c05c5cec1fcfe4
ASoC: simple-card: move hp and mic detection to soc_card probe

This patch moves headphone and microphone detection to probe() of
snd_soc_card from init() of snd_soc_dai_link. This is because init()
is called (and an input device /dev/input/eventX is created too)
twice or above if simple card has two or more DAI links.

Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/simple-card.c