From: Takashi Iwai Date: Wed, 9 Jan 2013 08:06:18 +0000 (+0100) Subject: ALSA: hda - Fix inconsistent input_paths after ADC reduction X-Git-Tag: v3.9-rc1~129^2~70^2~77 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a65bcdc577a338712c2eaefc194909de79d4982;p=pandora-kernel.git ALSA: hda - Fix inconsistent input_paths after ADC reduction In the current parser code, the input_paths[] may become inconsistent when some of detected ADCs are dropped due to incomplete inputs, since the driver rearranges only adc_nids[] but doesn't touch input_paths[]. This patch fixes the issue, and also it optimizes the reachability checks by simply referring to the parsed input_paths[] instead of calling is_reachable() again for each connection. Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed