]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ALSA: virtuoso: fix setting of Xonar DS line-in/mic-in controls
authorClemens Ladisch <clemens@ladisch.de>
Tue, 7 Sep 2010 11:38:49 +0000 (13:38 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 8 Sep 2010 06:26:15 +0000 (08:26 +0200)
commitfe6ce80ae25953d95ebaf9bce27b585218cda25c
tree89857c2174ec46f6c5eff8c4c81f09a554ae3836
parent4c25b93223340deff73381cc47f9244fb379a74d
ALSA: virtuoso: fix setting of Xonar DS line-in/mic-in controls

The Line and Mic inputs cannot be used at the same time, so the driver
has to automatically disable one of them if both are set.  However, it
forgot to notify userspace about this change, so the mixer state would
be inconsistent.  To fix this, check if the other control gets muted,
and send a notification event in this case.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Reported-and-tested-by: Nathan Schagen
Cc: <stable@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/oxygen/xonar_wm87x6.c