diff options
Diffstat (limited to 'sound/isa/cs423x/cs4236.c')
-rw-r--r-- | sound/isa/cs423x/cs4236.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sound/isa/cs423x/cs4236.c b/sound/isa/cs423x/cs4236.c index 750f51c904fc..9d7582c90a95 100644 --- a/sound/isa/cs423x/cs4236.c +++ b/sound/isa/cs423x/cs4236.c | |||
@@ -382,7 +382,6 @@ static int snd_cs423x_card_new(struct device *pdev, int dev, | |||
382 | static int snd_cs423x_probe(struct snd_card *card, int dev) | 382 | static int snd_cs423x_probe(struct snd_card *card, int dev) |
383 | { | 383 | { |
384 | struct snd_card_cs4236 *acard; | 384 | struct snd_card_cs4236 *acard; |
385 | struct snd_pcm *pcm; | ||
386 | struct snd_wss *chip; | 385 | struct snd_wss *chip; |
387 | struct snd_opl3 *opl3; | 386 | struct snd_opl3 *opl3; |
388 | int err; | 387 | int err; |
@@ -404,7 +403,7 @@ static int snd_cs423x_probe(struct snd_card *card, int dev) | |||
404 | acard->chip = chip; | 403 | acard->chip = chip; |
405 | if (chip->hardware & WSS_HW_CS4236B_MASK) { | 404 | if (chip->hardware & WSS_HW_CS4236B_MASK) { |
406 | 405 | ||
407 | err = snd_cs4236_pcm(chip, 0, &pcm); | 406 | err = snd_cs4236_pcm(chip, 0); |
408 | if (err < 0) | 407 | if (err < 0) |
409 | return err; | 408 | return err; |
410 | 409 | ||
@@ -412,7 +411,7 @@ static int snd_cs423x_probe(struct snd_card *card, int dev) | |||
412 | if (err < 0) | 411 | if (err < 0) |
413 | return err; | 412 | return err; |
414 | } else { | 413 | } else { |
415 | err = snd_wss_pcm(chip, 0, &pcm); | 414 | err = snd_wss_pcm(chip, 0); |
416 | if (err < 0) | 415 | if (err < 0) |
417 | return err; | 416 | return err; |
418 | 417 | ||
@@ -420,17 +419,17 @@ static int snd_cs423x_probe(struct snd_card *card, int dev) | |||
420 | if (err < 0) | 419 | if (err < 0) |
421 | return err; | 420 | return err; |
422 | } | 421 | } |
423 | strcpy(card->driver, pcm->name); | 422 | strcpy(card->driver, chip->pcm->name); |
424 | strcpy(card->shortname, pcm->name); | 423 | strcpy(card->shortname, chip->pcm->name); |
425 | sprintf(card->longname, "%s at 0x%lx, irq %i, dma %i", | 424 | sprintf(card->longname, "%s at 0x%lx, irq %i, dma %i", |
426 | pcm->name, | 425 | chip->pcm->name, |
427 | chip->port, | 426 | chip->port, |
428 | irq[dev], | 427 | irq[dev], |
429 | dma1[dev]); | 428 | dma1[dev]); |
430 | if (dma2[dev] >= 0) | 429 | if (dma2[dev] >= 0) |
431 | sprintf(card->longname + strlen(card->longname), "&%d", dma2[dev]); | 430 | sprintf(card->longname + strlen(card->longname), "&%d", dma2[dev]); |
432 | 431 | ||
433 | err = snd_wss_timer(chip, 0, NULL); | 432 | err = snd_wss_timer(chip, 0); |
434 | if (err < 0) | 433 | if (err < 0) |
435 | return err; | 434 | return err; |
436 | 435 | ||