acp: update pcm proplist for UCM as well

Update the properties we get from the pcm handle right before we
close the handle.
Also set properties on the UCM devices.

See #524
This commit is contained in:
Wim Taymans 2021-01-11 15:39:48 +01:00
parent 24c7f45118
commit b3f8a4b99b
2 changed files with 4 additions and 2 deletions

View file

@ -1905,6 +1905,7 @@ static void profile_finalize_probing(pa_alsa_profile *p) {
if (!m->output_pcm)
continue;
pa_alsa_init_proplist_pcm(NULL, m->output_proplist, m->output_pcm);
snd_pcm_close(m->output_pcm);
m->output_pcm = NULL;
}
@ -1916,6 +1917,7 @@ static void profile_finalize_probing(pa_alsa_profile *p) {
if (!m->input_pcm)
continue;
pa_alsa_init_proplist_pcm(NULL, m->input_proplist, m->input_pcm);
snd_pcm_close(m->input_pcm);
m->input_pcm = NULL;
}