|
@@ -820,10 +820,6 @@ static int snd_opti9xx_probe(struct snd_card *card)
|
|
|
int xdma2;
|
|
|
struct snd_opti9xx *chip = card->private_data;
|
|
|
struct snd_wss *codec;
|
|
|
-#ifdef CS4231
|
|
|
- struct snd_timer *timer;
|
|
|
-#endif
|
|
|
- struct snd_pcm *pcm;
|
|
|
struct snd_rawmidi *rmidi;
|
|
|
struct snd_hwdep *synth;
|
|
|
|
|
@@ -855,7 +851,7 @@ static int snd_opti9xx_probe(struct snd_card *card)
|
|
|
if (error < 0)
|
|
|
return error;
|
|
|
chip->codec = codec;
|
|
|
- error = snd_wss_pcm(codec, 0, &pcm);
|
|
|
+ error = snd_wss_pcm(codec, 0);
|
|
|
if (error < 0)
|
|
|
return error;
|
|
|
error = snd_wss_mixer(codec);
|
|
@@ -867,7 +863,7 @@ static int snd_opti9xx_probe(struct snd_card *card)
|
|
|
return error;
|
|
|
#endif
|
|
|
#ifdef CS4231
|
|
|
- error = snd_wss_timer(codec, 0, &timer);
|
|
|
+ error = snd_wss_timer(codec, 0);
|
|
|
if (error < 0)
|
|
|
return error;
|
|
|
#endif
|
|
@@ -884,11 +880,12 @@ static int snd_opti9xx_probe(struct snd_card *card)
|
|
|
sprintf(card->shortname, "OPTi %s", card->driver);
|
|
|
#if defined(CS4231) || defined(OPTi93X)
|
|
|
sprintf(card->longname, "%s, %s at 0x%lx, irq %d, dma %d&%d",
|
|
|
- card->shortname, pcm->name,
|
|
|
+ card->shortname, codec->pcm->name,
|
|
|
chip->wss_base + 4, irq, dma1, xdma2);
|
|
|
#else
|
|
|
sprintf(card->longname, "%s, %s at 0x%lx, irq %d, dma %d",
|
|
|
- card->shortname, pcm->name, chip->wss_base + 4, irq, dma1);
|
|
|
+ card->shortname, codec->pcm->name, chip->wss_base + 4, irq,
|
|
|
+ dma1);
|
|
|
#endif /* CS4231 || OPTi93X */
|
|
|
|
|
|
if (mpu_port <= 0 || mpu_port == SNDRV_AUTO_PORT)
|