From: Takashi Iwai Date: Wed, 7 Nov 2012 09:32:47 +0000 (+0100) Subject: ALSA: hda - Fix empty DAC filling in patch_via.c X-Git-Tag: v3.7-rc5~10^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b3761954dac2d1393beef8210eb8cee81d16b8d;p=pandora-kernel.git ALSA: hda - Fix empty DAC filling in patch_via.c In via_auto_fill_adc_nids(), the parser tries to fill dac_nids[] at the point of the current line-out (i). When no valid path is found for this output, this results in dac = 0, thus it creates a hole in dac_nids[]. This confuses is_empty_dac() and trims the detected DAC in later reference. This patch fixes the bug by appending DAC properly to dac_nids[] in via_auto_fill_adc_nids(). Reported-by: Massimo Del Fedele Cc: Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed