]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Fix no NID error with VIA codecs
authorTakashi Iwai <tiwai@suse.de>
Fri, 17 Jun 2011 12:23:46 +0000 (14:23 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 17 Jun 2011 12:23:46 +0000 (14:23 +0200)
commit3f1a264af2a06790c3b3fbc104a2f937c2e144ac
treeeb882444d86ede68e1bba554e31ce68d58616b81
parentb82ed7c1ddd6036d4f6e9193e3f2ec797b221faa
ALSA: hda - Fix no NID error with VIA codecs

The via driver spews warnigs like
hda-codec: no NID for mapping control Independent HP:0:0
with some codecs because snd_hda_add_nid() is called with nid=0.
This patch fixes it by skipping the call when no corresponding widget
is found.

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