ALSA: hda - Remove shutup calls in free callbacks
authorTakashi Iwai <tiwai@suse.de>
Wed, 21 Nov 2012 13:50:12 +0000 (14:50 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 21 Nov 2012 14:06:13 +0000 (15:06 +0100)
The free callback is called at the state where no extra verbs are
executed, thus calling *_shutup() is useless, as it's checking the
shutdown flag.  Remove such superfluous calls.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_analog.c
sound/pci/hda/patch_realtek.c
sound/pci/hda/patch_sigmatel.c

index 1eeba738666634329d17a76149618c1c6f3e8c26..eb5689df206a8ab3157c4be5d4f7fd9cee8838e2 100644 (file)
@@ -636,7 +636,6 @@ static void ad198x_free(struct hda_codec *codec)
        if (!spec)
                return;
 
-       ad198x_shutup(codec);
        ad198x_free_kctls(codec);
        kfree(spec);
        snd_hda_detach_beep_device(codec);
index 4d26852699469a43a75245fe7aa5cadd8742b34f..bde7d1b323cd185513b7a51f18db212325cc22e6 100644 (file)
@@ -2404,7 +2404,6 @@ static void alc_free(struct hda_codec *codec)
        if (!spec)
                return;
 
-       alc_shutup(codec);
        alc_free_kctls(codec);
        alc_free_bind_ctls(codec);
        snd_hda_gen_free(&spec->gen);
index a6aeb6260719d09d81b90f450e50b471c1a5bd34..1f6fd584e1c284d8de6734dd07dc3dd516a6b92c 100644 (file)
@@ -4575,8 +4575,6 @@ static void stac92xx_free(struct hda_codec *codec)
        if (! spec)
                return;
 
-       stac92xx_shutup(codec);
-
        kfree(spec);
        snd_hda_detach_beep_device(codec);
 }