summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2015-02-25 23:31:04 +0100
committerFlavio Ceolin <flavio.ceolin@gmail.com>2015-03-07 18:51:03 -0300
commitf6fd0f0e37e9d53ce6c0f8d7a90a27caf3b43620 (patch)
tree4ea80639008a8ea353938469533a10c09076fdb4
parentd6288acee6ccce475fe4f3836c7f83091a90ba4c (diff)
alsa: Call cards refresh after the cb assign
-rw-r--r--src/lib/backends/alsa/alsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/backends/alsa/alsa.c b/src/lib/backends/alsa/alsa.c
index 59d77b8..9c42741 100644
--- a/src/lib/backends/alsa/alsa.c
+++ b/src/lib/backends/alsa/alsa.c
@@ -336,9 +336,9 @@ _alsa_init(Emix_Event_Cb cb, const void *data)
336 if (!ctx) 336 if (!ctx)
337 ctx = calloc(1, sizeof(Context)); 337 ctx = calloc(1, sizeof(Context));
338 338
339 _alsa_cards_refresh();
340 ctx->cb = cb; 339 ctx->cb = cb;
341 ctx->userdata = data; 340 ctx->userdata = data;
341 _alsa_cards_refresh();
342 342
343 //call the event because the backend is now ready to use 343 //call the event because the backend is now ready to use
344 ctx->cb((void *)ctx->userdata, EMIX_READY_EVENT, NULL); 344 ctx->cb((void *)ctx->userdata, EMIX_READY_EVENT, NULL);