Hi Jaroslav,
Yes, it works with your new suggestion now.
Do you think this patch is necessary or not? With this patch we can use the style of: EnableSequence [ cmd1 arg1 cms2 arg2 ]
The patch changes the consistency in the id values for the array representation in memory (so you cannot address them). I tried to move this change to the right place (UCM conditions):
https://github.com/perexg/alsa-lib/commits/array-merge
Could you check this tree? The last commit implements the merge operation for the block from the condition tree to the parent tree. Also the "before" and "after" hints should be accepted, too.
I did the smoke test on your patch. It works.
Regards, Libin
Jaroslav
-- Jaroslav Kysela perex@perex.cz Linux Sound Maintainer; ALSA Project; Red Hat, Inc.