alsa: Share node/port info emission code between sink and source

It's mostly the same, and it allows us to trigger this code in the
shared alsa-pcm.c code as well.
This commit is contained in:
Arun Raghavan 2023-11-07 13:01:52 -05:00
parent 72c9fba6d2
commit 6bae812ce0
4 changed files with 96 additions and 160 deletions

View file

@ -282,6 +282,9 @@ int spa_alsa_skip(struct state *state);
void spa_alsa_recycle_buffer(struct state *state, uint32_t buffer_id);
void spa_alsa_emit_node_info(struct state *state, bool full);
void spa_alsa_emit_port_info(struct state *state, bool full);
static inline uint32_t spa_alsa_format_from_name(const char *name, size_t len)
{
int i;