Commit 344b01ae authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda/jack - Fix the assignment of input jack-type

The type field was lost during the transition.  Restored.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent cfc7c9d3
...@@ -345,6 +345,7 @@ int snd_hda_input_jack_add(struct hda_codec *codec, hda_nid_t nid, int type, ...@@ -345,6 +345,7 @@ int snd_hda_input_jack_add(struct hda_codec *codec, hda_nid_t nid, int type,
err = snd_jack_new(codec->bus->card, name, type, &jack->jack); err = snd_jack_new(codec->bus->card, name, type, &jack->jack);
if (err < 0) if (err < 0)
return err; return err;
jack->type = type;
jack->jack->private_data = jack; jack->jack->private_data = jack;
jack->jack->private_free = hda_free_jack_priv; jack->jack->private_free = hda_free_jack_priv;
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment