]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[ALSA] dynamic minors (3/6): store device-specific object pointers dynamically
authorClemens Ladisch <clemens@ladisch.de>
Sun, 20 Nov 2005 13:06:59 +0000 (14:06 +0100)
committerJaroslav Kysela <perex@suse.cz>
Tue, 3 Jan 2006 11:29:17 +0000 (12:29 +0100)
commitf87135f56cb266e031f5ec081dfbde7e43f55e80
treec048abae6bb04df53f5d8d7dcffbf2c28bc638ff
parent6983b7240cd229787c3ee00e663ea94ea649d96a
[ALSA] dynamic minors (3/6): store device-specific object pointers dynamically

Instead of storing the pointers to the device-specific structures in an
array, put them into the struct snd_minor, and look them up dynamically.

This makes the device type modules independent of the minor number
encoding.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
17 files changed:
include/sound/core.h
include/sound/hwdep.h
include/sound/pcm.h
include/sound/rawmidi.h
sound/core/control.c
sound/core/hwdep.c
sound/core/oss/mixer_oss.c
sound/core/oss/pcm_oss.c
sound/core/pcm.c
sound/core/pcm_native.c
sound/core/rawmidi.c
sound/core/seq/oss/seq_oss.c
sound/core/seq/seq_clientmgr.c
sound/core/seq/seq_midi.c
sound/core/sound.c
sound/core/sound_oss.c
sound/core/timer.c