mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
if we get access to a device we don't know yet, add it to our tree instead of ignoring it
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1601 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
30ccf9a5c9
commit
9c89f37ace
1 changed files with 4 additions and 2 deletions
|
|
@ -551,7 +551,9 @@ static DBusHandlerResult filter_cb(DBusConnection *bus, DBusMessage *message, vo
|
||||||
if ((source = pa_namereg_get(u->core, d->source_name, PA_NAMEREG_SOURCE, 0)))
|
if ((source = pa_namereg_get(u->core, d->source_name, PA_NAMEREG_SOURCE, 0)))
|
||||||
pa_source_suspend(source, suspend);
|
pa_source_suspend(source, suspend);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
} else if (!suspend)
|
||||||
|
hal_device_add(u, udi);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -643,7 +645,7 @@ int pa__init(pa_core *c, pa_module*m) {
|
||||||
n = hal_device_add_all(u, CAPABILITY_ALSA);
|
n = hal_device_add_all(u, CAPABILITY_ALSA);
|
||||||
#endif
|
#endif
|
||||||
#if defined(HAVE_ALSA) && defined(HAVE_OSS)
|
#if defined(HAVE_ALSA) && defined(HAVE_OSS)
|
||||||
if (n <= 0)
|
if (!u->capability)
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_OSS
|
#ifdef HAVE_OSS
|
||||||
n += hal_device_add_all(u, CAPABILITY_OSS);
|
n += hal_device_add_all(u, CAPABILITY_OSS);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue