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

@ -25,6 +25,7 @@
#include <errno.h>
#include <spa/support/plugin.h>
#include <spa/support/log.h>
extern const struct spa_handle_factory spa_alsa_source_factory;
extern const struct spa_handle_factory spa_alsa_sink_factory;
@ -33,6 +34,9 @@ extern const struct spa_handle_factory spa_alsa_device_factory;
extern const struct spa_handle_factory spa_alsa_seq_bridge_factory;
extern const struct spa_handle_factory spa_alsa_acp_device_factory;
struct spa_log_topic log_topic = SPA_LOG_TOPIC(0, "spa.alsa");
struct spa_log_topic *alsa_log_topic = &log_topic;
SPA_EXPORT
int spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t *index)
{