alsa: Initialize ports before sinks/sources

This way port availability has been filled in when we create the
sink, which will later enable us to pick the right port directly.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
This commit is contained in:
David Henningsson 2013-04-16 15:17:37 +02:00
parent 3556c820ee
commit 0b83787d4e

View file

@ -748,8 +748,8 @@ int pa__init(pa_module *m) {
u->card->userdata = u; u->card->userdata = u;
u->card->set_profile = card_set_profile; u->card->set_profile = card_set_profile;
init_profile(u);
init_jacks(u); init_jacks(u);
init_profile(u);
init_eld_ctls(u); init_eld_ctls(u);
if (reserve) if (reserve)