[alsa-devel] [PATCH] alsaucm: Report failure to set a device due to missing verb setup

Mark Brown broonie at opensource.wolfsonmicro.com
Fri Oct 8 23:11:54 CEST 2010


Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
---
 alsaucm/usecase.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/alsaucm/usecase.c b/alsaucm/usecase.c
index 2db26f1..d1420c0 100644
--- a/alsaucm/usecase.c
+++ b/alsaucm/usecase.c
@@ -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) {
-- 
1.7.1



More information about the Alsa-devel mailing list