diff options
author | Krzysztof Helt <krzysztof.h1@wp.pl> | 2009-02-27 15:41:40 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-03-02 06:21:01 -0500 |
commit | 1713c0d508fbbb42aa5f90039195e5ac31a50625 (patch) | |
tree | 797fdbc3cd1a02925d28c39c8c28e99d0dfded3b /sound/isa | |
parent | ce71bfd1aa6d6a4069929eeceed254e13400ddf4 (diff) |
ALSA: opl3sa2 fix irq releasing and short name of card
Two simple fixes:
1. Use the same pointer for the free_irq() and
the request_irq() calls.
2. A short name of card is appended with '2' or '3'
character depending on a detected chip. Remove
the '2' character from the short name.
Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa')
-rw-r--r-- | sound/isa/opl3sa2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/isa/opl3sa2.c b/sound/isa/opl3sa2.c index 06810dfb9d9a..19b2d0420a26 100644 --- a/sound/isa/opl3sa2.c +++ b/sound/isa/opl3sa2.c | |||
@@ -617,7 +617,7 @@ static void snd_opl3sa2_free(struct snd_card *card) | |||
617 | { | 617 | { |
618 | struct snd_opl3sa2 *chip = card->private_data; | 618 | struct snd_opl3sa2 *chip = card->private_data; |
619 | if (chip->irq >= 0) | 619 | if (chip->irq >= 0) |
620 | free_irq(chip->irq, (void *)chip); | 620 | free_irq(chip->irq, card); |
621 | release_and_free_resource(chip->res_port); | 621 | release_and_free_resource(chip->res_port); |
622 | } | 622 | } |
623 | 623 | ||
@@ -630,7 +630,7 @@ static struct snd_card *snd_opl3sa2_card_new(int dev) | |||
630 | if (card == NULL) | 630 | if (card == NULL) |
631 | return NULL; | 631 | return NULL; |
632 | strcpy(card->driver, "OPL3SA2"); | 632 | strcpy(card->driver, "OPL3SA2"); |
633 | strcpy(card->shortname, "Yamaha OPL3-SA2"); | 633 | strcpy(card->shortname, "Yamaha OPL3-SA"); |
634 | chip = card->private_data; | 634 | chip = card->private_data; |
635 | spin_lock_init(&chip->reg_lock); | 635 | spin_lock_init(&chip->reg_lock); |
636 | chip->irq = -1; | 636 | chip->irq = -1; |