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

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
Mark Brown 2010-10-08 23:11:54 +02:00 committed by Jaroslav Kysela
parent 08f36ef1e0
commit 048f87bfc9

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