Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 353049
b: refs/heads/master
c: 5fdaecd
h: refs/heads/master
i:
  353047: 12a0f0b
v: v3
  • Loading branch information
Takashi Iwai committed Jan 12, 2013
1 parent 92d6bc9 commit d4c7a6a
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 624d914d091a5eebb4d648bd6b4ae6481171ae5c
refs/heads/master: 5fdaecdb0d8fd8131d2adb9ca0ae2b77707b36ca
3 changes: 2 additions & 1 deletion trunk/sound/pci/hda/hda_codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ int snd_hda_get_raw_connections(struct hda_codec *codec, hda_nid_t nid,
unsigned int shift, num_elems, mask;
unsigned int wcaps;
hda_nid_t prev_nid;
int null_count = 0;

if (snd_BUG_ON(!conn_list || max_conns <= 0))
return -EINVAL;
Expand Down Expand Up @@ -474,7 +475,7 @@ int snd_hda_get_raw_connections(struct hda_codec *codec, hda_nid_t nid,
}
range_val = !!(parm & (1 << (shift-1))); /* ranges */
val = parm & mask;
if (val == 0) {
if (val == 0 && null_count++) { /* no second chance */
snd_printk(KERN_WARNING "hda_codec: "
"invalid CONNECT_LIST verb %x[%i]:%x\n",
nid, i, parm);
Expand Down

0 comments on commit d4c7a6a

Please sign in to comment.