]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ALSA: hda - Fix ADC input-amp handling for Cx20549 codec
authorTakashi Iwai <tiwai@suse.de>
Fri, 14 Oct 2011 13:26:20 +0000 (15:26 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:36:18 +0000 (09:36 -0800)
commit73e2fc5d34007574d25d00e7088bbd42e988bb3e
treea56b9a99c089899c2e685547bba517733102cc71
parent38af8ddb4b8877c0b90f8413a20517ba245c4d0b
ALSA: hda - Fix ADC input-amp handling for Cx20549 codec

commit 6b45214277bec2193ad3ccb8d7aa6100b5a0f1a9 upstream.

It seems that Conexant CX20549 chip handle only a single input-amp even
though the audio-input widget has multiple sources.  This has been never
clear, and I implemented in the current way based on the debug information
I got at the early time -- the device reacts individual input-amp values
for different sources.  This is true for another Conexant codec, but it's
not applied to CX20549 actually.

This patch changes the auto-parser code to handle a single input-amp
per audio-in widget for CX20549.  After applying this, you'll see only a
single "Capture" volume control instead of separate "Mic" or "Line"
captures when the device is set up to use a single ADC.

We haven't tested 20551 and 20561 codecs yet.  If these show the similar
behavior like 20549, they need to set spec->single_adc_amp=1, too.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/pci/hda/patch_conexant.c