mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-23 05:26:30 +01:00
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:
parent
08f36ef1e0
commit
048f87bfc9
1 changed files with 3 additions and 1 deletions
|
@ -94,8 +94,10 @@ static int list_verb_device_status(snd_use_case_mgr_t *uc_mgr)
|
||||||
int i, enabled, num;
|
int i, enabled, num;
|
||||||
|
|
||||||
verb = snd_use_case_get_verb(uc_mgr);
|
verb = snd_use_case_get_verb(uc_mgr);
|
||||||
if (verb == NULL)
|
if (verb == NULL) {
|
||||||
|
printf(" no verb currently enabled.\n");
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
}
|
||||||
|
|
||||||
num = snd_use_case_get_device_list(uc_mgr, verb, &device_list);
|
num = snd_use_case_get_device_list(uc_mgr, verb, &device_list);
|
||||||
if (num <= 0) {
|
if (num <= 0) {
|
||||||
|
|
Loading…
Reference in a new issue