alsa: improve debug

Use a new state variable to store the device name and direction so that
we consistently can debug those.
This commit is contained in:
Wim Taymans 2023-09-15 09:09:04 +02:00
parent 3c5da11706
commit 99cf172bc7
2 changed files with 49 additions and 48 deletions

View file

@ -97,6 +97,7 @@ struct state {
struct card *card;
snd_pcm_stream_t stream;
snd_output_t *output;
char name[64];
struct spa_hook_list hooks;
struct spa_callbacks callbacks;