mirror of
https://gitee.com/openharmony/third_party_alsa-utils
synced 2024-11-23 15:10:36 +00: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
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user