alsaucm: fix the implicit card open

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2019-11-14 14:06:20 +01:00
parent c8fdd38c74
commit d207574ef7

View file

@ -229,10 +229,11 @@ 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;
}
fprintf(stderr, "%s: command '%s' requires an open card\n",
context->command, cmd->id);
return 0;
}
switch (cmd->code) {
case OM_OPEN: