aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2008-10-16 10:39:56 -0400
committerTakashi Iwai <tiwai@suse.de>2008-10-16 10:39:56 -0400
commitebaa0470586eec83627fa03dcd0a1107f54258f8 (patch)
tree70dbcf7d31d41f2b7779268cb49da9d0b6a0a1f7
parentdd125b28c1523a857b7657b5d8aa774ed1563687 (diff)
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 <tiwai@suse.de>
-rw-r--r--sound/pci/hda/patch_sigmatel.c3
1 files changed, 3 insertions, 0 deletions
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)
3717 if (! spec) 3717 if (! spec)
3718 return; 3718 return;
3719 3719
3720 if (spec->jack)
3721 snd_device_free(codec->bus->card, spec->jack);
3722
3720 if (spec->bios_pin_configs) 3723 if (spec->bios_pin_configs)
3721 kfree(spec->bios_pin_configs); 3724 kfree(spec->bios_pin_configs);
3722 3725