Skip to content

Commit

Permalink
[ALSA] Fix adding second dma channel
Browse files Browse the repository at this point in the history
Modules: OPL3SA2 driver,GUS Classic driver

dma2 is a global array. sprintf below suggests there was a typo.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Alexey Dobriyan authored and Jaroslav Kysela committed Feb 1, 2006
1 parent 89ac9c2 commit 1d79716
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sound/isa/gus/gusclassic.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ static int __init snd_gusclassic_probe(struct platform_device *pdev)
goto _err;
}
sprintf(card->longname + strlen(card->longname), " at 0x%lx, irq %d, dma %d", gus->gf1.port, xirq, xdma1);
if (dma2 >= 0)
if (xdma2 >= 0)
sprintf(card->longname + strlen(card->longname), "&%d", xdma2);

snd_card_set_dev(card, &pdev->dev);
Expand Down
2 changes: 1 addition & 1 deletion sound/isa/opl3sa2.c
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ static int __devinit snd_opl3sa2_probe(struct snd_card *card, int dev)
}
sprintf(card->longname, "%s at 0x%lx, irq %d, dma %d",
card->shortname, chip->port, xirq, xdma1);
if (dma2 >= 0)
if (xdma2 >= 0)
sprintf(card->longname + strlen(card->longname), "&%d", xdma2);

return snd_card_register(card);
Expand Down

0 comments on commit 1d79716

Please sign in to comment.