]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/realtek - Fix missing inits of item indices for auto-mic
authorTakashi Iwai <tiwai@suse.de>
Wed, 23 Nov 2011 06:38:59 +0000 (07:38 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 23 Nov 2011 06:45:21 +0000 (07:45 +0100)
commitbed872f7fc954c7e5b6ee399879c6cd7355943db
treef1821de346e3d52809005de4cfacff00448c7bf6
parent9148199b28cc3eb1a9b3123b67fc9b755ed66038
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 <dion@inhex.net>
Cc: <stable@kernel.org> [v3.1]
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c