mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:55:43 +01:00
alsaucm: fix the implicit card open
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
c8fdd38c74
commit
d207574ef7
1 changed files with 4 additions and 3 deletions
|
@ -229,11 +229,12 @@ static int do_one(struct context *context, struct cmd *cmd, char **argv)
|
|||
if (!context->no_open) {
|
||||
do_initial_open(context);
|
||||
context->no_open = 1;
|
||||
}
|
||||
} else {
|
||||
fprintf(stderr, "%s: command '%s' requires an open card\n",
|
||||
context->command, cmd->id);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
switch (cmd->code) {
|
||||
case OM_OPEN:
|
||||
if (context->uc_mgr)
|
||||
|
|
Loading…
Reference in a new issue