From fda46a5e629e3a9c348e73e3ef8ca8f33acf762f Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Sun, 20 Sep 2015 15:16:54 +0200 Subject: alsa: add extra logging using debug() --- modules/alsa/alsa_play.c | 3 +++ modules/alsa/alsa_src.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/modules/alsa/alsa_play.c b/modules/alsa/alsa_play.c index bcc730b..b21ce3d 100644 --- a/modules/alsa/alsa_play.c +++ b/modules/alsa/alsa_play.c @@ -36,6 +36,7 @@ static void auplay_destructor(void *arg) /* Wait for termination of other thread */ if (st->run) { + debug("alsa: stopping playback thread (%s)\n", st->device); st->run = false; (void)pthread_join(st->thread, NULL); } @@ -141,6 +142,8 @@ int alsa_play_alloc(struct auplay_st **stp, const struct auplay *ap, goto out; } + debug("alsa: playback started (%s)\n", st->device); + out: if (err) mem_deref(st); diff --git a/modules/alsa/alsa_src.c b/modules/alsa/alsa_src.c index 0a5d548..0f611ea 100644 --- a/modules/alsa/alsa_src.c +++ b/modules/alsa/alsa_src.c @@ -36,6 +36,7 @@ static void ausrc_destructor(void *arg) /* Wait for termination of other thread */ if (st->run) { + debug("alsa: stopping recording thread (%s)\n", st->device); st->run = false; (void)pthread_join(st->thread, NULL); } @@ -142,6 +143,8 @@ int alsa_src_alloc(struct ausrc_st **stp, const struct ausrc *as, goto out; } + debug("alsa: recording started (%s)\n", st->device); + out: if (err) mem_deref(st); -- cgit v1.2.3