From: Takashi Iwai Date: Mon, 14 Nov 2011 09:32:21 +0000 (+0100) Subject: ALSA: hda - Add missing initialization of kctl jack status X-Git-Tag: v3.3-rc1~88^2^2~13^2~5 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=fc5b15f13886afad43fc6c0040af7cb5172a0bd8;p=~emulex%2Finfiniband.git ALSA: hda - Add missing initialization of kctl jack status Otherwise the jack kctls will report invalid values until the jack is re-plugged. Reported-by: David Henningsson Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/hda_jack.c b/sound/pci/hda/hda_jack.c index 3bcf623862c..e014562edc0 100644 --- a/sound/pci/hda/hda_jack.c +++ b/sound/pci/hda/hda_jack.c @@ -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);