external/alsa-utils
Revisión | d207574ef74b7c4c11e79815fd4a3937d149a00b (tree) |
---|---|
Tiempo | 2019-11-15 02:01:10 |
Autor | Jaroslav Kysela <perex@pere...> |
Commiter | Jaroslav Kysela |
alsaucm: fix the implicit card open
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
@@ -229,10 +229,11 @@ static int do_one(struct context *context, struct cmd *cmd, char **argv) | ||
229 | 229 | if (!context->no_open) { |
230 | 230 | do_initial_open(context); |
231 | 231 | context->no_open = 1; |
232 | + } else { | |
233 | + fprintf(stderr, "%s: command '%s' requires an open card\n", | |
234 | + context->command, cmd->id); | |
235 | + return 0; | |
232 | 236 | } |
233 | - fprintf(stderr, "%s: command '%s' requires an open card\n", | |
234 | - context->command, cmd->id); | |
235 | - return 0; | |
236 | 237 | } |
237 | 238 | switch (cmd->code) { |
238 | 239 | case OM_OPEN: |