]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/isa/opti9xx/opti92x-ad1848.c
ALSA: wss_lib: use wss pcm code instead of ad1848 one
[linux-2.6-omap-h63xx.git] / sound / isa / opti9xx / opti92x-ad1848.c
index 4f172a219244b77606fe2924e96342463cdac0b2..561d4b3ed09844d6131c19b8df4fdbce1b375e1d 100644 (file)
@@ -754,18 +754,15 @@ static int __devinit snd_opti9xx_probe(struct snd_card *card)
 #ifdef OPTi93X
        chip->codec = codec;
 #endif
-       error = snd_wss_pcm(codec, 0, &pcm);
-       if (error < 0)
-               return error;
 #else
        error = snd_ad1848_create(card, chip->wss_base + 4, chip->irq,
                                  chip->dma1, WSS_HW_DETECT, &codec);
        if (error < 0)
                return error;
-       error = snd_ad1848_pcm(codec, 0, &pcm);
+#endif
+       error = snd_wss_pcm(codec, 0, &pcm);
        if (error < 0)
                return error;
-#endif
        error = snd_wss_mixer(codec);
        if (error < 0)
                return error;