From: Takashi Iwai Date: Wed, 23 Nov 2011 06:38:59 +0000 (+0100) Subject: ALSA: hda/realtek - Fix missing inits of item indices for auto-mic X-Git-Tag: v3.2-rc4~18^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6759dc323826c2c806c998cd93945c5476688dd2;p=pandora-kernel.git ALSA: hda/realtek - Fix missing inits of item indices for auto-mic When the imux entries are rebuilt in alc_rebuild_imux_for_auto_mic(), the initialization of index field is missing. It may work without it casually when the original imux was created by the auto-parser, but it's definitely broken in the case of static configs where no imux was parsed beforehand. Because of this, the auto-mic switching doesn't work properly on some model options. This patch adds the missing initialization of index field. Reported-by: Dmitry Nezhevenko Cc: [v3.1] Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed