]> git.baikalelectronics.ru Git - kernel.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)
committerTakashi Iwai <tiwai@suse.de>
Tue, 25 Aug 2015 05:59:01 +0000 (07:59 +0200)
commit5891b122f79a81f6d79c25d08d119e6c9b30189b
treebffaab88a4322ed233d1cde0b56152bf995b8522
parent4a611959d7903206300f4b87a4b5e0e958fae4ad
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