diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-11-14 04:32:21 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-11-16 05:14:04 -0500 |
commit | fc5b15f13886afad43fc6c0040af7cb5172a0bd8 (patch) | |
tree | d203fbd7af6c9de3ed2e3551ea503ad5a62df5c2 /sound | |
parent | 344b01aecdc1e1173b5aa86208ef583489de7710 (diff) |
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 <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/hda_jack.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_jack.c b/sound/pci/hda/hda_jack.c index 3bcf623862ce..e014562edc09 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, | |||
225 | if (snd_hda_ctl_add(codec, nid, kctl) < 0) | 225 | if (snd_hda_ctl_add(codec, nid, kctl) < 0) |
226 | return -ENOMEM; | 226 | return -ENOMEM; |
227 | jack->kctl = kctl; | 227 | jack->kctl = kctl; |
228 | snd_kctl_jack_report(codec->bus->card, kctl, | ||
229 | snd_hda_jack_detect(codec, nid)); | ||
228 | return 0; | 230 | return 0; |
229 | } | 231 | } |
230 | EXPORT_SYMBOL_HDA(snd_hda_jack_add_kctl); | 232 | EXPORT_SYMBOL_HDA(snd_hda_jack_add_kctl); |