OSDN Git Service

alsaucm: Report failure to set a device due to missing verb setup
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 8 Oct 2010 21:11:54 +0000 (23:11 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sat, 9 Oct 2010 08:23:12 +0000 (10:23 +0200)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
alsaucm/usecase.c

index 2db26f1..d1420c0 100644 (file)
@@ -94,8 +94,10 @@ static int list_verb_device_status(snd_use_case_mgr_t *uc_mgr)
        int i, enabled, num;
 
        verb = snd_use_case_get_verb(uc_mgr);
-       if (verb == NULL)
+       if (verb == NULL) {
+               printf(" no verb currently enabled.\n");
                return -ENODEV;
+       }
 
        num = snd_use_case_get_device_list(uc_mgr, verb, &device_list);
        if (num <= 0) {