]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Allow one chance for zero NID in connection list
authorTakashi Iwai <tiwai@suse.de>
Thu, 20 Dec 2012 09:45:55 +0000 (10:45 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 12 Jan 2013 07:31:06 +0000 (08:31 +0100)
commit47307ddcdc49db3d9f76dd9feed8cd2052d24923
tree8d6e9dbe0fd0f42539b51481e15dbdd0e3f0cb3b
parentebff57bf85b86b995a42eb83c26c3e4fbc93739c
ALSA: hda - Allow one chance for zero NID in connection list

The commit [3ac036c: 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 <tiwai@suse.de>
sound/pci/hda/hda_codec.c