mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:25:42 +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,10 +229,11 @@ static int do_one(struct context *context, struct cmd *cmd, char **argv)
|
||||||
if (!context->no_open) {
|
if (!context->no_open) {
|
||||||
do_initial_open(context);
|
do_initial_open(context);
|
||||||
context->no_open = 1;
|
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) {
|
switch (cmd->code) {
|
||||||
case OM_OPEN:
|
case OM_OPEN:
|
||||||
|
|
Loading…
Reference in a new issue