Skip to content

Commit

Permalink
ALSA: hda - Add missing initialization of kctl jack status
Browse files Browse the repository at this point in the history
Otherwise the jack kctls will report invalid values until the jack
is re-plugged.

Reported-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Nov 16, 2011
1 parent 344b01a commit fc5b15f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/pci/hda/hda_jack.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ int snd_hda_jack_add_kctl(struct hda_codec *codec, hda_nid_t nid,
if (snd_hda_ctl_add(codec, nid, kctl) < 0)
return -ENOMEM;
jack->kctl = kctl;
snd_kctl_jack_report(codec->bus->card, kctl,
snd_hda_jack_detect(codec, nid));
return 0;
}
EXPORT_SYMBOL_HDA(snd_hda_jack_add_kctl);
Expand Down

0 comments on commit fc5b15f

Please sign in to comment.