alsa: Free global state

We need to do this or else newly plugged devices might not load.

It does not seem to harm UCM config on my machine, so this reverts
3d372424cc

See #1478
This commit is contained in:
Wim Taymans 2021-08-10 11:23:48 +02:00
parent b7162d2c09
commit 0a5a4c046d

View file

@ -20,6 +20,8 @@ int spa_alsa_init(struct state *state)
{
int err;
snd_config_update_free_global();
if (state->open_ucm) {
char card_name[64];
const char *alibpref = NULL;