[ALSA] hda-codec - Fix STAC922x capture boost level
authorTakashi Iwai <tiwai@suse.de>
Tue, 29 May 2007 17:01:37 +0000 (19:01 +0200)
committerJaroslav Kysela <perex@suse.cz>
Fri, 20 Jul 2007 09:11:22 +0000 (11:11 +0200)
commit807a463603a2e014f36e88317aa5e07c15887fcd
tree46cf44ff9505da1e2b8d9c5accf2077e5500f6d0
parent5d5d3bc3eddf2ad97b2cb090b92580e7fed6cee1
[ALSA] hda-codec - Fix STAC922x capture boost level

STAC922x provides the capture boost level up to 4, but actually it
works only up to 2.  Since the range of the mixer is automatically
defined from amp-capability bits, we need to override the value
beforehand.  snd_hda_override_amp_caps() is introduced for this
purpose.
The function patch_stac922x() calls this for NID 0x12 (Mux Capture
Volume).  This should fix another recording problem on Intel Macs.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/pci/hda/patch_sigmatel.c