linux/sound
Takashi Iwai 32b8544296 ALSA: jack: Unregister input device at disconnection
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: Mark Brown <broonie@linaro.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-11-14 17:22:45 +01:00
..
aoa ALSA: snd-aoa: two copy and paste bugs 2013-11-13 09:28:23 +01:00
arm ALSA: pxa2xx: Replace BUG() with snd_BUG() 2013-11-06 08:35:28 +01:00
atmel ALSA: atmel: remove dependency on <mach/gpio.h> 2013-11-05 13:43:25 +01:00
core ALSA: jack: Unregister input device at disconnection 2013-11-14 17:22:45 +01:00
drivers ALSA: pcsp: Fix the order of input device unregistration 2013-11-14 15:50:10 +01:00
firewire Merge branch 'dice-driver-playback-only' of git://git.alsa-project.org/alsa-kprivate into for-next 2013-10-22 10:02:57 +02:00
i2c ALSA: ak4114: Fix wrong register array size 2013-10-29 16:42:36 +01:00
isa ALSA: isa: not allocating enough space 2013-11-13 09:28:31 +01:00
mips ALSA: mips/ad1843: Use WARN_ON() instead of BUG_ON() 2013-11-06 08:35:16 +01:00
oss sound: Remove unnecessary semicolons 2013-10-14 11:00:05 +02:00
parisc
pci ALSA: hda - Don't clear the power state at snd_hda_codec_reset() 2013-11-13 17:02:30 +01:00
pcmcia
ppc ALSA: ps3: Use WARN_ON() instead of BUG_ON() 2013-11-06 08:34:58 +01:00
sh
soc ASoC: Updates for v3.13 2013-11-08 16:45:38 +01:00
sparc ALSA: sparc: fix missing unlock on error in snd_cs4231_playback_prepare() 2013-11-11 16:23:16 +01:00
spi
synth
usb ALSA: usb-audio: add front jack channel selector for EMU0204 2013-11-13 17:05:20 +01:00
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c
sound_firmware.c