ALSA: hda - Check all inputs for is_active_nid_for_any()
authorTakashi Iwai <tiwai@suse.de>
Mon, 24 Aug 2015 08:45:27 +0000 (10:45 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 25 Aug 2015 05:59:01 +0000 (07:59 +0200)
commit9d2b48f7304aafaefbf0794a556ab4e307929d24
treebffaab88a4322ed233d1cde0b56152bf995b8522
parentc7e69ae6b4ff49edf50180c0a32f3dd9d7967e31
ALSA: hda - Check all inputs for is_active_nid_for_any()

The is_active_nid_for_any() function in the generic parser is supposed
to check all connections from/to the given widget, but the current
code checks only the first input connection (index = 0).

This patch corrects the code to check all inputs by passing -1 to
index argument.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=102521
Cc: <stable@vger.kernel.org> [v4.1+]
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_generic.c