aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2009-07-22 09:31:03 -0400
committerTakashi Iwai <tiwai@suse.de>2009-07-22 09:39:56 -0400
commit254da007f93f79ee773788cbb38f24dfab9590f5 (patch)
treedac92fc1e51f261d3dea04f1b939dfd778e7e8f5 /sound
parent052960483833f81603450e2a3cfa7a5ee98eedd4 (diff)
ALSA: hda_generic: use AC_WCAP_CONN_LIST check for widget connections
Previous patch used widget type, but the presence flag of the connection list is in the widget capabilities. Signed-off-by: Jaroslav Kysela <perex@perex.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/hda_generic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_generic.c b/sound/pci/hda/hda_generic.c
index da3e1ed29b3c..bccb62a643ca 100644
--- a/sound/pci/hda/hda_generic.c
+++ b/sound/pci/hda/hda_generic.c
@@ -123,7 +123,7 @@ static int add_new_node(struct hda_codec *codec, struct hda_gspec *spec, hda_nid
123 node->nid = nid; 123 node->nid = nid;
124 node->wid_caps = get_wcaps(codec, nid); 124 node->wid_caps = get_wcaps(codec, nid);
125 node->type = (node->wid_caps & AC_WCAP_TYPE) >> AC_WCAP_TYPE_SHIFT; 125 node->type = (node->wid_caps & AC_WCAP_TYPE) >> AC_WCAP_TYPE_SHIFT;
126 if (node->type <= AC_WID_BEEP || node->type == AC_WID_VENDOR) { 126 if (node->wid_caps & AC_WCAP_CONN_LIST) {
127 nconns = snd_hda_get_connections(codec, nid, conn_list, 127 nconns = snd_hda_get_connections(codec, nid, conn_list,
128 HDA_MAX_CONNECTIONS); 128 HDA_MAX_CONNECTIONS);
129 if (nconns < 0) { 129 if (nconns < 0) {