From: Jaroslav Kysela Date: Wed, 22 Jul 2009 13:31:03 +0000 (+0200) Subject: ALSA: hda_generic: use AC_WCAP_CONN_LIST check for widget connections X-Git-Tag: v3.0~6501^2~30^2~99 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=254da007f93f79ee773788cbb38f24dfab9590f5;p=platform%2Fkernel%2Flinux-amlogic.git 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 Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/hda_generic.c b/sound/pci/hda/hda_generic.c index da3e1ed..bccb62a 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 node->nid = nid; node->wid_caps = get_wcaps(codec, nid); node->type = (node->wid_caps & AC_WCAP_TYPE) >> AC_WCAP_TYPE_SHIFT; - if (node->type <= AC_WID_BEEP || node->type == AC_WID_VENDOR) { + if (node->wid_caps & AC_WCAP_CONN_LIST) { nconns = snd_hda_get_connections(codec, nid, conn_list, HDA_MAX_CONNECTIONS); if (nconns < 0) {