summaryrefslogtreecommitdiff
path: root/sound/pci/oxygen/virtuoso.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2008-01-28 08:35:20 +0100
committerJaroslav Kysela <perex@perex.cz>2008-01-31 17:30:17 +0100
commita3601560496d7b46d2d1187169824d11570ff63a (patch)
treeabcb52cdea5f118815994895b2375ad000fc4d24 /sound/pci/oxygen/virtuoso.c
parent1e821dd2763c97df1a0a451e553d218cb8886cd7 (diff)
[ALSA] oxygen: add front panel controls
Add mixer controls for the front panel AC97 codec. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/pci/oxygen/virtuoso.c')
-rw-r--r--sound/pci/oxygen/virtuoso.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/pci/oxygen/virtuoso.c b/sound/pci/oxygen/virtuoso.c
index 23bfab448844..2e1a6996fa86 100644
--- a/sound/pci/oxygen/virtuoso.c
+++ b/sound/pci/oxygen/virtuoso.c
@@ -247,9 +247,11 @@ static void mute_ac97_ctl(struct oxygen *chip, unsigned int control)
}
}
-static void xonar_ac97_switch_hook(struct oxygen *chip,
+static void xonar_ac97_switch_hook(struct oxygen *chip, unsigned int codec,
unsigned int reg, int mute)
{
+ if (codec != 0)
+ return;
/* line-in is exclusive */
switch (reg) {
case AC97_LINE: