ALSA: hda - Move HDA_FIXUP_ACT_FREE call in snd_hda_gen_free()
authorTakashi Iwai <tiwai@suse.de>
Mon, 10 Feb 2014 17:09:45 +0000 (18:09 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 10 Feb 2014 17:09:45 +0000 (18:09 +0100)
Now Realtek and Conexant codec parsers just call snd_hda_gen_free().

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

index 437ef13c5a90acb33abb55f8b9d8ea2531853856..0c90eba6ba3d3626fbb7168c169d2ff380c5a90b 100644 (file)
@@ -5350,6 +5350,7 @@ EXPORT_SYMBOL_GPL(snd_hda_gen_init);
  */
 void snd_hda_gen_free(struct hda_codec *codec)
 {
+       snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_FREE);
        snd_hda_detach_beep_device(codec);
        snd_hda_gen_spec_free(codec->spec);
        kfree(codec->spec);
index 6cc646531ce83f181635f4fb1865b7bcdd394cf5..47861474fd87534d5d948b0e93da191f7bad8582 100644 (file)
@@ -2798,11 +2798,7 @@ static int cx_auto_init(struct hda_codec *codec)
        return 0;
 }
 
-static void cx_auto_free(struct hda_codec *codec)
-{
-       snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_FREE);
-       snd_hda_gen_free(codec);
-}
+#define cx_auto_free   snd_hda_gen_free
 
 static const struct hda_codec_ops cx_auto_patch_ops = {
        .build_controls = cx_auto_build_controls,
index dbe2b184cdebd5ed43711b2805275d12d0f52b10..4a1016c9500f571b8d94eb472a387666d3bbfd6d 100644 (file)
@@ -844,11 +844,7 @@ static inline void alc_shutup(struct hda_codec *codec)
                snd_hda_shutup_pins(codec);
 }
 
-static void alc_free(struct hda_codec *codec)
-{
-       snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_FREE);
-       snd_hda_gen_free(codec);
-}
+#define alc_free       snd_hda_gen_free
 
 #ifdef CONFIG_PM
 static void alc_power_eapd(struct hda_codec *codec)