]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Check codec errors in snd_hda_get_connections()
authorTakashi Iwai <tiwai@suse.de>
Fri, 10 Jul 2009 10:52:27 +0000 (12:52 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 10 Jul 2009 10:56:41 +0000 (12:56 +0200)
commit41f6fd88f8c122dd286cbcfb4de179f2658d80d8
tree95d1db12b1668da922684d45acd156fe308ca35f
parent4c2ff3ab36ea3a57000a83a731ebcf571a8a65de
ALSA: hda - Check codec errors in snd_hda_get_connections()

The codec read errors in snd_hda_get_connections() are ignored so far,
and it causes a problem like the bug in the commit
    b90a66ed76317edb7ce6a3d221611ff45bf6f6f2
    ALSA: hda_intel: more strict alc880_parse_auto_config dig_nid checking

Better to check errors in the function and returns a proper error code
rather than passing bogus NID values.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c