ALSA: hda - Update to use the new jack kctls method
Jack snd_kcontrols can now be created during snd_jack_new()
or by later calling snd_jack_add_new_kctls().
This patch creates the jacks during the initialisation stage
for both phantom and non phantom jacks.
Signed-off-by: Jie Yang <yang.jie@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
diff --git a/sound/core/jack.c b/sound/core/jack.c
index b34187b..e8b51f5 100644
--- a/sound/core/jack.c
+++ b/sound/core/jack.c
@@ -135,7 +135,7 @@
struct snd_jack_kctl *jack_kctl;
int err;
- kctl = snd_kctl_jack_new(name, card, card);
+ kctl = snd_kctl_jack_new(name, card);
if (!kctl)
return NULL;