Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284209
b: refs/heads/master
c: cfc7c9d
h: refs/heads/master
i:
  284207: 616f7ba
v: v3
  • Loading branch information
Takashi Iwai committed Nov 16, 2011
1 parent c75df91 commit 5d96a2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d1cb620081f51c78cf95224efb593a886875078f
refs/heads/master: cfc7c9d307b6a3557e333f960218d344d3a70ce7
4 changes: 3 additions & 1 deletion trunk/sound/pci/hda/hda_jack.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ void snd_hda_jack_report_sync(struct hda_codec *codec)
for (i = 0; i < codec->jacktbl.used; i++, jack++)
if (jack->nid) {
jack_detect_update(codec, jack);
if (!jack->kctl)
continue;
state = get_jack_plug_state(jack->pin_sense);
snd_kctl_jack_report(codec->bus->card, jack->kctl, state);
}
Expand Down Expand Up @@ -356,7 +358,7 @@ void snd_hda_input_jack_report(struct hda_codec *codec, hda_nid_t nid)
unsigned int present;
int type;

if (!jack)
if (!jack || !jack->jack)
return;

present = snd_hda_jack_detect(codec, nid);
Expand Down

0 comments on commit 5d96a2c

Please sign in to comment.