acp: add debug for open and close

Debug open and close calls.
Make pa_alsa_close to close the device.
This commit is contained in:
Wim Taymans 2022-08-05 12:31:28 +02:00
parent 34c1c1614e
commit a9ced45d4b
5 changed files with 27 additions and 18 deletions

View file

@ -1941,8 +1941,7 @@ static void profile_finalize_probing(pa_alsa_profile *p) {
continue;
pa_alsa_init_proplist_pcm(NULL, m->output_proplist, m->output_pcm);
snd_pcm_close(m->output_pcm);
m->output_pcm = NULL;
pa_alsa_close(&m->output_pcm);
}
PA_IDXSET_FOREACH(m, p->input_mappings, idx) {
@ -1953,8 +1952,7 @@ static void profile_finalize_probing(pa_alsa_profile *p) {
continue;
pa_alsa_init_proplist_pcm(NULL, m->input_proplist, m->input_pcm);
snd_pcm_close(m->input_pcm);
m->input_pcm = NULL;
pa_alsa_close(&m->input_pcm);
}
}