diff options
author | Alfred E. Heggestad <aeh@db.org> | 2015-09-20 15:16:54 +0200 |
---|---|---|
committer | Alfred E. Heggestad <aeh@db.org> | 2015-09-20 15:16:54 +0200 |
commit | fda46a5e629e3a9c348e73e3ef8ca8f33acf762f (patch) | |
tree | 447eaa50ff8e79a4033c68604412e738414cfd09 /modules/alsa | |
parent | 3857de66573ef7e68a04833f649507b15c520eea (diff) |
alsa: add extra logging using debug()
Diffstat (limited to 'modules/alsa')
-rw-r--r-- | modules/alsa/alsa_play.c | 3 | ||||
-rw-r--r-- | modules/alsa/alsa_src.c | 3 |
2 files changed, 6 insertions, 0 deletions
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); |