ALSA: hda - Avoid call of snd_jack_report at release
authorTakashi Iwai <tiwai@suse.de>
Tue, 14 Apr 2009 14:15:29 +0000 (16:15 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 14 Apr 2009 14:15:29 +0000 (16:15 +0200)
commit95c0909961bc5ff18c78b2ab0d093cddc0a8b0b5
tree410407b8f31bd9fbf348e8c77b7a35d41898fee1
parent9d59065cd6fae841ca56c281189d5b8d0817d35f
ALSA: hda - Avoid call of snd_jack_report at release

Don't call snd_jack_report at release of sigmatel and conexnat codecs
which results in Oops at unloading the module.

The Oops is triggered by the power-up sequence during the free due to
the pincfg restoration.  Since the power-up sequence is involved with
the unsol handling, the jack reporting may be issued during that.
The Oops occurs with this jack reporting because the jack instances
have been already released but the codec doesn't do the proper
book-keeping.

This patch adds the book-keeping of jack instances to avoid the access
to bogus pointers.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_conexant.c
sound/pci/hda/patch_sigmatel.c