1. 14 Apr, 2009 2 commits
    • Takashi Iwai's avatar
      ALSA: hda - Avoid call of snd_jack_report at release · 95c09099
      Takashi Iwai authored
      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: default avatarTakashi Iwai <tiwai@suse.de>
      95c09099
    • Takashi Iwai's avatar
      ALSA: add private_data to struct snd_jack · 9d59065c
      Takashi Iwai authored
      Added private_data and private_free fields to struct snd_jack so that
      the caller can assign the data.  It'll be helpful for avoiding the
      double-free of the jack instance.
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      9d59065c
  2. 07 Apr, 2009 38 commits