]> git.alsa-project.org Git - alsa-lib.git/commit
Change numid properly with external ctl plugins
authorTakashi Iwai <tiwai@suse.de>
Tue, 17 Feb 2009 15:58:12 +0000 (16:58 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 17 Feb 2009 15:58:12 +0000 (16:58 +0100)
commit81241ffb8176bde284699e5839bb944db39c773c
treeaf421f07fea428f68e0a3e30a31a92f6e4f2a545
parente38f921625a13a5367f34c343893aa8f2d15efe4
Change numid properly with external ctl plugins

So far, external ctl plugins don't change numid.  Some apps expect the
non-zero numids with list, and the plugin doesn't work for them.

This patch adds a fake numid to each control based on the offset
number.  The lookup with non-zero numid is supported but is pretty
inefficient.  Eventually the plugin side may be optimized to look
at the numid, too.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/control/control_ext.c