mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
alsa: unify alsa log handling and snd_config_update_free_global() handling in one place
This commit is contained in:
parent
25e5197f6a
commit
348dcd6a31
7 changed files with 13 additions and 20 deletions
|
|
@ -82,8 +82,7 @@ int pa__init(pa_module*m) {
|
|||
|
||||
pa_assert(m);
|
||||
|
||||
pa_alsa_redirect_errors_inc();
|
||||
snd_config_update_free_global();
|
||||
pa_alsa_refcnt_inc();
|
||||
|
||||
if (!(ma = pa_modargs_new(m->argument, valid_modargs))) {
|
||||
pa_log("Failed to parse module arguments");
|
||||
|
|
@ -124,6 +123,5 @@ void pa__done(pa_module*m) {
|
|||
if ((sink = m->userdata))
|
||||
pa_alsa_sink_free(sink);
|
||||
|
||||
snd_config_update_free_global();
|
||||
pa_alsa_redirect_errors_dec();
|
||||
pa_alsa_refcnt_dec();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue