]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Fix missing Mic Boost controls for VIA codecs
authorTakashi Iwai <tiwai@suse.de>
Wed, 19 Jun 2013 05:54:09 +0000 (07:54 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 19 Jun 2013 05:54:09 +0000 (07:54 +0200)
commit07f9518d65550537d612e73384539fede5a4b741
treed141f33512f153071a2a6881022e82f6270fd14f
parentb4b20c55839fa83712477a1ab2461c3e0c6d9e3c
ALSA: hda - Fix missing Mic Boost controls for VIA codecs

Some VIA codecs like VT1708S have Mic boost amps in the mic pins but
they aren't exposed in the capability bits.  In the past driver code,
we override the pin caps and create mic boost controls forcibly.
While transition to the generic parser, we lost the mic boost controls
although the pin caps are still overridden, because the generic parser
code checks the widget caps, too.

So this patch adds a new helper function to allow the override of the
given widget capability bits, and makes VIA codecs driver to add the
missing input-amp capability bit.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=59861
Cc: <stable@vger.kernel.org> [v3.9+]
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_local.h
sound/pci/hda/patch_via.c