Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Liam Girdwood <lrg@slimlogic.co.uk>
Cc: alsa-devel@alsa-project.org,
	Mark Brown <broonie@opensource.wolfsonmicro.com>
Subject: [PATCH] alsaucm: Report failure to set a device due to missing verb setup
Date: Fri,  8 Oct 2010 14:11:54 -0700	[thread overview]
Message-ID: <1286572314-8035-1-git-send-email-broonie@opensource.wolfsonmicro.com> (raw)

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) {
-- 
1.7.1

             reply	other threads:[~2010-10-08 21:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-08 21:11 Mark Brown [this message]
2010-10-10 10:45 ` [PATCH] alsaucm: Report failure to set a device due to missing verb setup Liam Girdwood

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1286572314-8035-1-git-send-email-broonie@opensource.wolfsonmicro.com \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=lrg@slimlogic.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox