Skip to content

Commit

Permalink
ALSA: hda - Release jack instance for dynamic reconfigure
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Takashi Iwai committed Oct 16, 2008
1 parent dd125b2 commit ebaa047
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sound/pci/hda/patch_sigmatel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit ebaa047

Please sign in to comment.