]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 16:07:47 +0000 (09:07 -0700)
commit93bebe57621df3753f8b533dbfbd055438d52534
treef0e0b385d24ef563d396f48570600831ff505441
parentf27db157e2bfc330e7e6599b9427c7e9821d646f
ALSA: hda - Check all inputs for is_active_nid_for_any()

commit 9d2b48f7304aafaefbf0794a556ab4e307929d24 upstream.

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
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/hda_generic.c