]> 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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Sep 2010 20:36:26 +0000 (13:36 -0700)
commit0aa2a836bdf2314b452a7c08a614d5b55029a93c
tree7c6934318dbaca3dc648805b6c189b29c912eda4
parent62f520f10a2b563d3d6239925af57c8f865b48b3
ALSA: virtuoso: fix setting of Xonar DS line-in/mic-in controls

commit fe6ce80ae25953d95ebaf9bce27b585218cda25c upstream.

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
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/pci/oxygen/xonar_wm87x6.c