Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157807
b: refs/heads/master
c: 1ba7a7c
h: refs/heads/master
i:
  157805: d7d10c1
  157803: 9bba712
  157799: 0a32c1b
  157791: fd85f1f
v: v3
  • Loading branch information
Takashi Iwai committed Jul 27, 2009
1 parent 10a288b commit 170ce2c
Show file tree
Hide file tree
Showing 2 changed files with 5 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: a22d543a95e82e5ad0ee1a44aad54fd6b6bf52a8
refs/heads/master: 1ba7a7c650bd8ee567e25d9b68e9081d131c70f6
5 changes: 4 additions & 1 deletion trunk/sound/pci/hda/hda_codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,12 +301,15 @@ int snd_hda_get_connections(struct hda_codec *codec, hda_nid_t nid,
unsigned int parm;
int i, conn_len, conns;
unsigned int shift, num_elems, mask;
unsigned int wcaps;
hda_nid_t prev_nid;

if (snd_BUG_ON(!conn_list || max_conns <= 0))
return -EINVAL;

if ((get_wcaps(codec, nid) & AC_WCAP_CONN_LIST) == 0) {
wcaps = get_wcaps(codec, nid);
if (!(wcaps & AC_WCAP_CONN_LIST) &&
get_wcaps_type(wcaps) != AC_WID_VOL_KNB) {
snd_printk(KERN_WARNING "hda_codec: "
"connection list not available for 0x%x\n", nid);
return -EINVAL;
Expand Down

0 comments on commit 170ce2c

Please sign in to comment.