]> www.infradead.org Git - users/jedix/linux-maple.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)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 19:17:59 +0000 (11:17 -0800)
commitf09fd356f0d02b15463850585b6dc87306a58b1b
treef51c2731389cdcef3e46e3e407cacfd69608fc30
parent5fad84ced70479aac5667e210ad91d4de2f3ed6c
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