Skip to contentSkip to conversation

alsaucm: Report failure to set a device due to missing verb setup

PATCH In review Mark Brown 2 participants 2 messages Oct 8, 2010 – Oct 10, 2010

lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 alsaucm: Report failure to set a device due to missing verb setup

---
 alsaucm/usecase.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
alsaucm/usecase.c +3 -1
index 2db26f1..d1420c0 100644
@@ -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) {
Signature · 1 line
1.7.1
#1 lore raw
Quoted 11 lines · Mark Brown
---
 alsaucm/usecase.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
alsaucm/usecase.c +0 -0
index 2db26f1..d1420c0 100644
@@ -94,8 +94,10 @@ static int list_verb_device_status(snd_use_case_mgr_t *uc_mgr)
 	int i, enabled, num;

alsaucm/usecase.c static int list_verb_device_status(snd_use_case_mgr_t *uc_mgr) · line 103

Quoted 10 lines
alsaucm/usecase.c +3 -1
 
 	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) {

Both Applied.

Jaroslav, are you going to apply these to your ucm branch ?

Thanks

Liam

Signature · 3 lines
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk