linux/sound/core
Takashi Iwai 7d2aae1e88 [PATCH] ALSA: Fix sysfs breakage
The recent change for a new sysfs tree with card* object breaks the
/sys/class/sound tree if CONFIG_SYSFS_DEPRECATED is enabled.
The device in each entry doesn't point the correct device object:

  /sys/class/sound
  ...
  |-- pcmC0D0c
  |   |-- dev
  |   |-- device -> ../../../class/sound/card0
  |   |-- pcm_class
  |   |-- power
  |   |   `-- wakeup
  |   |-- subsystem -> ../../../class/sound
  |   `-- uevent

Also, this change breaks some drivers (like sound/arm/*) referring
card->dev directly to obtain the device object for memory handling.

This patch reverts the semantics of card->dev to the former version,
which points to a real device object.  The card* object is stored in a
new card->card_dev field, instead.  The device parent is chosen either
card->dev or card->card_dev according to CONFIG_SYSFS_DEPRECATED to
keep the tree compatibility.
Also, card* isn't created if CONFIG_SYSFS_DEPRECATED is enabled.  The
reason of card* object is a root of all beloing devices, and it makes
little sense if each sound device points to the real device object
directly.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Monty Montgomery <xiphmont@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2007-01-29 14:32:53 -08:00
..
oss [ALSA] Fix races in PCM OSS emulation 2006-12-20 08:55:54 +01:00
seq [ALSA] use the roundup macro 2006-12-20 08:55:37 +01:00
control_compat.c [ALSA] Add missing compat ioctls for ALSA control API 2006-09-23 10:47:19 +02:00
control.c [ALSA] sound/core/control.c: remove dead code 2006-12-20 08:55:46 +01:00
device.c [ALSA] Unregister device files at disconnection 2006-09-23 10:36:58 +02:00
hwdep_compat.c [PATCH] hwdep_compat missed __user annotations 2006-10-10 15:37:21 -07:00
hwdep.c [ALSA] Dereference after free in snd_hwdep_release() 2006-10-06 20:22:59 +02:00
info_oss.c [PATCH] namespaces: utsname: use init_utsname when appropriate 2006-10-02 07:57:21 -07:00
info.c [PATCH] struct path: convert sound 2006-12-08 08:28:49 -08:00
init.c [PATCH] ALSA: Fix sysfs breakage 2007-01-29 14:32:53 -08:00
isadma.c [ALSA] Clean up EXPORT_SYMBOL()s in snd module 2006-06-22 21:32:52 +02:00
Kconfig [ALSA] make CONFIG_SND_DYNAMIC_MINORS non-experimental 2006-06-28 19:30:54 +02:00
Makefile [ALSA] Remove kmalloc wrappers 2005-11-04 13:18:08 +01:00
memalloc.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
memory.c Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
misc.c [ALSA] Clean up EXPORT_SYMBOL()s in snd module 2006-06-22 21:32:52 +02:00
pcm_compat.c [ALSA] Fix control/status mmap with shared PCM substream 2006-09-23 10:39:50 +02:00
pcm_lib.c [ALSA] pcm core: fix silence_start calculations 2006-12-20 08:55:43 +01:00
pcm_memory.c [ALSA] Fix disconnection of proc interface 2006-09-23 10:36:48 +02:00
pcm_misc.c [ALSA] Move OSS-specific hw_params helper to snd-pcm-oss module 2006-06-22 21:33:05 +02:00
pcm_native.c [PATCH] struct path: convert sound 2006-12-08 08:28:49 -08:00
pcm_timer.c [ALSA] Remove xxx_t typedefs: PCM 2006-01-03 12:17:43 +01:00
pcm.c [ALSA] sound: fix PCM substream list 2006-12-20 08:56:00 +01:00
rawmidi_compat.c [ALSA] Remove xxx_t typedefs: Raw MIDI 2006-01-03 12:17:35 +01:00
rawmidi.c [ALSA] sound: initialize rawmidi substream list 2006-12-20 08:55:59 +01:00
rtctimer.c [ALSA] rtctimer: handle RTC interrupts with a tasklet 2006-11-28 13:46:33 +01:00
sgbuf.c [ALSA] use the ALIGN macro 2006-12-20 08:55:36 +01:00
sound_oss.c [PATCH] ALSA: Fix sysfs breakage 2007-01-29 14:32:53 -08:00
sound.c [PATCH] ALSA: Fix sysfs breakage 2007-01-29 14:32:53 -08:00
timer_compat.c [ALSA] Remove xxx_t typedefs: Timer 2006-01-03 12:17:34 +01:00
timer.c [ALSA] system timer: remove unused snd_timer_system_private.timer field 2006-09-23 10:38:17 +02:00