From: Takashi Iwai Date: Tue, 17 Jul 2012 14:48:27 +0000 (+0200) Subject: ALSA: hda - Fix index number conflicts of phantom jacks X-Git-Tag: v3.6-rc1~117^2~7^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f46c329644b1f7144d336fce037dd9f84ee1995f;p=pandora-kernel.git ALSA: hda - Fix index number conflicts of phantom jacks Since some jack controls may be renamed as phantom jacks, the existing check for index conflicts doesn't work because it simply compares the name with the last used name, assuming that the controls with the same name continue. Thus, it would result in the duplicated controls when two or more phantom jacks with the very same type exist, and the driver gives up with an error. This patch fixes the problem by checking the index number conflicts more intensively (but dumbly). Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed