From: Takashi Iwai Date: Tue, 10 Jan 2012 11:41:22 +0000 (+0100) Subject: ALSA: hda - Return the error from get_wcaps_type() for invalid NIDs X-Git-Tag: v3.3-rc1~88^2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a90274de3548ebb2aabfbf488cea8e275a73dc6;p=pandora-kernel.git ALSA: hda - Return the error from get_wcaps_type() for invalid NIDs When an invalid NID is given, get_wcaps() returns zero as the error, but get_wcaps_type() takes it as the normal value and returns a bogus AC_WID_AUD_OUT value. This confuses the parser. With this patch, get_wcaps_type() returns -1 when value 0 is given, i.e. an invalid NID is passed to get_wcaps(). Bugzilla: https://bugzilla.novell.com/show_bug.cgi?id=740118 Cc: Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed