From: Takashi Iwai Date: Thu, 20 Dec 2012 09:45:55 +0000 (+0100) Subject: ALSA: hda - Allow one chance for zero NID in connection list X-Git-Tag: v3.9-rc1~129^2~70^2~138 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fdaecdb0d8fd8131d2adb9ca0ae2b77707b36ca;p=pandora-kernel.git ALSA: hda - Allow one chance for zero NID in connection list The commit [2e9bf24: ALSA: hda_codec: Check for invalid zero connections] trims the whole connection list when an invalid value is reported by the hardware. But some codecs (at least AD1986A) may give a zero NID in the middle of the connection list, so dropping the whole list isn't good for such cases. In this patch, as a workaround, allow a single zero NID in the read connection list. If it hits zero twice, it's handled as an error, so that we can avoid "too many connections" errors. Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed