kernel_optimize_test/sound/core
Takashi Iwai 289ca025ee ALSA: Use priority list for managing device list
Basically, the device type specifies the priority of the device to be
registered / freed, too.  However, the priority value isn't well
utilized but only it's checked as a group.  This results in
inconsistent register and free order (where each of them should be in
reversed direction).

This patch simplifies the device list management code by simply
inserting a list entry at creation time in an incremental order for
the priority value.  Since we can just follow the link for register,
disconnect and free calls, we don't have to specify the group; so the
whole enum definitions are also simplified as well.

The visible change to outside is that the priorities of some object
types are revisited.  For example, now the SNDRV_DEV_LOWLEVEL object
is registered before others (control, PCM, etc) and, in return,
released after others.  Similarly, SNDRV_DEV_CODEC is in a lower
priority than SNDRV_DEV_BUS for ensuring the dependency.

Also, the unused SNDRV_DEV_TOPLEVEL, SNDRV_DEV_LOWLEVEL_PRE and
SNDRV_DEV_LOWLEVEL_NORMAL are removed as a cleanup.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-02-25 12:12:51 +01:00
..
oss ALSA: oss: Use standard printk helpers 2014-02-14 08:14:17 +01:00
seq ALSA: seq_oss: Use standard printk helpers 2014-02-14 08:14:18 +01:00
compress_offload.c
control_compat.c ALSA: control: Use standard printk helpers 2014-02-14 08:14:14 +01:00
control.c ALSA: control: Use standard printk helpers 2014-02-14 08:14:14 +01:00
ctljack.c
device.c ALSA: Use priority list for managing device list 2014-02-25 12:12:51 +01:00
hrtimer.c ALSA: timer: Use standard printk helpers 2014-02-14 08:14:17 +01:00
hwdep_compat.c
hwdep.c ALSA: hwdep: Allow to assign the given parent 2014-02-25 12:12:50 +01:00
info_oss.c
info.c ALSA: core: Use standard printk helpers 2014-02-14 08:14:15 +01:00
init.c ALSA: Use priority list for managing device list 2014-02-25 12:12:51 +01:00
isadma.c ALSA: core: Use standard printk helpers 2014-02-14 08:14:15 +01:00
jack.c
Kconfig
Makefile
memalloc.c ALSA: core: Use standard printk helpers 2014-02-14 08:14:15 +01:00
memory.c
misc.c
pcm_compat.c
pcm_dmaengine.c
pcm_lib.c ALSA: pcm: Use standard printk helpers 2014-02-14 08:14:15 +01:00
pcm_memory.c ALSA: PCM: Warn when buffer preallocation fails 2014-01-11 11:04:23 +01:00
pcm_misc.c ALSA: Add helper function for intersecting two rate masks 2014-01-14 20:42:34 +00:00
pcm_native.c ALSA: pcm: Use standard printk helpers 2014-02-14 08:14:15 +01:00
pcm_timer.c ALSA: pcm: Use standard printk helpers 2014-02-14 08:14:15 +01:00
pcm.c ALSA: Create sysfs attribute files via groups 2014-02-25 12:12:49 +01:00
rawmidi_compat.c
rawmidi.c ALSA: rawmidi: Use standard printk helpers 2014-02-14 08:14:16 +01:00
rtctimer.c ALSA: timer: Use standard printk helpers 2014-02-14 08:14:17 +01:00
sgbuf.c
sound_oss.c ALSA: Use standard device refcount for card accounting 2014-02-14 08:14:13 +01:00
sound.c ALSA: Create sysfs attribute files via groups 2014-02-25 12:12:49 +01:00
timer_compat.c
timer.c ALSA: timer: Use standard printk helpers 2014-02-14 08:14:17 +01:00
vmaster.c ALSA: core: Use standard printk helpers 2014-02-14 08:14:15 +01:00