[alsa-devel] [PATCH] alsaucm: Report failure to set a device due to missing verb setup
Signed-off-by: Mark Brown broonie@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) {
On Fri, 2010-10-08 at 14:11 -0700, Mark Brown wrote:
Signed-off-by: Mark Brown broonie@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) {
Both Applied.
Jaroslav, are you going to apply these to your ucm branch ?
Thanks
Liam
participants (2)
-
Liam Girdwood
-
Mark Brown