From: Takashi Iwai Date: Thu, 16 Oct 2008 14:39:56 +0000 (+0200) Subject: ALSA: hda - Release jack instance for dynamic reconfigure X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=ebaa0470586eec83627fa03dcd0a1107f54258f8;p=deliverable%2Flinux.git ALSA: hda - Release jack instance for dynamic reconfigure The jack instance has to be release manually in free callback in patch_sigmatel.c for dynamic reconfiguration. Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index 579b32817836..d106ea52a90d 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c @@ -3717,6 +3717,9 @@ static void stac92xx_free(struct hda_codec *codec) if (! spec) return; + if (spec->jack) + snd_device_free(codec->bus->card, spec->jack); + if (spec->bios_pin_configs) kfree(spec->bios_pin_configs);