Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182648
b: refs/heads/master
c: b82855a
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Dec 27, 2009
1 parent b21ecc6 commit de596bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a4e09aa3cf592d9f084ff4ceb216be40c4c265dc
refs/heads/master: b82855a0d76ebda1cc14c00040560d77bfa042ce
3 changes: 3 additions & 0 deletions trunk/sound/pci/hda/hda_codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,9 @@ int snd_hda_add_pincfg(struct hda_codec *codec, struct snd_array *list,
struct hda_pincfg *pin;
unsigned int oldcfg;

if (get_wcaps_type(get_wcaps(codec, nid)) != AC_WID_PIN)
return -EINVAL;

oldcfg = snd_hda_codec_get_pincfg(codec, nid);
pin = look_up_pincfg(codec, list, nid);
if (!pin) {
Expand Down

0 comments on commit de596bc

Please sign in to comment.