Browse Source

ALSA: hda - Remove shutup calls in free callbacks

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>
Takashi Iwai 12 years ago
parent
commit
e15f1b43e1
3 changed files with 0 additions and 4 deletions
  1. 0 1
      sound/pci/hda/patch_analog.c
  2. 0 1
      sound/pci/hda/patch_realtek.c
  3. 0 2
      sound/pci/hda/patch_sigmatel.c

+ 0 - 1
sound/pci/hda/patch_analog.c

@@ -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);

+ 0 - 1
sound/pci/hda/patch_realtek.c

@@ -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);

+ 0 - 2
sound/pci/hda/patch_sigmatel.c

@@ -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);
 }