Commit 8a02c0cc authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda - Move HDA_FIXUP_ACT_FREE call in snd_hda_gen_free()

Now Realtek and Conexant codec parsers just call snd_hda_gen_free().
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 8eeaa2f9
...@@ -5350,6 +5350,7 @@ EXPORT_SYMBOL_GPL(snd_hda_gen_init); ...@@ -5350,6 +5350,7 @@ EXPORT_SYMBOL_GPL(snd_hda_gen_init);
*/ */
void snd_hda_gen_free(struct hda_codec *codec) 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_detach_beep_device(codec);
snd_hda_gen_spec_free(codec->spec); snd_hda_gen_spec_free(codec->spec);
kfree(codec->spec); kfree(codec->spec);
......
...@@ -2798,11 +2798,7 @@ static int cx_auto_init(struct hda_codec *codec) ...@@ -2798,11 +2798,7 @@ static int cx_auto_init(struct hda_codec *codec)
return 0; return 0;
} }
static void cx_auto_free(struct hda_codec *codec) #define cx_auto_free snd_hda_gen_free
{
snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_FREE);
snd_hda_gen_free(codec);
}
static const struct hda_codec_ops cx_auto_patch_ops = { static const struct hda_codec_ops cx_auto_patch_ops = {
.build_controls = cx_auto_build_controls, .build_controls = cx_auto_build_controls,
......
...@@ -844,11 +844,7 @@ static inline void alc_shutup(struct hda_codec *codec) ...@@ -844,11 +844,7 @@ static inline void alc_shutup(struct hda_codec *codec)
snd_hda_shutup_pins(codec); snd_hda_shutup_pins(codec);
} }
static void alc_free(struct hda_codec *codec) #define alc_free snd_hda_gen_free
{
snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_FREE);
snd_hda_gen_free(codec);
}
#ifdef CONFIG_PM #ifdef CONFIG_PM
static void alc_power_eapd(struct hda_codec *codec) static void alc_power_eapd(struct hda_codec *codec)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment