spa: implement a log topic for alsa

This commit is contained in:
Peter Hutterer 2021-09-23 14:25:32 +10:00 committed by Wim Taymans
parent a6e66d9180
commit e9d869b46f
12 changed files with 67 additions and 5 deletions

View file

@ -37,6 +37,8 @@
#include <spa/param/audio/format.h>
#include <spa/pod/filter.h>
#include "alsa.h"
#define NAME "alsa-pcm-source"
#include "alsa-pcm.h"
@ -873,6 +875,8 @@ impl_init(const struct spa_handle_factory *factory,
this = (struct state *) handle;
this->log = spa_support_find(support, n_support, SPA_TYPE_INTERFACE_Log);
alsa_log_topic_init(this->log);
this->data_system = spa_support_find(support, n_support, SPA_TYPE_INTERFACE_DataSystem);
this->data_loop = spa_support_find(support, n_support, SPA_TYPE_INTERFACE_DataLoop);