[pulseaudio-commits] r1601 - /branches/lennart/src/modules/module-hal-detect.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Thu Aug 9 14:06:08 PDT 2007
Author: lennart
Date: Thu Aug 9 23:06:08 2007
New Revision: 1601
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1601&root=3Dpulseaudio&vi=
ew=3Drev
Log:
if we get access to a device we don't know yet, add it to our tree instead =
of ignoring it
Modified:
branches/lennart/src/modules/module-hal-detect.c
Modified: branches/lennart/src/modules/module-hal-detect.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/modules/mo=
dule-hal-detect.c?rev=3D1601&root=3Dpulseaudio&r1=3D1600&r2=3D1601&view=3Dd=
iff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/lennart/src/modules/module-hal-detect.c (original)
+++ branches/lennart/src/modules/module-hal-detect.c Thu Aug 9 23:06:08 20=
07
@@ -551,7 +551,9 @@
if ((source =3D pa_namereg_get(u->core, d->source_name=
, PA_NAMEREG_SOURCE, 0)))
pa_source_suspend(source, suspend);
}
- }
+ =
+ } else if (!suspend)
+ hal_device_add(u, udi);
=
}
=
@@ -643,7 +645,7 @@
n =3D hal_device_add_all(u, CAPABILITY_ALSA);
#endif
#if defined(HAVE_ALSA) && defined(HAVE_OSS)
- if (n <=3D 0)
+ if (!u->capability)
#endif =
#ifdef HAVE_OSS
n +=3D hal_device_add_all(u, CAPABILITY_OSS);
More information about the pulseaudio-commits
mailing list