]> git.alsa-project.org Git - alsa-utils.git/commit
alsaucm: Add list1 command for non-tuple lists
authorStephen Warren <swarren@nvidia.com>
Thu, 2 Jun 2011 22:45:12 +0000 (16:45 -0600)
committerJaroslav Kysela <perex@perex.cz>
Fri, 3 Jun 2011 09:47:36 +0000 (11:47 +0200)
commit16bdb41b87d1f4baa3a54a4af0b85abd98cf9159
treeda5c53cd8c2bfb5f1304662cbad9a7893f47ad55
parent5ee6a670751db67f9e2b2910d5b3b6fc6fff8dfd
alsaucm: Add list1 command for non-tuple lists

snd_use_case_get_list returns lists of strings that are either:
a) A sequence of single strings
b) A sequence of pairs of strings all flattened into a single list

The current list command assumes layout (b) above, and hence prints
nothing when printing a single-entry list that's actually in layout (a).
Add a new command "list1" to dump lists in layout (a).

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
alsaucm/usecase.c