提交 df8c6618 编写于 作者: L Lars-Peter Clausen 提交者: Mark Brown

ASoC: ams-deltea: Register jacks at the card level

The jacks are card level elements so use snd_soc_card_jack_new() instead of
snd_soc_jack_new() to register them.
Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 af13cbc1
...@@ -479,8 +479,8 @@ static int ams_delta_cx20442_init(struct snd_soc_pcm_runtime *rtd) ...@@ -479,8 +479,8 @@ static int ams_delta_cx20442_init(struct snd_soc_pcm_runtime *rtd)
/* Add hook switch - can be used to control the codec from userspace /* Add hook switch - can be used to control the codec from userspace
* even if line discipline fails */ * even if line discipline fails */
ret = snd_soc_jack_new(rtd->codec, "hook_switch", ret = snd_soc_card_jack_new(card, "hook_switch", SND_JACK_HEADSET,
SND_JACK_HEADSET, &ams_delta_hook_switch); &ams_delta_hook_switch, NULL, 0);
if (ret) if (ret)
dev_warn(card->dev, dev_warn(card->dev,
"Failed to allocate resources for hook switch, " "Failed to allocate resources for hook switch, "
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册