1. 14 Nov, 2013 2 commits
    • Takashi Iwai's avatar
      ALSA: jack: Unregister input device at disconnection · 32b85442
      Takashi Iwai authored
      The recent change in sysfs triggered a kernel WARNING at unloading a
      sound driver like
      
        WARNING: CPU: 3 PID: 2247 at fs/sysfs/group.c:214 sysfs_remove_group+0xe8/0xf0()
        sysfs group ffffffff81ab7b20 not found for kobject 'event14'
      
      for each jack instance.  It's because the unregistration of jack input
      device is done in dev_free callback, which is called after
      snd_card_disconnect().  Since device_unregister(card->card_dev) is
      called in snd_card_disconnect(), the whole sysfs entries belonging to
      card->card_dev have been already removed recursively.  Thus this
      results in a warning as input_unregister_device() yet tries to
      unregister the already removed sysfs entry.
      
      For fixing this mess, we need to unregister the jack input device at
      dev_disconnect callback so that it's called before unregistering the
      card->card_dev.
      Reviwed-by: default avatarMark Brown <broonie@linaro.org>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      32b85442
    • Takashi Iwai's avatar
      ALSA: pcsp: Fix the order of input device unregistration · 6408eac2
      Takashi Iwai authored
      The current code may access to the already freed object.  The input
      device must be accessed and unregistered before freeing the top level
      sound object.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      6408eac2
  2. 13 Nov, 2013 6 commits
  3. 12 Nov, 2013 4 commits
  4. 11 Nov, 2013 7 commits
  5. 08 Nov, 2013 21 commits