]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/pci/oxygen/virtuoso.c
[ALSA] oxygen: add front panel controls
[linux-2.6-omap-h63xx.git] / sound / pci / oxygen / virtuoso.c
index 23bfab448844608d55f48c3c4a656d863158256c..2e1a6996fa864b5b281b841a8da3687e40af8995 100644 (file)
@@ -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: