Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-alsa-utils: Commit

external/alsa-utils


Commit MetaInfo

Revisiónd207574ef74b7c4c11e79815fd4a3937d149a00b (tree)
Tiempo2019-11-15 02:01:10
AutorJaroslav Kysela <perex@pere...>
CommiterJaroslav Kysela

Log Message

alsaucm: fix the implicit card open

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

Cambiar Resumen

Diferencia

--- a/alsaucm/usecase.c
+++ b/alsaucm/usecase.c
@@ -229,10 +229,11 @@ static int do_one(struct context *context, struct cmd *cmd, char **argv)
229229 if (!context->no_open) {
230230 do_initial_open(context);
231231 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;
232236 }
233- fprintf(stderr, "%s: command '%s' requires an open card\n",
234- context->command, cmd->id);
235- return 0;
236237 }
237238 switch (cmd->code) {
238239 case OM_OPEN:
Show on old repository browser