Driver core: convert sound core to use struct device
Converts from using struct "class_device" to "struct device" making everything show up properly in /sys/devices/ with symlinks from the /sys/class directory. It also makes the struct sound_card to show up as a "real" device where all the different sound class devices are placed as childs and different card attribute files can hang off of. /sys/class/sound is still a flat directory, but the symlink targets of all devices belonging to the same card, point the the /sys/devices tree below the new card device object. Thanks to Kay for the updates to this patch. Signed-off-by:Kay Sievers <kay.sievers@novell.com> Acked-by:
Jaroslav Kysela <perex@suse.cz> Signed-off-by:
Greg Kroah-Hartman <gregkh@suse.de>
Showing
- include/sound/core.h 5 additions, 3 deletionsinclude/sound/core.h
- sound/core/init.c 8 additions, 0 deletionssound/core/init.c
- sound/core/pcm.c 4 additions, 3 deletionssound/core/pcm.c
- sound/core/sound.c 9 additions, 13 deletionssound/core/sound.c
- sound/oss/soundcard.c 8 additions, 8 deletionssound/oss/soundcard.c
- sound/sound_core.c 3 additions, 3 deletionssound/sound_core.c
Loading
Please register or sign in to comment