]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Implement dynamic-ADC switching for VIA codecs
authorTakashi Iwai <tiwai@suse.de>
Wed, 22 Jun 2011 13:23:25 +0000 (15:23 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 22 Jun 2011 13:23:25 +0000 (15:23 +0200)
commit85fb838e4038411b40c5a8868966d1b94a404893
treed18d1d9c3bc36b964145d69715584c62f784602e
parent708d2545dec3a3759a087225097080fd70e00bc4
ALSA: hda - Implement dynamic-ADC switching for VIA codecs

Some VIA codecs like VT1702 provide the input-route only to specific
ADCs such as digital-mic inputs.  These routes aren't covered by the
normal primary ADC, and for now, user had to open the capture stream
assigned to that special ADC manually for using such inputs.

This patch implements a way to switch the current ADC dynamically per
the input-source selection in such a case.  When this workaround is
activated, the driver provides only one capture stream and one input-
source control but with the full possible inputs.  The driver switches
the ADC to be used (or being used) according to the input-source on the
fly.

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