ALSA: hda - Fix invalid capture mixers with some ALC268 models
authorTakashi Iwai <tiwai@suse.de>
Tue, 18 Aug 2009 22:18:10 +0000 (00:18 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 18 Aug 2009 22:22:17 +0000 (00:22 +0200)
commitfdbc66266c21976027938642f60e0f047149a61a
tree8ab89f3709b369f437a4728d0b86887e47874ccf
parent7570ef18349d4f3a9336397952b05ec3e95ec4b7
ALSA: hda - Fix invalid capture mixers with some ALC268 models

The auto-mic clean-up patches caused regressions on some ALC268 models
that have no proper input_mux but with "Input Source" mixer elements.
Such a combination results in Oops when accessed.

[A reason why set_capture_mixer() isn't used in patch_alc268() is that
ALC268 codec have HDA_OUTPUT direction for capture volumes unlike other
codecs.  Thus it needs own definitions of capture elements.]

This patch fixes the issues:
- Add a capture mixer definition without input-source
- Use the new capture mixer appropriately

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c