Browse Source

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>
Takashi Iwai 16 years ago
parent
commit
ebaa047058
1 changed files with 3 additions and 0 deletions
  1. 3 0
      sound/pci/hda/patch_sigmatel.c

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

@@ -3717,6 +3717,9 @@ static void stac92xx_free(struct hda_codec *codec)
 	if (! spec)
 	if (! spec)
 		return;
 		return;
 
 
+	if (spec->jack)
+		snd_device_free(codec->bus->card, spec->jack);
+
 	if (spec->bios_pin_configs)
 	if (spec->bios_pin_configs)
 		kfree(spec->bios_pin_configs);
 		kfree(spec->bios_pin_configs);