diff options
Diffstat (limited to 'sound/isa/opti9xx/miro.c')
-rw-r--r-- | sound/isa/opti9xx/miro.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/sound/isa/opti9xx/miro.c b/sound/isa/opti9xx/miro.c index c2ca681ac51b..3a9067db1a84 100644 --- a/sound/isa/opti9xx/miro.c +++ b/sound/isa/opti9xx/miro.c | |||
@@ -29,7 +29,7 @@ | |||
29 | #include <linux/delay.h> | 29 | #include <linux/delay.h> |
30 | #include <linux/ioport.h> | 30 | #include <linux/ioport.h> |
31 | #include <linux/module.h> | 31 | #include <linux/module.h> |
32 | #include <asm/io.h> | 32 | #include <linux/io.h> |
33 | #include <asm/dma.h> | 33 | #include <asm/dma.h> |
34 | #include <sound/core.h> | 34 | #include <sound/core.h> |
35 | #include <sound/wss.h> | 35 | #include <sound/wss.h> |
@@ -1270,8 +1270,6 @@ static int snd_miro_probe(struct snd_card *card) | |||
1270 | int error; | 1270 | int error; |
1271 | struct snd_miro *miro = card->private_data; | 1271 | struct snd_miro *miro = card->private_data; |
1272 | struct snd_wss *codec; | 1272 | struct snd_wss *codec; |
1273 | struct snd_timer *timer; | ||
1274 | struct snd_pcm *pcm; | ||
1275 | struct snd_rawmidi *rmidi; | 1273 | struct snd_rawmidi *rmidi; |
1276 | 1274 | ||
1277 | if (!miro->res_mc_base) { | 1275 | if (!miro->res_mc_base) { |
@@ -1310,7 +1308,7 @@ static int snd_miro_probe(struct snd_card *card) | |||
1310 | if (error < 0) | 1308 | if (error < 0) |
1311 | return error; | 1309 | return error; |
1312 | 1310 | ||
1313 | error = snd_wss_pcm(codec, 0, &pcm); | 1311 | error = snd_wss_pcm(codec, 0); |
1314 | if (error < 0) | 1312 | if (error < 0) |
1315 | return error; | 1313 | return error; |
1316 | 1314 | ||
@@ -1318,11 +1316,11 @@ static int snd_miro_probe(struct snd_card *card) | |||
1318 | if (error < 0) | 1316 | if (error < 0) |
1319 | return error; | 1317 | return error; |
1320 | 1318 | ||
1321 | error = snd_wss_timer(codec, 0, &timer); | 1319 | error = snd_wss_timer(codec, 0); |
1322 | if (error < 0) | 1320 | if (error < 0) |
1323 | return error; | 1321 | return error; |
1324 | 1322 | ||
1325 | miro->pcm = pcm; | 1323 | miro->pcm = codec->pcm; |
1326 | 1324 | ||
1327 | error = snd_miro_mixer(card, miro); | 1325 | error = snd_miro_mixer(card, miro); |
1328 | if (error < 0) | 1326 | if (error < 0) |
@@ -1356,8 +1354,8 @@ static int snd_miro_probe(struct snd_card *card) | |||
1356 | 1354 | ||
1357 | strcpy(card->driver, "miro"); | 1355 | strcpy(card->driver, "miro"); |
1358 | sprintf(card->longname, "%s: OPTi%s, %s at 0x%lx, irq %d, dma %d&%d", | 1356 | sprintf(card->longname, "%s: OPTi%s, %s at 0x%lx, irq %d, dma %d&%d", |
1359 | card->shortname, miro->name, pcm->name, miro->wss_base + 4, | 1357 | card->shortname, miro->name, codec->pcm->name, |
1360 | miro->irq, miro->dma1, miro->dma2); | 1358 | miro->wss_base + 4, miro->irq, miro->dma1, miro->dma2); |
1361 | 1359 | ||
1362 | if (mpu_port <= 0 || mpu_port == SNDRV_AUTO_PORT) | 1360 | if (mpu_port <= 0 || mpu_port == SNDRV_AUTO_PORT) |
1363 | rmidi = NULL; | 1361 | rmidi = NULL; |