diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-01-29 15:53:35 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-02-25 12:12:51 +0100 |
commit | 289ca025ee1d78223e3368801fc2b984e5efbfc7 (patch) | |
tree | 0fbd1be93a83c459e7c053d4959fe149ec3f1785 /samples/Kconfig | |
parent | 71e2e1c147e653ee4e861b8b5dc0ae5c394870d2 (diff) | |
download | op-kernel-dev-289ca025ee1d78223e3368801fc2b984e5efbfc7.zip op-kernel-dev-289ca025ee1d78223e3368801fc2b984e5efbfc7.tar.gz |
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>
Diffstat (limited to 'samples/Kconfig')
0 files changed, 0 insertions, 0 deletions