[ALSA] emu10k1 - Don't create emu1010 controls for non-emu boards
authorTakashi Iwai <[email protected]>
Fri, 21 Dec 2007 15:20:12 +0000 (16:20 +0100)
committerMercurial server <[email protected]>
Thu, 31 Jan 2008 16:30:24 +0000 (17:30 +0100)
The last change for emu1616 introduced a bug that the driver creates
emu1010-related controls even on non-emu boards.  Fixed now.

Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: Jaroslav Kysela <[email protected]>
sound/pci/emu10k1/emumixer.c

index 9b5883b7957838b8a99375ff1ce432cb84abccb6..7ebf035b6b08ead423ccf743cb4b66625fc0a809 100644 (file)
@@ -2026,7 +2026,7 @@ int __devinit snd_emu10k1_mixer(struct snd_emu10k1 *emu,
                if (err < 0)
                        return err;
 
-       } else {
+       } else if (emu->card_capabilities->emu_model) {
                /* all other e-mu cards for now */
                int i;