projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
344b01a
)
ALSA: hda - Add missing initialization of kctl jack status
author
Takashi Iwai
<tiwai@suse.de>
Mon, 14 Nov 2011 09:32:21 +0000
(10:32 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Wed, 16 Nov 2011 10:14:04 +0000
(11:14 +0100)
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>
sound/pci/hda/hda_jack.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/hda/hda_jack.c
b/sound/pci/hda/hda_jack.c
index 3bcf623862ce96274a8a7e0e9107a59380d3bad9..e014562edc09a58b1b03d2857e1293961b298053 100644
(file)
--- 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);