ALSA: virtuoso: fix front panel routing for D1/DX/ST(X)
authorClemens Ladisch <clemens@ladisch.de>
Thu, 2 Dec 2010 10:39:34 +0000 (11:39 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 6 Dec 2010 13:48:08 +0000 (14:48 +0100)
commite96f38f732d24515792296b3738842934c985539
tree627b4c03b4f1b12e903a265f97ba98767af0c0aa
parent2509ec623d44320419d44d4060dbedf91b8d192d
ALSA: virtuoso: fix front panel routing for D1/DX/ST(X)

The "Front Panel" switch on the Xonar D1/DX actually switches only the
output direction, so mark it appropriately.

The front panel microphone is controlled by the FMIC2MIC bit of the
CM9780.  It was unconditionally enabled on the D1/DX and never set on
the ST(X); add a control for it.  Selecting the front panel microphone
as source does not actually disable the microphone jack, but this is
bug-compatible with the Windows driver, and users rely on it.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/oxygen/oxygen.h
sound/pci/oxygen/oxygen_mixer.c
sound/pci/oxygen/xonar_cs43xx.c
sound/pci/oxygen/xonar_pcm179x.c